Game Development Community

Snow Leopard compile problems.

by Dean Parker · in iTorque 2D · 07/04/2010 (1:03 pm) · 3 replies

I have upgraded to leopard and trying to compile an app. I am getting the following errors...


Build iTorque2DGame_sim of project iTorque2D with configuration Debug

Check dependencies

[WARN]warning: no rule to process file '$(PROJECT_DIR)/../../projectFiles/Default.png' of type image.png for architecture i386
[WARN]warning: no rule to process file '$(PROJECT_DIR)/../../projectFiles/main.cs' of type text for architecture i386

Ld build/Debug-iphonesimulator/iTorque2DGame.app/iTorque2DGame normal i386
cd /Users/1parker1/Documents/iT2D_1_4_Beta/MyProjects/AirFireRescueV1.6/buildFiles/XCode_iPhone
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk -L/Users/1parker1/Documents/iT2D_1_4_Beta/MyProjects/AirFireRescueV1.6/buildFiles/XCode_iPhone/build/Debug-iphonesimulator -L\"/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/CoreGraphics.framework\" -F/Users/1parker1/Documents/iT2D_1_4_Beta/MyProjects/AirFireRescueV1.6/buildFiles/XCode_iPhone/build/Debug-iphonesimulator -F\"/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks\" -F\"/Users/1parker1/Documents/iT2D_1_4_Beta/MyProjects/AirFireRescueV1.6/buildFiles/XCode_iPhone/../../../../engine/lib/xiph/iPhone\" -filelist /Users/1parker1/Documents/iT2D_1_4_Beta/MyProjects/AirFireRescueV1.6/buildFiles/XCode_iPhone/build/iTorque2D.build/Debug-iphonesimulator/iTorque2DGame_sim.build/Objects-normal/i386/iTorque2DGame.LinkFileList -mmacosx-version-min=10.5 -dead_strip -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -lz -framework CoreGraphics -framework AudioToolbox -framework OpenAL -framework CoreAudio -framework MediaPlayer -o /Users/1parker1/Documents/iT2D_1_4_Beta/MyProjects/AirFireRescueV1.6/buildFiles/XCode_iPhone/build/Debug-iphonesimulator/iTorque2DGame.app/iTorque2DGame

ld: warning: directory '\"/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/CoreGraphics.framework\"' following -L not found
ld: warning: directory '\"/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks\"' following -F not found
ld: warning: directory '\"/Users/1parker1/Documents/iT2D_1_4_Beta/MyProjects/AirFireRescueV1.6/buildFiles/XCode_iPhone/../../../../engine/lib/xiph/iPhone\"' following -F not found
Undefined symbols:
".objc_class_name_UIDevice", referenced from:
literal-pointer@__OBJC@__cls_refs@UIDevice in iPhoneMain.o
".objc_class_name_NSAutoreleasePool", referenced from:
literal-pointer@__OBJC@__cls_refs@NSAutoreleasePool in iPhoneMain.o
".objc_class_name_NSRunLoop", referenced from:
literal-pointer@__OBJC@__cls_refs@NSRunLoop in iPhoneAlerts.o
".objc_class_name_NSCharacterSet", referenced from:
literal-pointer@__OBJC@__cls_refs@NSCharacterSet in iPhoneTextEntryController.o
".objc_class_name_UIAlertView", referenced from:
literal-pointer@__OBJC@__cls_refs@UIAlertView in iPhoneAlerts.o
".objc_class_name_NSString", referenced from:
literal-pointer@__OBJC@__cls_refs@NSString in iPhoneAlerts.o
".objc_class_name_UIFont", referenced from:
literal-pointer@__OBJC@__cls_refs@UIFont in iPhoneFont.o
".objc_class_name_UIApplication", referenced from:
literal-pointer@__OBJC@__cls_refs@UIApplication in iPhoneTextEntry.o
".objc_class_name_UIView", referenced from:
.objc_class_name_iPhoneOGLVideo in iPhoneOGLVideo.o
literal-pointer@__OBJC@__cls_refs@UIView in iPhoneTextEntry.o
".objc_class_name_UIAccelerometer", referenced from:
literal-pointer@__OBJC@__cls_refs@UIAccelerometer in iPhoneOGLVideo.o
".objc_class_name_CAEAGLLayer", referenced from:
literal-pointer@__OBJC@__cls_refs@CAEAGLLayer in iPhoneOGLVideo.o
".objc_class_name_NSUserDefaults", referenced from:
literal-pointer@__OBJC@__cls_refs@NSUserDefaults in iPhoneFileio.o
".objc_class_name_EAGLContext", referenced from:
literal-pointer@__OBJC@__cls_refs@EAGLContext in iPhoneOGLVideo.o
".objc_class_name_NSURL", referenced from:
literal-pointer@__OBJC@__cls_refs@NSURL in iPhoneWindow.o
".objc_class_name_NSTimer", referenced from:
literal-pointer@__OBJC@__cls_refs@NSTimer in iPhoneMain.o
".objc_class_name_NSDictionary", referenced from:
literal-pointer@__OBJC@__cls_refs@NSDictionary in iPhoneOGLVideo.o
".objc_class_name_NSObject", referenced from:
.objc_class_name_TGBAppDelegate in TGBAppDelegate.o
".objc_class_name_UIViewController", referenced from:
.objc_class_name_iPhoneAlertDelegate in iPhoneAlerts.o
.objc_class_name_iPhoneTextEntryController in iPhoneTextEntryController.o
".objc_class_name_NSFileManager", referenced from:
literal-pointer@__OBJC@__cls_refs@NSFileManager in iPhonePlatform.o
".objc_class_name_NSNumber", referenced from:
literal-pointer@__OBJC@__cls_refs@NSNumber in iPhoneOGLVideo.o
".objc_class_name_NSData", referenced from:
literal-pointer@__OBJC@__cls_refs@NSData in iPhoneUtil.o
".objc_class_name_NSDate", referenced from:
literal-pointer@__OBJC@__cls_refs@NSDate in iPhoneAlerts.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

About the author

I started programming in early 80's on an Atari 800 and now I am coding on VS 2008 C#.


#1
07/04/2010 (1:08 pm)
Dean, in your target make sure gcc is 4.2 and base SDK is at least 3.2.
#2
07/04/2010 (3:13 pm)
Yupp according the log it tries to use GCC4 to compile against the 3.2 Simulator SDK

iPhone OS 3.0+ require GCC4.2 to compile
#3
07/04/2010 (5:26 pm)
Thanks guys, that did the trick.