Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build static libraries #171

Open
afalkenhahn opened this issue May 8, 2024 · 1 comment
Open

Can't build static libraries #171

afalkenhahn opened this issue May 8, 2024 · 1 comment

Comments

@afalkenhahn
Copy link

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?

@kpeeters
Copy link

There are a few lines missing in the CMakeLists.txt for cairo; see kpeeters@d68cf35 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants