Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building for 10.3 target using X-Code 2.1



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. 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 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

Or, again, if you're building Universal, something like this:

GCC_VERSION_ppc	3.3

(Since the default gcc version for Xcode 2.x is 4.0.)

steve

_______________________________________________
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

This email sent to email@hidden
References: 
 >Building for 10.3 target using X-Code 2.1 (From: John Draper <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.