Re: install_name_tool usage
Re: install_name_tool usage
- Subject: Re: install_name_tool usage
- From: Tobias Ford <email@hidden>
- Date: Wed, 12 Jul 2006 00:45:13 -0500
Just as a follow up for other people on the list that might search
for this, this is my Script Phase that finally worked...
mkdir "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks"
cp -f ../../external/library/fmod/lib/macosx/x86/libfmodex.dylib
"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/
libfmodex.dylib"
install_name_tool -change /usr/local/lib/libfmodex.dylib
@loader_path/../Frameworks/libfmodex.dylib "$TARGET_BUILD_DIR/
$PRODUCT_NAME.app/Contents/MacOs/Client"
Thanks everyone.
On Jul 10, 2006, at 8:22 PM, Nick Zitzmann wrote:
On Jul 10, 2006, at 7:13 PM, Tobias Ford wrote:
I'm trying to get install_name_tool to work correctly so that I
can get an application to use the fmod dynamic library. I'm doing
something wrong and I'm stumped. The script phase below is
running and not returning any errors, but the Application, when
run, is looking for the lib @ /usr/local/lib/libfmodex.dylib.
mkdir "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks"
cp -f ../../external/library/fmod/lib/macosx/x86/libfmodex.dylib
"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/
libfmodex.dylib"
install_name_tool -change libfmodex.dylib @executable_path/../
Frameworks/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/
Contents/MacOS/Client"
Any one know what I may doing wrong?
The arguments for install_name_tool are incorrect. The argument
following -change should be the old install path, and the last
argument must point to the library's path on the disk including the
filename. Also, make sure the library was linked with the -
headerpad_max_install_names flag present or else install_name_tool
is not guaranteed to work.
Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request
-------------------
Tobias Ford...
tobias1482 'at' mac.com
tford 'at' spacetimestudios.com
-------------------
Sr Programmer @ space time studios for a generic space game mmo
"The Batman is Muhhammed Ali -- Jim Brown -- Shaft -- an' Super-Fly
all rolled into one!" -- Batman #250 by Frank Robbins
_______________________________________________
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