• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: install_name_tool usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: install_name_tool usage
      • From: Tobias Ford <email@hidden>
References: 
 >Xcode on Developer DVD (From: David Dunham <email@hidden>)
 >install_name_tool usage (From: Tobias Ford <email@hidden>)

  • Prev by Date: install_name_tool usage
  • Next by Date: universal binaries
  • Previous by thread: install_name_tool usage
  • Next by thread: Re: install_name_tool usage
  • Index(es):
    • Date
    • Thread