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: Mon, 10 Dec 2007 21:46:48 +0530
Alastair,
I was incorrectly changed dynamic libarry as follows
install_name_tool -change /usr/lib/opbx.dylib opbx.dylib /Users/palav/libopbx.dylib
But it should be as follows
install_name_tool -change /usr/lib/libopbx.dylib
opbx.dylib /Users/palav/test.app/Content/MacOS/test
Thanks again,
I will test this tomorrow in detail as it is 10 pm here & will reply u if get any questions. Thanks a lot.
Palav
On Dec 10, 2007 9:31 PM, parag vibhute <
email@hidden> wrote:
No error message. But when I linked that library to my application & build my application & then run the "otool -L" on my application & found that my application still depends on /usr/lib/libopbx.dylib which should be only "
libopbx.dylib".
Thanks,
palavOn Dec 10, 2007 9:25 PM, Alastair Houghton <
email@hidden> wrote:
On 10 Dec 2007, at 15:51, parag vibhute wrote:
> Is it possible to rebuild the library?? I only have headers files
> which are used by dynamic library and lipopbx.dylib file. I do not
> have source code of that dylib.
I don't know. You would need the source code to rebuild it. You
could ask whoever gave you the library for help with that.
> I tried to use install_name_tool but it did not work as man page
> says for this tool to work when the install names are larger
> the binary should be built with the ld(1) -header-
> pad_max_install_names option which I think is not used while
> building the dynamic library.
What error message did you get?
--
There are many things in your life that will catch your eye but only a few will catch your heart....pursue those'.
--
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