Re: Using a dylib without installing it
Re: Using a dylib without installing it
- Subject: Re: Using a dylib without installing it
- From: Peter O'Gorman <email@hidden>
- Date: Tue, 10 Jul 2007 09:41:29 -0500
On Tue, 2007-07-10 at 14:41 +0200, Dix Lorenz wrote:
> Hi,
>
> I am developing a regular Cocoa-application and I need to use a 3rd-
> Party dylib. I do not want to install this in my users lib-
> directories, I want it to be inside the application bundle. But no
> matter what I try, unless I copy the .dylib into my ~/lib directory
> (presumably any other of the standard directories would work), I
> always get:
>
> dyld: Library not loaded: libchartdir.4.dylib
> Referenced from: /Users/dlorenz/Development/Build Products/Debug/
> CanvasViewer.app/Contents/MacOS/CanvasViewer
> Reason: image not found
>
> What do I need to do to get a nicely self-contained application?
use install_name_tool to change the path to the library that is encoded
in your application. You can use an install_name beginning with
@executable_path to make it relative to the application. See the man
page for install_name_tool for the gory details.
Peter
_______________________________________________
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