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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]
  • Library Woes Kaluriel Hargrove
    • Re: Library Woes Fritz Anderson

Reply via email to