Re: Cross OS version UB development
Re: Cross OS version UB development
- Subject: Re: Cross OS version UB development
- From: Shawn Erickson <email@hidden>
- Date: Sat, 24 Feb 2007 08:36:42 -0800
On Feb 24, 2007, at 7:52 AM, Theodore H. Smith wrote:
Hi people,
What's the earliest OS I can cross compile for OS versions? Right
now I'm using these settings.
SDKROOT = /Developer/SDKs/MacOSX10.3.9.sdk
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
I usually prefer to fully specify things...
SDKROOT_ppc = /Developer/SDKs/MacOSX10.3.9.sdk
MACOSX_DEPLOYMENT_TARGET_ppc = 10.3
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
Now, what if I wanted to let PPC users run my library on MacOS
10.2? Is this possible? Whats the earliest OS I can cross compile
for? I'd rather know than test it out for myself because I don't
actually have MacOS10.2 or 10.1 or 10.0 installed.
You can compile way back into 10.1 but the question is how much work
do you want to do to achieve that?
Review the following (if you haven't already) since it outlines many
of the capabilities and issues...
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/
cross_development/>
...in particular...
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/
cross_development/HowItWorks/chapter_2_section_9.html>
In a nut shell targeting 10.1 and later is difficult because of the
lack of weak linking. Personally for new software I would target
10.3.9 and later (maybe even 10.4 and later) with 10.2.8 and later
being a consideration only if you have customers that need it. I
wouldn't worry about 10.1 or earlier users. If you must support
earlier then 10.3 (or if using C++/Objective-C++ 10.3.9) you will
need to specify gcc 3.3 for your ppc build.
...again the docs I referenced discuss all this.
-Shawn
_______________________________________________
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