Re: Loading dylib that is not in /usr/local/lib/
Re: Loading dylib that is not in /usr/local/lib/
- Subject: Re: Loading dylib that is not in /usr/local/lib/
- From: Jack Repenning <email@hidden>
- Date: Wed, 26 Nov 2008 16:20:20 -0800
On Nov 26, 2008, at 2:19 PM, Rich Collyer wrote: I am building a dylib that I need to keep installed in the application bundle that is using it.
When I launch the application, I get the run time error:
dyld: Library not loaded: /usr/local/lib/<name of lib>.dylib Referenced from: /Users/<path to application> Reason: image not found
How do I convince the application to look for the dylib in :<application>/Contents/Resources/
BTY, the solution also has to work on 10.4.x.
In the SCPlugin project ( http://scplugin.tigris.org), we use otool to rewrite the references to the library appropriately. There are a couple Ruby scripts involved, that you may copy and reuse.
Check out http://scplugin.tigris.org/svn/scplugin/trunk/, launch SCPlugin.xcodeproj, and "Get Info" on the "Copy dependent libraries" step of the "SCPluginUIDaemon" application target for full details. You'll find the helper scripts in the tools/ subdirectory.
-==- Jack Repenning email@hiddenProject Owner SCPlugin http://scplugin.tigris.org "Subversion for the rest of OS X"
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden