Frameworks linking against Frameworks
Frameworks linking against Frameworks
- Subject: Frameworks linking against Frameworks
- From: "Wesley Smith" <email@hidden>
- Date: Tue, 18 Mar 2008 11:25:00 -0700
i List,
I have some questions about frameworks linking against other
frameworks. I'm working on a graphics framework (called Muro) that
makes use of other libs like Cg, which come in framework form. What
I'd like to have happen is to link my framework against Cg.framework
and have it such that the end-user's app only has to link against my
framework. Obviously, Cg.framework will have to be installed on their
computer, but they should not need to add it to their xcode project.
Assuming that Cg.framework and Muro.framework are located in
/Library/Frameworks, should this be possible? I currently get some
linker errors:
/usr/bin/ld: warning can't open dynamic library:
@executable_path/../Frameworks/Cg.framework/Cg referenced from:
/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Muro.framework/Muro
(checking for undefined symbols may be affected) (No such file or
directory, errno = 2)
/usr/bin/ld: Undefined symbols:
_cgCreateContext referenced from Muro expected to be defined in
@executable_path/../Frameworks/Cg.framework/Cg
_cgCreateProgram referenced from Muro expected to be defined in
@executable_path/../Frameworks/Cg.framework/Cg
There are more symbols missing, but I think the point is clear. For
one thing, I have /Library/Frameworks set in the "Frameworks search
path" option in Xcode's build settings. I haven't been able to much
info specific to this subject yet. Any ideas?
thanks,
wes
_______________________________________________
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