Hello,
I can't seem to get an alternate run time library path associated with a dynamic library.
My application compiles and runs fine on a MacPro10.5.6 system. I'm using Xcode 3.1.2.
When I run my application on a PPC 10.4 I continually get the message "dyld: Library not loaded: /usr/X11/lib/libpng.3.dylib".
My 10.4 system does not have the libpng.3.dylib library installed (as none of them apparently do) and if I install this specific library in this specific place my application runs fine on this PPC system.
I have put the libpng.3.dylib file in my application bundle framework and haven't found out the proper way to have my framework's libpng.3.dylib used instead of the one in the X11 directory on my PPC system running 10.4..
I have tried various combinations of the -dylib_file loader directive including the following one and my 10.4 PPC system is still looking for the original library in the X11 directory instead of the one in my bundle framework. -dylib_file /usr/X11/lib/libpng.3.dylib:@executable_path/libpng.3.dylib
I have tried renaming the libpng.3.dylib library and my PPC system still gives the same /usr/X11/lib/libpng.3.dylib not found error message when it accesses the renamed file.. I have also installed libpng.3.dylib in various folder locations in and around my application bundle and the loader continues to look for libpng.3.dylib in /usr/X11/lib.
Any suggestions are welcome. Regards,
Jeff Schriebman Leapfrog Productions 415-499-5609
|