• 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: More File Paths for dylibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More File Paths for dylibs


  • Subject: Re: More File Paths for dylibs
  • From: Mike Blaguszewski <email@hidden>
  • Date: Wed, 30 May 2007 14:05:32 -0400

On May 30, 2007, at 1:37 PM, Dave wrote:

I've been search for info and playing around to try and get this resolved. I'm not sure where to use the @executabe_path and @loader_path or which one I need to use. Do I set it in the install_name_tool utility? If so, which of the two paths do I use given the scenario below.

@executable_path expands to the path of the application, and @loader_path to the particular item (app, library or plugin) that's the loading the shared library in question. Unless your plugins are at a fixed location with respect to the application, you'll need to use @loader_path, but be aware that it's not available prior to 10.4.


If you were building the lib in Xcode you'd use the "Installation Directory" setting, but since it's a third party library lib you'll have to use install_name_tool on it. (And note the warning in the manpage, though I don't know if that's a problem in practice.)

What you're doing seems right to me, but make sure you link the plugin against the library *after* using install_name_tool. Also, you can check the settings using otool -D (shows install name) and otool - L (shows linker dependencies).

--
Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.



_______________________________________________
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: More File Paths for dylibs
      • From: Dave <email@hidden>
References: 
 >More File Paths for dylibs (From: Dave <email@hidden>)

  • Prev by Date: More File Paths for dylibs
  • Next by Date: RE: Cross-project Reference and Targets
  • Previous by thread: More File Paths for dylibs
  • Next by thread: Re: More File Paths for dylibs
  • Index(es):
    • Date
    • Thread