[Python] cannot open shared object file: No such file or directory with pybind11

Discussão em 'Python' iniciado por Stack, Maio 30, 2025.

  1. Stack

    Stack Membro Participativo

    I have a python script myscript.py:

    import pydmy as tp


    pydmy is my pybind11 wrapper dynamic library. pydmy will load another C++ library libabc.so. libabc.so is under the same directory as pydmy.

    1. In windows, everything is fine.
    2. In linux, libabc.so: cannot open shared object file: No such file or directory

    I was told I need to add -Wl,-rpath,$$ORIGIN in makefile of pydmy. But it does not work.

    Continue reading...

Compartilhe esta Página