Game Development Community

Mingw / Msys Errors

by Alexander Loren · in Torque Game Engine · 11/09/2003 (11:16 pm) · 4 replies

Well I've had the engine for about a month now and thought it time to stop messing with the pre-compiled stuff and compile it myself. Without changing anything on the 1.1.2 release I get these errors when compiling with MinGW and MSYS. If someone has the time to help that would be greatly appriciated.

Quote:
$ make -f mk/configure.mk OS=WIN32 COMPILER=GCC2 BUILD=DEBUG

Current Configuration: this config is VALID
OS: WIN32
COMPILER: GCC2
BUILD: DEBUG
DIR.OBJ: out

To change the current configuration type:

make -f mk/configure.mk {arguments, ...}

required arguments:
OS={WIN32 BEOS LINUX OpenBSD FreeBSD Solaris}
COMPILER={CW6 VC6 GCC2 GCC3}
BUILD={DEBUG RELEASE}

optional arguments:
DIR.OBJ={path to store intermediate obj files}

Note: all arguments are case sensitive.


Alex Loren@BLACKFLAME /c/torque/torque
$ make



Creating library out.GCC2.DEBUG/lungif_DEBUG.a
--> 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 ';'
../lib/vorbis/include/ogg/os_types.h:40: syntax error before ';'
../lib/vorbis/include/ogg/os_types.h:41: syntax error before ';'
audio/audio.cc: In function 'int loopingImageSort(const void *, const void *)':
audio/audio.cc:161: warning: return to 'int' from 'const F32'
audio/audio.cc: In function 'int streamingSourceSort(const void *, const void *)':
audio/audio.cc:193: warning: return to 'int' from 'const F32'
audio/audio.cc: In function 'AUDIOHANDLE alxCreateSource(const Audio::Description *, const char *, const MatrixF * = 0, AudioSampleEnvironment * = 0)':
audio/audio.cc:706: warning: converting NULL to non-pointer type
audio/audio.cc: In function 'ALuint alxGetWaveLen(unsigned int)':
audio/audio.cc:2090: warning: return to 'ALuint' from 'F64'
make[1]: *** [out.GCC2.DEBUG/audio/audio.obj] Error 1
make: *** [default] Error 2

#1
11/10/2003 (10:02 pm)
Could someone please help with this, My project is on hold untill I can get the compiling figured out...
#2
03/20/2004 (6:45 pm)
Hopefully your error is solved by now, but I will post this in the event that someone else may benefit. 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
#3
03/24/2004 (7:28 am)
Thanks for posting this Matt, I haven't been able to get this fixed untill now. I've been working with the Irrlicht engine up untill this point, but now back to Torque thanks to you =D
#4
04/23/2004 (8:49 pm)
...