Game Development Community

Compiling TGB Game using XCode

by Gavin Beard · in Torque Game Builder · 02/15/2011 (11:25 am) · 5 replies

Hi all

is there anything in specific I need to setup within XCode to compile a new TGB Game executable? I am attempting to compile it without any modifications and getting over 800 warnings, mostly around depreciation such as:


/Applications/TorqueGameBuilder-1.7.5-Pro/engine/compilers/Xcode/../../source/audio/audioFunctions.cc:103:0 /Applications/TorqueGameBuilder-1.7.5-Pro/engine/compilers/Xcode/../../source/audio/audioFunctions.cc:103: warning: deprecated conversion from string constant to 'char*'


/Applications/TorqueGameBuilder-1.7.5-Pro/engine/compilers/Xcode/../../source/platformMacCarb/macCarbFont.cc:165:0 /Applications/TorqueGameBuilder-1.7.5-Pro/engine/compilers/Xcode/../../source/platformMacCarb/macCarbFont.cc:165: warning: 'ATSUSetTextPointerLocation' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ATSUnicodeObjects.h:1373)


/Applications/TorqueGameBuilder-1.7.5-Pro/engine/compilers/Xcode/../../source/platformMacCarb/macCarbFont.cc:166:0 /Applications/TorqueGameBuilder-1.7.5-Pro/engine/compilers/Xcode/../../source/platformMacCarb/macCarbFont.cc:166: warning: 'ATSUSetRunStyle' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ATSUnicodeObjects.h:2347)


/Applications/TorqueGameBuilder-1.7.5-Pro/engine/compilers/Xcode/../../source/platformMacCarb/macCarbFont.cc:166:0 /Applications/TorqueGameBuilder-1.7.5-Pro/engine/compilers/Xcode/../../source/platformMacCarb/macCarbFont.cc:166: warning: 'ATSUSetRunStyle' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ATSUnicodeObjects.h:2347)



Anything I need to do? I am using XCode 3.2.5

thanks

Gavin

#1
02/15/2011 (11:29 am)
Those are warnings. Looks to me like your project built :)

Errors would be worse. Actual errors stop compilation before it's done, not warnings (until you set the compiler to flag warnings as errors, that is).
#2
02/15/2011 (11:31 am)
Indeed :)

Just don't like having warnings If I can help it :p
#3
02/15/2011 (12:52 pm)
I got a ton o' deprecation warnings when I tried switching the project over to the latest SDK. I "solved" the problem by deciding not to do that again. :-)
#4
02/15/2011 (2:26 pm)
Use GCC 4.2 and SDK 10.6. At least if you want to get it into the MAS eventually :)

SDK 10.5 in its entirety is deprecated, and 10.4 has been removed. Point out the warnings to GG, and maybe they'll get somebody on removing the warnings, eventually. They've been there forever, and using LLVM actually breaks stuff. Serious breakage.
#5
02/15/2011 (2:35 pm)
hehe,

the main thing for now, is it runs! I've made sure it was on 10.6 and gcc 4.2 and it compiles and runs, its just alot of depreciation errors.

Thanks Ronny :)