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
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
#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
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.
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
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 :)
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 :)
Torque 3D Owner Ronny Bangsund
Torque Cheerleaders
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).