Re: How to include and link to dylib within app bundle?
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