Path to dynamic libraries
Path to dynamic libraries
- Subject: Path to dynamic libraries
- From: Johan Morin <email@hidden>
- Date: Tue, 27 Feb 2007 17:31:49 +0100
I need a little bit of help on how to specify search paths for dynamic
libraries in an application bundle.
I am using a dynamic library which is loaded with dlopen(). This works
fine when I start the application from the command line and has added
the path of the library to the environment variable DYLD_LIBRARY_PATH.
The problem is that I can not find out how to make this work for an
application bundle. I have tried modifying the Info.plist for my
application by adding DYLD_LIBRARY_PATH under LSEnvironment but that
does not seem to help.
Here is how I modified the Info.plist for my application:
<key>LSEnvironment</key>
<dict>
<key>DYLD_LIBRARY_PATH</key>
<string>$APP_PACKAGE/Contents/MacOS/lib</string>
</dict>
Is there another way to accomplish this?
Any help you could provide would be very appreciated.
Thanks,
Johan Morin
Marratech
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden