• 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: Location of dylib's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Location of dylib's


  • Subject: Re: Location of dylib's
  • From: "James B. Tuley" <email@hidden>
  • Date: Sun, 5 Dec 2004 20:54:15 -0600


On Dec 5, 2004, at 3:55 PM, Bruce Truax wrote:

I need to include a third party dylib with my program when it is
distributed. Is it possible to put the dylib in my application bundle? I
note in the documentation the following:


"The install name is the pathname used by the dynamic linker to find a
shared library at runtime. The install name is defined by the shared library
and recorded into the client program by the static linker.


You can locate private frameworks and shared libraries in an application
package using a relative-path install name beginning with @executable_path,
such as @executable_path/../Frameworks/MyFramework.framework. This is useful
for sharing functionality with plug-ins (bundles)."


This would seem to imply that to locate the library in your application
bundle you would need to build the library with a relative path install
name. This would preclude installing the dylib in your app bundle unless
you have the source. Am I interpreting this correctly?

You are interpreting this correctly, but using install_name_tool might work so you don't need to recompile.


See
http://qin.laya.com/tech_coding_help/dylib_linking.html
for more info.

-Jay
http://indyjt.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Location of dylib's
      • From: Karin Kosina <email@hidden>
    • Re: Location of dylib's
      • From: Sherm Pendley <email@hidden>
References: 
 >Location of dylib's (From: Bruce Truax <email@hidden>)

  • Prev by Date: NSCell accessor overrides being ignored?
  • Next by Date: URL to html file in the application package
  • Previous by thread: Location of dylib's
  • Next by thread: Re: Location of dylib's
  • Index(es):
    • Date
    • Thread