• 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: How to include and link to dylib within app bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to include and link to dylib within app bundle?


  • Subject: Re: How to include and link to dylib within app bundle?
  • From: Peter O'Gorman <email@hidden>
  • Date: Thu, 19 Jun 2008 00:53:04 -0500

Josh de Lioncourt wrote:

> The problem is, that the compiled program is not using the bundled
> .dylib. It's looking for the dylib in /usr/local/lib... etc.
>
> I guess I'm missing a step, and after tons of reading and searching, am
> still coming up short on how to do this.
>
> Can someone point me in the right direction?  Thanks!

Need to change the load command to point it to a relative path (a path
beginning with @executable_path/ @loader_path or @rpath)

http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/loading_code.html
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/install_name_tool.1.html

Also searching the docs for the @paths above should prove useful.

Hope this helps,
Peter
--
Peter O'Gorman
http://pogma.com
 _______________________________________________
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: 
 >How to include and link to dylib within app bundle? (From: Josh de Lioncourt <email@hidden>)

  • Prev by Date: How to include and link to dylib within app bundle?
  • Next by Date: Re: Xib localization
  • Previous by thread: How to include and link to dylib within app bundle?
  • Next by thread: Re: Xib localization
  • Index(es):
    • Date
    • Thread