Skip to content

Can't build static libraries #171

@afalkenhahn

Description

@afalkenhahn

I'm trying to build MicroTeX as static libraries on Ubuntu like this:

cmake -DCAIRO=ON -DBUILD_STATIC=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON ..
make

This correctly builds libmicrotex.a but for some reason it fails to build libmicrotex-cairo.a. It seems to try to build libmicrotex-cairo as a shared object instead (which fails)

[ 97%] Built target microtex
[ 98%] Linking CXX shared library libmicrotex-cairo.so
CMake Error: failed to create symbolic link 'libmicrotex-cairo.so.1': operation not supported on socket
CMake Error: cmake_symlink_library: System Error: Operation not supported
CMake Error: failed to create symbolic link 'libmicrotex-cairo.so': operation not supported on socket
CMake Error: cmake_symlink_library: System Error: Operation not supported

Any idea how I can build libmicrotex-cairo as a static library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions