• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Loading dylib that is not in /usr/local/lib/
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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@hidden
Project 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

References: 
 >Loading dylib that is not in /usr/local/lib/ (From: Rich Collyer <email@hidden>)

  • Prev by Date: Loading dylib that is not in /usr/local/lib/
  • Next by Date: Re: Xcode complaining about ccache
  • Previous by thread: Loading dylib that is not in /usr/local/lib/
  • Next by thread: post to mailing list
  • Index(es):
    • Date
    • Thread