Game Development Community

Compiling TGB 1.5.1 (at least trying to)

by David Janssens · in Torque Game Builder · 11/15/2007 (3:30 pm) · 0 replies

I am trying to get TGB 1.5.1 (current latest version to be found in the wild) compiling on a OpenSuSE 10.3 system (which implies also a GCC 4.2 compiler - deadly combination it seems).

These are the steps I have taken until now :
- get the source code from a windows machine to linux
- make sure nasm, sdl-devel, openal-devel are installed
- in ./engine/lib/openal/LINUX/al/alc_func.h change the appearance of ALCvoid into a simple void
- in ./engine/lib/openal/LINUX/al/al_func.h change the appearance of ALvoid into a simple void
- in ./engine/source/console/consoleObject.h : remove the 'AbstractClasRep::' on line 274
- in .engine/compilers/make/targets.torque.mk : change scriptObject.cc to scriptObjects.cc on line 33
- in ./engine/compilers/make/targets.torque.mk: change the lines around line 73 talking about zip files into these 3:
core/zipCryptStream.cc \
core/zipObject.cc \
core/zipSubStream.cc

...
and then I'm stuck. My compiler gives this warning :
dgl/dgl.cc: In function 'U32 dglDrawTextN(GFont*, const Point2I&, const UTF16*, U32, const ColorI*, U32, F32)':
dgl/dgl.cc:343: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
./core/frameAllocator.h:259: note: candidate 1: T& FrameTemp::operator[](U32) [with T = TextVertex]

I have looked on the internet, but no clear explanation is available. My C++ is too rusty to be able to find a way out it seems. Any help would be appreciated.

Thanks