Re: dyld: "Library not loaded:" Error
Re: dyld: "Library not loaded:" Error
- Subject: Re: dyld: "Library not loaded:" Error
- From: n179911 <email@hidden>
- Date: Thu, 13 Aug 2009 23:12:22 -0700
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