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: Alastair Houghton <email@hidden>
- Date: Tue, 11 Dec 2007 10:32:24 +0000
On 10 Dec 2007, at 16:16, parag vibhute wrote:
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.
Well, I was going to suggest that you actually change the dylib
itself, e.g.
install_name_tool -id @executable_path/../Frameworks/libopbx.dylib
then you add a Copy Files build phase to your project to copy the
libopbx.dylib file into your Frameworks folder.
This seems like by far the simplest solution.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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