Re: Building for 10.3 target using X-Code 2.1
Re: Building for 10.3 target using X-Code 2.1
- Subject: Re: Building for 10.3 target using X-Code 2.1
- From: John Draper <email@hidden>
- Date: Mon, 01 May 2006 22:21:15 -0700
Steve Christensen wrote:
On May 1, 2006, at 12:26 PM, John Draper wrote:
I'm using X-Code 2.1 and building for a 10.3 target. If I were to
accidentely use a 10.4
object, wouldn't the compiler tell me about it?
Here are some errors I'm getting....
mkdir "/Developer/testcode/On4 GUI031506/build/Release/On4
GUI031506.app/Contents/MacOS"
cd "/Developer/testcode/On4 GUI031506"
/usr/bin/gcc-4.0 -o "/Developer/testcode/On4 GUI031506/build/
Release/On4 GUI031506.app/Contents/MacOS/On4 GUI031506" "-L/
Developer/testcode/On4 GUI031506/build/Release" "-F/Developer/
testcode/On4 GUI031506/build/Release" "-F/Developer/testcode/On4
GUI031506" -filelist "/Developer/Examples2/OmniGroup/Scripts/On4
GUI031506.build/Release/On4 GUI031506.build/Objects-normal/ppc/On4
GUI031506.LinkFileList" -framework Cocoa -framework WebKit -
framework CoreData -framework Foundation -framework AppKit -arch ppc
/usr/bin/ld: Undefined symbols:
.objc_class_name_CIColor
.objc_class_name_CIFilter
.objc_class_name_CIVector
collect2: ld returned 1 exit status
Why is the linker trying to link in these 10.4 objects when I
explicitly specify I want the
target to run on 10.3?
Well, perhaps you're not building for 10.3? The "Mac OS Deployment
Target" setting should be set to 10.3 if that's what you want.
I did that.... but it still thinks I want to build for 10.3, what's up
with that?
Alternately, if you're building a Universal Binary, you can specify
per-architecture settings by adding these to the build settings:
MACOSX_DEPLOYMENT_TARGET_i386 10.4
MACOSX_DEPLOYMENT_TARGET_ppc 10.3
I'm not building for Universal binary (yet).
I notice it is using the GCC 4.0 compiler. Should I set it up to
build using the earlier
compiler? I remember learning we can change this... how is it done
using 2.1 X-Code?
If you're building for anything earlier than 10.3.9, you need to be
using the gcc 3.3 compiler. You can set this by adding the following
to your build settings:
GCC_VERSION 3.3
We did that, it made no difference and I still get that link error.
All I can think of
is that some new object is using it, and Apple didn't tell us about
it... (sigh).
Or, again, if you're building Universal, something like this:
GCC_VERSION_ppc 3.3
I'm not - yet.
John
_______________________________________________
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