Game Development Community

Need help compiling HEAD with Mingw

by mm · in Technical Issues · 10/15/2003 (5:25 am) · 4 replies

Hello,

I have searched through the forums and have not found somebody with the same problem I am having. I have just recently updated to the HEAD version of the TGE and am having trouble compiling it. I compiled the previous HEAD releases with Msys using Mingw. This is how I did it:

make -f mk/configure.mk OS=WIN32 COMPILER=GCC3 BUILD=DEBUG
 
make clean

make

I have tried several different methods to get the HEAD compiled.
I have tried using both gcc version 2 and 3. I have ensured that I have the openAL driver installed and I always come back to this error:
--> Compiling audio/audio.cc
In file included from ../lib/vorbis/include/ogg/ogg.h:24,
                 from ../lib/vorbis/include/vorbis/codec.h:26,
                 from audio/vorbisStream.h:26,
                 from audio/audioBuffer.h:19,
                 from audio/audioDataBlock.h:13,
                 from audio/audio.h:13,
                 from audio/audio.cc:6:
../lib/vorbis/include/ogg/os_types.h:39: syntax error before ';' token
../lib/vorbis/include/ogg/os_types.h:40: syntax error before ';' token
../lib/vorbis/include/ogg/os_types.h:41: syntax error before ';' token
audio/audio.cc: In function 'int loopingImageSort(const void*, const void*)':
audio/audio.cc:161: warning: return to 'int' from 'float'
audio/audio.cc:161: warning: argument to 'int' from 'float'
audio/audio.cc: In function 'int streamingSourceSort(const void*, const 
   void*)':
audio/audio.cc:193: warning: return to 'int' from 'float'
audio/audio.cc:193: warning: argument to 'int' from 'float'
audio/audio.cc: In function 'AUDIOHANDLE alxCreateSource(const 
   Audio::Description*, const char*, const MatrixF*, AudioSampleEnvironment*)':
audio/audio.cc:706: warning: assignment to non-pointer type 'ALuint' from NULL
audio/audio.cc:706: warning: argument to non-pointer type 'unsigned int' from 
   NULL
audio/audio.cc: In function 'ALuint alxGetWaveLen(unsigned int)':
audio/audio.cc:2090: warning: return to 'ALuint' from 'F64'
audio/audio.cc:2090: warning: argument to 'unsigned int' from 'F64'
make[1]: *** [none.GCC3.DEBUG/audio/audio.obj] Error 1
make: *** [default] Error 2
Thanks in advance!

Matt

#1
10/15/2003 (11:17 am)
These are not openal issues but vorbis header errors. what version of mingw/gcc do you have? last time i tried it using mingw 3.1 runtime with gcc3.3.1 (cross-compiling) and it worked fine, will try it again later tonight.
#2
10/15/2003 (11:59 am)
Hi Benoit,

I tried compiling it with both version 2.95.3-6 and version 3.2 but with both I came up with the same error message. I haven't tried it with version 3.3.1. I will dl it and give it a shot. I'll let you know how it goes with that version.

Thanks for your help :)

Matt
#3
10/15/2003 (12:58 pm)
Hey Benoit, I just got it compiled about five minutes ago using version 3.2.3, that is what came in my 3.1 download. It compiled fine, there were a few warning messages. It loaded up fine but now all of the DTS models appear completely black, I am going to look into this since one of the terrain textures is missing as well. :)
#4
10/15/2003 (1:28 pm)
Glad to hear it worked out :)