• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: dyld: "Library not loaded:" Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dyld: "Library not loaded:" Error


  • Subject: Re: dyld: "Library not loaded:" Error
  • From: Dan Ribe <email@hidden>
  • Date: Fri, 14 Aug 2009 12:25:02 +0530

Mac application bundle is designed such a way that I can contain all the required resources/frameworks/libraries etc for that application.

Now when you are building your application & if you are using any non-standard library (which doesn't come with the Mac OS X). Then you need to bundle the library with the application bundle itself. Generally dynamic libraries & frameworks are copied into the Frameworks folder in the app bundle (using a copy build phase). Now because you have copied it inside the bundle & you want your application to use it from there & install_name_tool helps you to modify the framework/dynamic library path. 

Hope that make the things clear !

On Fri, Aug 14, 2009 at 11:42 AM, n179911 <email@hidden> wrote:
Thanks. There is no XCode setting for that?
I am confused why I need to run another tool to setup my XCode library path?

On Thu, Aug 13, 2009 at 10:48 PM, Dan Ribe<email@hidden> wrote:
> You need to update the library path in your application binary using
> install_name_tool command. You should add this as a build phase so that this
> happens automatically when you create a build.
> You can use "otool -L <your binary name>" command to see the current paths
> being used by your binary. thanks
>
> On Fri, Aug 14, 2009 at 10:38 AM, n179911 <email@hidden> wrote:
>>
>> Hi,
>>
>> When I run my XCode program, I get this
>> dyld: Library not loaded: libboost_system-xgcc40-mt-1_39.dylib
>>  Referenced from:
>> /Users/n179911/Documents/ServerXCode/build/Debug/ServerXCode
>>  Reason: image not found
>>
>> But I am not sure why I am getting this 'Library not loaded' error.
>>
>> I have added '/Users/n19911/src/boost_1_39_0/stage/lib' to my 'Library
>> Search Paths'  and I have added '-lboost_system=xgc40-mt' in 'Other
>> Linker Flags'.
>> With these, I won't even able to link successfully.
>>
>> And I have double checked that "libboost_system-xgcc40-mt-1_39.dylib"
>> is at "/Users/n179911/src/boost_1_39_0/stage/lib"
>>
>> $ ls -la libboost_system-xgcc40-mt-1_39.dylib
>> -rwxr-xr-x  1 n179911  staff  30808 Aug 13 21:22
>> libboost_system-xgcc40-mt-1_39.dylib*
>> $ pwd
>> /Users/n179911/src/boost_1_39_0/stage/lib
>>
>> Please tell me if you have any idea.
>>
>> Thank you.
>>  _______________________________________________
>> 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
>
>

 _______________________________________________
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

References: 
 >dyld: "Library not loaded:" Error (From: n179911 <email@hidden>)
 >Re: dyld: "Library not loaded:" Error (From: Dan Ribe <email@hidden>)
 >Re: dyld: "Library not loaded:" Error (From: n179911 <email@hidden>)

  • Prev by Date: Re: dyld: "Library not loaded:" Error
  • Next by Date: Re: dyld: "Library not loaded:" Error
  • Previous by thread: Re: dyld: "Library not loaded:" Error
  • Next by thread: Re: dyld: "Library not loaded:" Error
  • Index(es):
    • Date
    • Thread