Re: Using a dylib without installing it
Re: Using a dylib without installing it
- Subject: Re: Using a dylib without installing it
- From: "DAS Loop" <email@hidden>
- Date: Tue, 10 Jul 2007 23:25:22 +0200
Hi,
Try this:
install_name_tool -change libchartdir.4.dylib @executable_path/../Frameworks/libchartdir.4.dylib /Users/dlorenz/Development/Build Products/Debug/CanvasViewer.app/Contents/MacOS/CanvasViewer
Assuming that you will put the library in the Frameworks folder inside your application:
/Build Products/Debug/CanvasViewer.app/Contents/Frameworks
Best regards,
David
PS. This is maybe one of the more stupid things in Mac OS X. Why the dylib loader don't look first in some well know location inside the app bundle?
On 7/10/07, Dix Lorenz <email@hidden> 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?
Thanks,
Dix
_______________________________________________
Do not post admin requests to the list. They will be ignored.
_______________________________________________
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