Game Development Community

TORQUE 1.5 compilation OK on Ubuntu 6.10 and 7 after some fixes

by Philippe C · in Torque Game Engine · 10/28/2006 (3:44 pm) · 64 replies

Below the patch to apply in order to get running torque 1.5 on Ubuntu 6.10 - version Edgy Eft - October 2006.

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 fonction : workaround solution due to the new version of sdl for ubuntu ( only lower case available with this 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,56
> //--------------------------------------------------------------------------

> //-------------------------------------- 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 );
Page«First 1 2 3 4 Next»
#61
05/07/2007 (5:53 pm)
Trying to get it going on OpenSuse 10.2

Linking out.GCC4.DEBUG/torqueDemo_DEBUG.bin
out.GCC4.DEBUG/platformX86UNIX/x86UNIXFont.obj: In function 'loadFont(char const*, int, _XDisplay*)':
/home/richard/Projects/TorqueGameEngineSDK-Linux-1-5-0/engine/platformX86UNIX/x86UNIXFont.cc:59: undefined reference to 'XftNameUnparse'
out.GCC4.DEBUG/platformX86UNIX/x86UNIXFont.obj: In function 'x86UNIXFont::create(char const*, unsigned int, unsigned int)':
/home/richard/Projects/TorqueGameEngineSDK-Linux-1-5-0/engine/platformX86UNIX/x86UNIXFont.cc:204: undefined reference to 'XftNameUnparse'
collect2: ld returned 1 exit status
make[1]: *** [out.GCC4.DEBUG/torqueDemo_DEBUG.bin] Error 1
make: *** [default] Error 2

Anyone have a fix for this??
#62
05/07/2007 (7:04 pm)
Already answered in another thread. It is a bug in certain versions of libXft.

https://bugs.freedesktop.org/show_bug.cgi?id=8900

The solution is to wait for suse to update or compile the lib on your own.
#63
05/09/2007 (10:06 am)
Thanks I have TGE running in OpenSuse 10.2 after installing http://ftp.x.org/pub/X11R7.1/src/lib/libXft-X11R7.0-2.1.8.2.tar.bz2
and most the other fixes on this page
#64
05/25/2007 (7:31 am)
@Richard:
I got the sdk compiled OK for OpenSuse 10.2. But when run it, the following error message occur:

./torqueDemo_DEBUG.bin: symbol lookup error: ./torqueDemo_DEBUG.bin: undefined symbol: XftNameUnparse

Any clue for this?
Page«First 1 2 3 4 Next»