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

delocate fails when LC_RPATH is set to @loader_path #62

Closed
chatziko opened this issue Dec 14, 2019 · 2 comments · Fixed by #94
Closed

delocate fails when LC_RPATH is set to @loader_path #62

chatziko opened this issue Dec 14, 2019 · 2 comments · Fixed by #94

Comments

@chatziko
Copy link

Using a lib from ortools

$ otool -l libClp.1.14.3.dylib
...
          cmd LC_RPATH
      cmdsize 32
         path @loader_path (offset 12)

delocate-wheel is confused, searching for a directory names "@loader_path"

$ delocate-wheel dist/*

/usr/local/lib/python3.7/site-packages/delocate/libsana.py:110: UserWarning: Couldn't find @rpath/libClp.1.dylib on paths:
	/tmp/dist/@loader_path
  '\n\t'.join(realpath(path) for path in rpaths),

Same thing with:

          cmd LC_RPATH
      cmdsize 24
         path $ORIGIN (offset 12)
@matthew-brett
Copy link
Owner

That's right, I'm afraid, we don't deal with @loader_path at the moment. I guess @loader_path is always the path containing the library expressing the dependencies.

@chatziko
Copy link
Author

Hacky workaround for anyone interested: create a symlink named @loader_path (the exact path is shown in the error message) to wherever the library is! delocate-wheel will happily follow it and find the library 😄

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

Successfully merging a pull request may close this issue.

2 participants