0

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.

3
  • Can we see your Makefile? Commented May 30 at 23:04
  • Finally I fixed it. LDFLAGS = -Wl,-rpath,$$ORIGIN is not okay. But LDFLAGS = '-Wl,-rpath,$$ORIGIN' is working. I still do not know why single quote makes such a difference. Commented Jun 3 at 2:19
  • Make is extremely sensitive to syntax errors e.g. see stackoverflow.com/questions/1755550/… Commented Jun 3 at 15:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.