Multiple dylibs in a framework.
Multiple dylibs in a framework.
- Subject: Multiple dylibs in a framework.
- From: David Springer <email@hidden>
- Date: Fri, 19 Dec 2008 16:26:52 -0700
Folks,
I looked though the archives and the docs and I have tried the suggestions in there, but I can't figure this out.
I have a bunch of 3rd-party .dylibs that are built with an LC_ID_DYLIB like this: "@loader_path/libFoo.dylib". I also have a dylib that I make myself which references these 3rd party dylibs. I want to embed my dylib (which refers to the other 3rd party dylibs) in various apps, and also allow plug-ins for those apps to access my dylib as well.
A problem: the 3rd party dylibs all refer to each other with LC_LOAD_DYLIB "@loader_path/libOtherFoo.dylib"
How do I do this?
So far I have made a framework out my dylib, with an install_path of @executable_path/../Frameworks/MyFramework.framework/Versions/A/MyFramework.
In the Xcode project that makes MyFramework, I link to all the 3rd party dylibs. I also specify -sub_library for all the 3rd party dylibs. The 3rd party dylibs are copied into the executable dir of MyFramework.
When I go to build a project that uses MyFramework, I get 1000's of "undefined symbol" errors, and warnings that look like this:
ld: warning can't open dynamic library: @loader_path/libFoo.dylib referenced from: /MySource/build/Development/MyFramework.framework/MyFramework (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
_______________________________________________
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