So far (correct me if I'm wrong, please), I've figured that if you
want a universal binary, you have to target the 10.4 sdk, it won't
work on 10.3.9.
So what if you have to support both panther an tiger?
Can you set up a project that will do it's PPC build against the
10.3.9 SDK, and it's Intel build against the 10.4?
On a related note, we've got a driver, and the only way we could get
it to compile with xcode 2.2 was to use gcc 3.3, since we got LOTS of
errors with 4.0.
I'm sure someone must know how to make this work, or is this again a
case of using 3.3 for panther/ppc and 4.0 for intel/tiger?
You might want to read the Universal Binary Programming Guide, 2nd
Edition, which covers this in some detail.
In short:
• You must use gcc 4.0 to build for Intel.
• You must use the 10.4u SDK, at least on the Intel side, in order to
target Intel.
• gcc 4.0/10.4u SDK-built targets will indeed run on 10.3.9 (but not
earlier) if you set the "Mac OS X Deployment Target" to 10.3
• You can use gcc 3.3 for your PPC side of your Universal build, by
creating a "GCC_VERSION_ppc" build setting and setting its value to 3.3
and this will let you target Mac OS 10.3.8 and earlier
• You can use the 10.3.9 SDK similarly, by creating an SDKROOT_ppc
build setting and setting it to /Developer/SDKs/MacOSX10.3.9.sdk
See the Universal Binary Programming Guidelines and the
Cross-Development Guide for complete documentation.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden