Re: Library Woes
Re: Library Woes
- Subject: Re: Library Woes
- From: Fritz Anderson <email@hidden>
- Date: Fri, 28 Nov 2008 11:11:21 -0600
On 27 Nov 2008, at 8:17 PM, Kaluriel Hargrove wrote:
I've been trying to add the freeimage library to my application but
i keep getting this error. any ideas?
dyld: Library not loaded: libfreeimage-3.11.0.dylib-i386
Referenced from: /Users/bob1/Documents/Quickpic/build/Debug/
Quickpic.app/Contents/MacOS/Quickpic
Reason: image not found
The dynamic loader, at run time (you don't say when you "keep getting
this error," but it seems to be at run time), could not find the file
that contains the library.
Where is the library? /usr/lib? In a framework? In a .dylib file in
the application package?
In any case, when you build the library, you should use its target
build settings to set "Installation Directory" to the directory the
library will reside in. Then link the application against the built
library, so it knows where to look.
If you don't control the building of the library, man
install_name_tool. You'll need the original installation path: otool -
D on the library to get it.
— F
--
Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- <http://x3u.manoverboard.org/
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Library Woes (From: Kaluriel Hargrove <email@hidden>) |