Game Development Community

Problems compiling TGB pro in xcode 3.2.1 (Mac)

by Thomas Andersson · in Torque Game Builder · 12/23/2009 (5:21 pm) · 2 replies

As the title says, I'm struggling to get this working. I've searched around on the forums and other places and managed to reduce the number of errors by moving from GCC 4.2 to 4.0 and checking a flag to allow extensions to altivec, but I'm still getting errors. I'm building with 10.5 SDK. I also get a lot of warnings for deprecated junk but I don't care about those yet. Ultimately I'd like to be able to compile with GCC 4.2 and 10.6 SDK but that's going to be up to me to do myself I'm assuming (updated for TGB are discontinued right?).

I'm assuming there is a way to solve the issues below with project settings etc. without having to go in and edit the source files themselves.


"/Applications/TorqueGameBuilder/engine/compilers/Xcode/build/Torque2D.build/Default/Torque Game Builder.build/Objects-normal/ppc/mMathAltivec.o"

/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/new: In function 'void* operator new(size_t, void*)':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/new:94: error: declaration of 'void* operator new(size_t, void*) throw ()' throws different exceptions
../../source/platform/platform.h:606: error: than previous declaration 'void* operator new(size_t, void*)'



"/Applications/TorqueGameBuilder/engine/compilers/Xcode/build/Torque2D.build/Default/Torque Game Builder.build/Objects-normal/ppc/macCarbFileio.o"

/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbFileio.cc: In function 'bool dFileTouch(const char*)':
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbFileio.cc:55: error: 'utimes' was not declared in this scope



"/Applications/TorqueGameBuilder/engine/compilers/Xcode/build/Torque2D.build/Default/Torque Game Builder.build/Objects-normal/ppc/macCarbGL.o"

/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc: In function '_CGLContextObject* getContextForCapsCheck()':
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc:61: error: invalid conversion from 'long int*' to 'GLint*'
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc:61: error: initializing argument 3 of 'CGLError CGLChoosePixelFormat(const CGLPixelFormatAttribute*, _CGLPixelFormatObject**, GLint*)'
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc: In function 'void dglSetFSAASamples(GLint)':
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc:288: error: invalid conversion from 'const long int*' to 'const GLint*'
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc:288: error: initializing argument 3 of 'GLboolean aglSetInteger(__AGLContextRec*, GLenum, const GLint*)'



"/Applications/TorqueGameBuilder/engine/compilers/Xcode/build/Torque2D.build/Default/Torque Game Builder.build/Objects-normal/i386/macCarbFileio.o"

/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbFileio.cc: In function 'bool dFileTouch(const char*)':
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbFileio.cc:55: error: 'utimes' was not declared in this scope



"/Applications/TorqueGameBuilder/engine/compilers/Xcode/build/Torque2D.build/Default/Torque Game Builder.build/Objects-normal/i386/macCarbGL.o"

/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc: In function '_CGLContextObject* getContextForCapsCheck()':
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc:61: error: invalid conversion from 'long int*' to 'GLint*'
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc:61: error: initializing argument 3 of 'CGLError CGLChoosePixelFormat(const CGLPixelFormatAttribute*, _CGLPixelFormatObject**, GLint*)'
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc: In function 'void dglSetFSAASamples(GLint)':
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc:288: error: invalid conversion from 'const long int*' to 'const GLint*'
/Applications/TorqueGameBuilder/engine/compilers/Xcode/../../source/platformMacCarb/macCarbGL.cc:288: error: initializing argument 3 of 'GLboolean aglSetInteger(__AGLContextRec*, GLenum, const GLint*)'



#1
12/26/2009 (1:25 pm)
It looks a bit like the support for older systems isn't installed. The fast way to check is to only build for x86. If you're on an Intel Mac, choose to build for the native architecture only. If that compiles cleanly, find either the OS X disc or downloaded Xcode package.

Show the contents of your package and look for MacOSX10.4.Universal.pkg, install it, clean, try again.
#2
12/28/2009 (1:09 am)
Thanks Ronny.