Skip to content

Issue linking to cppzmq when building xeus-python statically #635

@tbennett-adi

Description

@tbennett-adi

Hi, I am trying to build xeus-python on MacOSX as an executable, statically linking to its dependencies. I have obtained the dependencies via micromamba. Looking at the documentation, it looks like all I should have to do is turn off two flags when running cmake:

XPYT_USE_SHARED_XEUS
XPYT_USE_SHARED_XEUS_PYTHON

However, having run the following command:

cmake .. -D CMAKE_PREFIX_PATH=$CONDA_PREFIX -DXPYT_USE_SHARED_XEUS=OFF -DXPYT_USE_SHARED_XEUS_PYTHON=OFF

and then trying to build the output, I get the following error:

ld: library 'cppzmq' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm surprised to see what appears to be a dynamic cppzmq library being referenced in the build. Any ideas where I might be going wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions