Installed Apple Libraries Sometimes Use `@rpath` without `LC_RPATH`
Our tomviz packaging has been failing for apple. The python bundling script has been unable to resolve @rpath
variables for some libraries. We have tried investigating the reason.
It appears that some of the libraries (such as vtkClientServerPython.so
), after being installed, use @rpath
for their library dependencies, but do not have LC_RPATH
defined. This results in unresolvable @rpath
's. Interestingly, the original built library (uninstalled) DOES have LC_RPATH
, but the installed version does not.
For vtkClientServerPython.so
, the output from otool -l
for the built library is attached, and the output from otool -l
from the installed library is attached. You can see that they both contain @rpath
, but the built library contains LC_RPATH
, while the installed library does not.