Re: linking me weakly
Re: linking me weakly
- Subject: Re: linking me weakly
- From: Shaun Wexler <email@hidden>
- Date: Fri, 8 Jul 2005 23:40:11 -0700
On Jul 8, 2005, at 5:58 PM, Matt Neuburg wrote:
This is my first attempt at cross-development. I'm in Xcode 2.1 on
Tiger and
I want my project to run in Panther. But the project uses QTKit.
Obviously I
won't be making any QTKit calls in Panther. Still, the QTKit
framework is
linked in the project.
So as a test I commented out all the code that calls QTKit; I even
commented
out the #import from QTKit. I installed the 10.4 Universal cross-
development
SDK and set the project to use it, and I set the target's Mac OS X
Deployment Target to 10.3, in accordance with the instructions in the
tutorial (at least, that is how I understand them).
My app fails to start up on Panther, though, because QTKit isn't being
found. So evidently I'm not being linked weakly after all. What am
I doing
wrong? Thx - m.
Matt, you can use QTKit / QuartzCore in Panther if QuickTime 7 is
installed, but weak linking does not work. What I had to do was
create a bundle which was linked against those frameworks, and have
its categories replace the non-QT7 fallback methods. It will fail to
load if QT7 is unavailable, but your app will still launch. This
works even without building against the 10.3.9 SDK.
BOOL QTKitAvailable = [[NSBundle
bundleWithIdentifier:@"com.myApp.qt7bundle"] load];
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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