MinGW issues
by Jonathan Rose · in Torque Game Engine · 03/13/2004 (10:07 am) · 7 replies
I downloaded the latest head release today... and noticed that when I tried to compile it, I got an annoying error--> Compiling ljpeg/jutils.c
--> Compiling ljpeg/jmemmgr.c
--> Compiling ljpeg/jmemnobs.c
Creating library out.GCC2.DEBUG/ljpeg_DEBUG.a
--> Compiling lungif/dgif_lib.c
--> Compiling lungif/egif_lib.c
--> Compiling lungif/gif_err.c
--> Compiling lungif/gifalloc.c
Creating library out.GCC2.DEBUG/lungif_DEBUG.a
--> Compiling audio/audio.cc
cc1plus.exe: warning: -fvtable-thunks is no longer supported
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:21,
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]: *** [out.GCC2.DEBUG/audio/audio.obj] Error 1
make: *** [default] Error 2
so uh... anyone who can help me out...
A. Is this problem happening to everyone who tries to use it with MinGW?
B. If so, is there any fix?
C. If so, is it my MinGW version?
D. If not to the above two, what is the most recent version of Torque that still compiles with MinGW
E. Also, if the more recent versions dont work with MinGW, will support for MinGW be back in future versions.
--> Compiling ljpeg/jmemmgr.c
--> Compiling ljpeg/jmemnobs.c
Creating library out.GCC2.DEBUG/ljpeg_DEBUG.a
--> Compiling lungif/dgif_lib.c
--> Compiling lungif/egif_lib.c
--> Compiling lungif/gif_err.c
--> Compiling lungif/gifalloc.c
Creating library out.GCC2.DEBUG/lungif_DEBUG.a
--> Compiling audio/audio.cc
cc1plus.exe: warning: -fvtable-thunks is no longer supported
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:21,
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]: *** [out.GCC2.DEBUG/audio/audio.obj] Error 1
make: *** [default] Error 2
so uh... anyone who can help me out...
A. Is this problem happening to everyone who tries to use it with MinGW?
B. If so, is there any fix?
C. If so, is it my MinGW version?
D. If not to the above two, what is the most recent version of Torque that still compiles with MinGW
E. Also, if the more recent versions dont work with MinGW, will support for MinGW be back in future versions.
#2
03/13/2004 (10:12 am)
Could you tell me how to change said configurations?
#4
03/13/2004 (10:23 am)
Same error resulted. Maybe Ill just use an older version of MinGW
#5
03/13/2004 (11:18 am)
Ah, good news. Its fixed. Problem is that it was too old and too new... bad version which wouldnt compile with either anyway. Updated to latest, so GCC3 worked.
#6
# else
# ifdef __MINGW32__
# include
typedef __int64 ogg_int64_t;
typedef __int32 ogg_int32_t;
typedef unsigned __int32 ogg_uint32_t;
typedef __int16 ogg_int16_t;
# else
to this:
# else
# ifdef __MINGW32__
# include
typedef long long ogg_int64_t;
typedef int ogg_int32_t;
typedef unsigned int ogg_uint32_t;
typedef short ogg_int16_t;
# else
03/20/2004 (6:47 pm)
Your error is solved, but I will post this in the event that someone else may benefit. If you do not wish to change your version of GCC, go into your "torque/lib/vorbis/include/ogg/os_types.h" file and change this:# else
# ifdef __MINGW32__
# include
typedef __int64 ogg_int64_t;
typedef __int32 ogg_int32_t;
typedef unsigned __int32 ogg_uint32_t;
typedef __int16 ogg_int16_t;
# else
to this:
# else
# ifdef __MINGW32__
# include
typedef long long ogg_int64_t;
typedef int ogg_int32_t;
typedef unsigned int ogg_uint32_t;
typedef short ogg_int16_t;
# else
#7
make -f mk/configure.mk OS=WIN32 BUILD=RELEASE COMPILER=GCC3
03/20/2004 (8:18 pm)
Use this command:make -f mk/configure.mk OS=WIN32 BUILD=RELEASE COMPILER=GCC3
Torque Owner Nicolas Quijano