Game Development Community

Installing/Compiling TGE 1.5.2 on Fedora 10. GCC3 Errors

by Marcus Fernstrom · in Technical Issues · 04/28/2009 (1:18 am) · 1 replies

Anyone up to helping out with a linux problem?

I'm trying to compile TGE 1.5.2 on Fedora 10 and I'm running into problems I can't figure out.

I'm at the step make clean, make dedicated (This box is going to be an internal beta test server) and I don't need sound or graphics or anything fancy, just a dedicated build that runs the server.

Ok, here's the errors I'm getting:

In file included from ./platform/platformAL.h:26,
                 from ./platform/platformAudio.h:17,
                 from ./audio/audio.h:11,
                 from audio/audio.cc:7:
../lib/openal/LINUX/al/al_func.h:18: error: &lsquo;<anonymous>&rsquo; has incomplete type
../lib/openal/LINUX/al/al_func.h:18: error: invalid use of &lsquo;ALvoid&rsquo;
In file included from ./platform/platformAL.h:27,
                 from ./platform/platformAudio.h:17,
                 from ./audio/audio.h:11,
                 from audio/audio.cc:7:
../lib/openal/LINUX/al/alc_func.h:11: error: &lsquo;<anonymous>&rsquo; has incomplete type
../lib/openal/LINUX/al/alc_func.h:11: error: invalid use of &lsquo;ALCvoid&rsquo;
In file included from ./sim/netConnection.h:20,
                 from ./game/gameConnection.h:17,
                 from audio/audio.cc:12:
./platform/event.h:128: warning: invalid access to non-static data member &lsquo;PacketReceiveEvent::data&rsquo; of NULL object
./platform/event.h:128: warning: (perhaps the &lsquo;offsetof&rsquo; macro was used incorrectly)
./platform/event.h:130: warning: invalid access to non-static data member &lsquo;ConnectedReceiveEvent::data&rsquo; of NULL object
./platform/event.h:130: warning: (perhaps the &lsquo;offsetof&rsquo; macro was used incorrectly)
./platform/event.h:132: warning: invalid access to non-static data member &lsquo;ConsoleEvent::data&rsquo; of NULL object
./platform/event.h:132: warning: (perhaps the &lsquo;offsetof&rsquo; macro was used incorrectly)
audio/audio.cc: In function &lsquo;bool cullSource(U32*, F32)&rsquo;:
audio/audio.cc:252: error: too few arguments to function
audio/audio.cc: In function &lsquo;AUDIOHANDLE alxCreateSource(const Audio::Description*, const char*, const MatrixF*, AudioSampleEnvironment*)&rsquo;:
audio/audio.cc:731: error: too few arguments to function
audio/audio.cc: In function &lsquo;void alxLoopingUpdate()&rsquo;:
audio/audio.cc:1732: error: too few arguments to function
audio/audio.cc: In function &lsquo;void alxStreamingUpdate()&rsquo;:
audio/audio.cc:1833: error: too few arguments to function
audio/audio.cc: In function &lsquo;bool Audio::OpenALInit()&rsquo;:
audio/audio.cc:2414: error: too few arguments to function
audio/audio.cc:2419: error: too few arguments to function
audio/audio.cc:2441: error: too few arguments to function
make[1]: *** [out.GCC3.DEBUG/audio/audio.obj] Error 1
make: *** [dedicated] Error 2

Any ideas?

I'm new to compiling, done it a few times on Windows (This is a fresh install from a vanilla TGE download btw.) but yeah.. can't seem to figure this one out, or how to fix it..

#1
05/06/2009 (9:02 am)
Configure for GCC4 not GCC3.

Edit:
Now that I have looked closer that's not your issue. Take a look at this post. You need to install an older version of the gcc compiler. Torque will not build with the new one.