Re: Location of dylib's
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