Re: install_name_tool usage
Re: install_name_tool usage
- Subject: Re: install_name_tool usage
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 10 Jul 2006 19:22:07 -0600
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
_______________________________________________
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