Game Development Community

Linux] OpenAL errors when compiling TGE 1.5.0

by Ben Sawyer · in Technical Issues · 06/05/2008 (5:07 pm) · 2 replies

I'm trying to compile Torque Game Engine 1.5.0 in Ubuntu 8.04. Here's What I do:

make -f mk/configure.mk OS=LINUX COMPILER=GCC4 BUILD=DEBUG
make clean
make

It seems to successfully compile the /lpng, /zlib, and /ljpeg portions, but then I get this:

--> Compiling audio/audio.cc
In file included from ./game/gameBase.h:16,
from ./game/shapeBase.h:10,
from ./game/gameConnection.h:13,
from audio/audio.cc:11:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
In file included from ./platform/platformAL.h:25,
from ./platform/platformAudio.h:16,
from ./audio/audio.h:10,
from audio/audio.cc:6:
../lib/openal/LINUX/al/al_func.h:18: error: '' has incomplete type
../lib/openal/LINUX/al/al_func.h:18: error: invalid use of 'ALvoid'
In file included from ./platform/platformAL.h:26,
from ./platform/platformAudio.h:16,
from ./audio/audio.h:10,
from audio/audio.cc:6:
../lib/openal/LINUX/al/alc_func.h:11: error: '' has incomplete type
../lib/openal/LINUX/al/alc_func.h:11: error: invalid use of 'ALCvoid'
audio/audio.cc: In function 'bool cullSource(U32*, F32)':
audio/audio.cc:252: error: too few arguments to function
audio/audio.cc: In function 'AUDIOHANDLE alxCreateSource(const Audio::Description*, const char*, const MatrixF*, AudioSampleEnvironment*)':
audio/audio.cc:731: error: too few arguments to function
audio/audio.cc: In function 'void alxLoopingUpdate()':
audio/audio.cc:1732: error: too few arguments to function
audio/audio.cc: In function 'void alxStreamingUpdate()':
audio/audio.cc:1833: error: too few arguments to function
audio/audio.cc: In function 'bool Audio::OpenALInit()':
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.GCC4.DEBUG/audio/audio.obj] Error 1
make: *** [default] Error 2


I've checked and I have the latest versions of all of the dependencies, and I am totally stumped. Does anybody have any suggestions?

About the author

Recent Threads


#1
06/07/2008 (10:30 pm)
I encountered the same problem. I once saw a suggestion to replace ALCvoid and ALvoid with simple void. But in the same as i remember this issue should be fixed in the latest sources of TGE 1.5.2.

Above suggestion is based on the following fact :


ALvoid is defined in altypes.h like this

/** OpenAL void type (for params, not returns). */
#ifdef __GNUC__
typedef void ALvoid;
#else
#define ALvoid void
#endif /* __GNUC__ */

Anyway, i think we have to request Torque releasers to look at this problem and fix it.
#2
06/08/2008 (12:29 am)
Also, i've just found similar topic:
http://www.garagegames.com/mg/forums/result.thread.php?qt=68116

It seems there are some problems with GCC4 (4.x versions) compiler.

And also:
http://www.garagegames.com/mg/forums/result.thread.php?qt=74990