Re: How to make a program look for dylibs other than /usr/local/lib?
Re: How to make a program look for dylibs other than /usr/local/lib?
- Subject: Re: How to make a program look for dylibs other than /usr/local/lib?
- From: "parag vibhute" <email@hidden>
- Date: Tue, 11 Dec 2007 19:00:24 +0530
I have mentioned answers to ur questions as following. From next time I will follow same thing, sorry for earlier one.
On Dec 11, 2007 6:35 PM, Alastair Houghton <
email@hidden> wrote:
On 11 Dec 2007, at 12:53, parag vibhute wrote:
> Have u tried the option -dylib_file of gcc which is mentioned in
> doc of dynamic library. I tried but it did not work, so want to
> check am I doing anything wrong?
I can't say I've needed to use that, no.
Also, if you're going to post something like the above, please include:
1. The URL of the document you're looking at.
2. The problem you're trying to solve.
The same problem i.e. do not want to change environment variables & also want to place dependant dynamic library at non standard location.
3. The command you tried to use.
In XCode build settings, I set value of OTHER_CPLUSPLUSFLAGS to "-dylib_file /usr/lib/libopbx.dylib:/libopbx.dylib" (I placed my dynamic library in OS volume).
4. The results of using the command (i.e. any output, as well as what
you expected it to do and what it actually did).
dyld: Library not loaded: /usr/lib/libopbx.dylib
Referenced from: /Users/palav/Desktop/./Test.app/Contents/MacOS/Test
Reason: image not found
Trace/BPT trap
Man page of ld mentions a strange thing that this dylib_file option only works with 32 bit only. So on my macbook I think it is not working. But then why apple did not give similar type of setting for 64 bit.
That way the people trying to help you won't have to search the docs
or try to guess what you're doing.
--
There are many things in your life that will catch your eye but only a few will catch your heart....pursue those'.
_______________________________________________
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