• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: building for panther & intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: building for panther & intel


  • Subject: Re: building for panther & intel
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 19 Jan 2006 21:31:54 -0800

On Jan 19, 2006, at 7:09 PM, Herbert wrote:

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.


http://developer.apple.com/documentation/MacOSX/Conceptual/ universal_binary/index.html#//apple_ref/doc/uid/TP40002217

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.

http://developer.apple.com/documentation/DeveloperTools/Conceptual/ cross_development/

Chris

_______________________________________________
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


References: 
 >building for panther & intel (From: Herbert <email@hidden>)

  • Prev by Date: Re: building for panther & intel
  • Next by Date: Re: Problems compiling project with x86 .asm files as Universal Binary
  • Previous by thread: Re: building for panther & intel
  • Next by thread: Only Link In Essential Symbols
  • Index(es):
    • Date
    • Thread