0

OSX 10.10 Yosemite.
My application depends on Intel IPP. At compile time it depends on 2 dylibs, but these depend from other dylibs, which are loaded at runtime (and not displayed in otool -L) . When starting my application does not find these libraries.

I do not understand how can I specify for my app (or for the compile time dependent dylibs) a folder to search a path for runtime dylibs.

As far as I can understand, it is necessary to use rpath. But what exactly should be done? How to set runtime search path? Do I need to set a 'rpath' for the executable file or for the dylibs?

Vladimir Bershov
  • 2,701
  • 2
  • 21
  • 51

1 Answers1

0

I think you will have to use install_name_tool command to add the dylib.

Don't think you can setup a folder that can magically load all the dylib in it. It's against the purpose of code signing and security.

Cai
  • 3,609
  • 2
  • 19
  • 39