Pages: [1]
|
 |
|
Author
|
Topic: Some issues compiling with MINGW/MSYS (Read 4317 times)
|
Juffo
Zebranky food

Offline
Posts: 17
|
1- I get the following error:
./config_win.h:45: error: stray '@' in program c:/programmi/mingw/bin/../lib/gcc/mingw32/3.4.2/include/stddef.h:151: error: syntax error before "typedef"
the guilty line is simply @HAVE_GETOPT_H@ I changed it to #define HAVE_GETOPT_H and it works. However:
2 - after running build.sh uqm config and setting to optimized release version the file size is 1.81 MB, almost the double than the release. Is the normal behavior of using MinGW?
3 - running "build.sh uqm config" I set to include OpenAL support (experimental) but then I get the following error:
LINK uqm obj/release/src/sc2code/libs/sound/audiocore.c.o(.text+0x3c):audiocore.c: undefined reference to `openAL_Init' collect2: ld returned 1 exit status make: *** [uqm] Error 1
|
|
|
Logged
|
|
|
|
|
Juffo
Zebranky food

Offline
Posts: 17
|
2. What do you mean by "double than the release"? The original uqm.exe is 987 kb, the one built with minGW is 1.81 mb and when running doesn't output to console.
3. If you first compiled without OpenAL support, and later with, you should do a "./build.sh uqm clean" in between. Though just "./build.sh uqm depend" will probably work too, and will be faster. Ok, but now there's another problem:
In file included from src/sc2code/libs/sound/openal/audiodrv_openal.c:23: src/sc2code/libs/sound/openal/audiodrv_openal.h:31:20: AL/al.h: No such file or directory src/sc2code/libs/sound/openal/audiodrv_openal.h:32:21: AL/alc.h: No such file or directory I can see those files are in the OpenAL library folder (.....\OpenAL\Include) In the source tree, the file libs\sound\openal\audiodrv_openal.h says:
#if defined (__APPLE__) # include <OpenAL/al.h> # include <OpenAL/alc.h> #else # include <AL/al.h> # include <AL/alc.h> # ifdef _MSC_VER # pragma comment (lib, "OpenAL32.lib") # endif #endif
EDIT: solved by copying the needed files in the same folder of build.sh
|
|
« Last Edit: April 10, 2006, 07:03:15 am by Juffo »
|
Logged
|
|
|
|
|
|
|
|
Juffo
Zebranky food

Offline
Posts: 17
|
OK, thanks for the answers
|
|
|
Logged
|
|
|
|
|
Pages: [1]
|
|
|
|
|