page updated the 24th of december 2006
The version 1.5 of torque does not compile due to new control with GCC
and SDL library issue. Below a summary of the update to do in the code.
engine/collision/optimizedPolyList.h : replace Poly::Poly by Poly
engine/game/cameraSpline.h : replace Knot::Knot with Knot
engine/game/fx/particleEngine.cc : move namespace sgParticleEngine after class declaration
engine/platformX86UNIX/x86UNIXInputManager.cc
: comment KeyToUnicode paragraph and uncomment "if and endif" in mapkey function
And finally change the execution permission on : chmod +x lib/xiph/linux/checklinks.sh
Also in order to compile Torque , you have to apply the folowing patch :
diff -r old/engine/collision/optimizedPolyList.h new/engine/collision/optimizedPolyList.h
37c37
< Poly::Poly() { plane = -1; vertexCount = 0; material = -1; };
---
> Poly() { plane = -1; vertexCount = 0; material = -1; };
diff -r old/engine/game/cameraSpline.h new/engine/game/cameraSpline.h
40,42c40,42
< Knot::Knot() {};
< Knot::Knot(const Knot &k);
< Knot::Knot(const Point3F
&p, const QuatF &r, F32 s, Knot::Type type = NORMAL, Knot::Path
path = SPLINE);
---
> Knot() {};
> Knot(const Knot &k);
> Knot(const Point3F &p,
const QuatF &r, F32 s, Knot::Type type = NORMAL, Knot::Path path =
SPLINE);
diff -r old/engine/game/fx/particleEngine.cc new/engine/game/fx/particleEngine.cc
20,28d19
< //--------------------------------------------------------------------------
< //-------------------------------------- Internal global data
< //
< namespace {
<
< PEngine* sgParticleEngine = NULL;
< MRandomLCG sgRandom(0x1);
<
< } // namespace {}
54a46,55
> //--------------------------------------------------------------------------
> //-------------------------------------- Internal global data
> //
> namespace {
>
> PEngine* sgParticleEngine = NULL;
> MRandomLCG sgRandom(0x1);
>
> } // namespace {}
>
diff -r old/engine/platformX86UNIX/x86UNIXInputManager.cc new/engine/platformX86UNIX/x86UNIXInputManager.cc
63,64c63,65
< // lower case
< key = X11_KeyToUnicode( skey, mod );
---
> // lower case
> //key = X11_KeyToUnicode( skey, mod );
> key = skey;
68c69
< key = X11_KeyToUnicode( skey, mod );
---
> //key = X11_KeyToUnicode( skey, mod );
72c73
< key = X11_KeyToUnicode( skey, mod );
---
> //key = X11_KeyToUnicode( skey, mod );