Re: Universal Binaries for an app built with different SDK versions
Re: Universal Binaries for an app built with different SDK versions
- Subject: Re: Universal Binaries for an app built with different SDK versions
- From: Alexander von Below <email@hidden>
- Date: Fri, 13 Jan 2006 02:12:27 +0100
I am not sure if this helps you, but if you figured out how to build
your code on PPC, then this should solve your issue for Intel:
In my case, my app has to be PPC compatible down to 10.2.8, and I
wish to say "GREAT JOB!" to the Xcode team, because my Universal
Binary compiles with one click. All I need are these build settings:
GCC_VERSION_i386 = 4.0
GCC_VERSION_ppc = 3.3
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
MACOSX_DEPLOYMENT_TARGET_ppc = 10.2
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
SDKROOT_ppc = /Developer/SDKs/MacOSX10.2.8.sdk
Works like a charm, no manual lipo needed
HTH
Alex
On 13.01.2006, at 01:57, Steve Bennett wrote:
Hi!
I've got a situation (a set of driver kexts, installers, control
panels,
support applications and a few command line tools...) which
contains a lot
of elements need to be built with specific SDK versions (10.1.5,
10.2.8, and
10.3.0, depending on the code in question...) and almost
exclusively built
using the 2.95.2 compiler on PPC platforms in order to load
properly on
different versions of the OS. All of this is being built fine
using XCode
2.2 right now, and I'm in the middle of the Intel port.
What I'd *really* like to make a universal binary of these
elements, where
the PPC version is built with the older SDKs and compiler, and the
Intel
version built with the universal SDK and new compiler. Which
brings up a
two very important questions:
1) How to merge the two versions together. It seems clear I will
need to
have two project files for each element, and merge them using a
script. I
see that XCode appears to be using a command called
CreateUniversalBinary,
but I can't find it, so I'm guessing it's an integrated pseudo
command. My
guess, based on Tech Note TN2137, is that "lipo" can be used to do
the job,
yes?
2) Is this even safe to do? Are there any hidden gotchas? I guess
this is
my primary concern, figuring out whether a PPC binary built, say,
using the
10.1.5 SDK and the 2.95.2 compiler can be safely merged with an
Intel binary
using the 4.0 universal SDK and 4.0 compiler?
-->Steve
_______________________________________________
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
_______________________________________________
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