Pages: [1]
|
|
|
Author
|
Topic: MinGW compile problem (Read 5662 times)
|
pepsei
Zebranky food
Offline
Posts: 5
|
see output below... am i missing something? i'm running windows xp
$ ./build.sh uqm config 'echo -n' capable echo found. Sed stream editor found. tr found. Make found. build/unix/build.sh: libmikmod-config: command not found build/unix/build.sh: libmikmod-config: command not found build/unix/build.sh: libmikmod-config: command not found GNU C compiler found. We have a C preprocessor. We have a C dependency generator. We have a C compiler. We have a linker. windres found. We have a Windows resource linker (windres). Little-endian machine detected. Simple DirectMedia Layer version 1.2.11 found. SDL_image found. Symbol 'readdir_r' not found. Symbol 'setenv' not found. Symbol 'strupr' found. Symbol 'stricmp' found. Symbol 'iswgraph' found. Type 'wchar_t' found. Type 'wint_t' found. Symbol 'getopt_long' found. Header 'regex.h' not found.
|
|
|
Logged
|
|
|
|
|
pepsei
Zebranky food
Offline
Posts: 5
|
thanks for quick response... i try to compile it now and got the following, which i truncated to just the abnormal output
CC obj/release/src/sc2code/sis.c.o src/sc2code/sis.c: In function `DrawStatusMessage': src/sc2code/sis.c:384: warning: pointer type mismatch in conditional expression CC obj/release/src/sc2code/libs/input/sdl/input.c.o src/sc2code/libs/input/sdl/input.c: In function `InterrogateInputState': src/sc2code/libs/input/sdl/input.c:393: warning: passing arg 1 of `VControl_StartIter' discards qualifiers from pointer target type src/sc2code/libs/input/sdl/input.c: In function `RemoveInputState': src/sc2code/libs/input/sdl/input.c:434: warning: passing arg 1 of `VControl_StartIter' discards qualifiers from pointer target type src/sc2code/libs/input/sdl/input.c:442: warning: passing arg 2 of `VControl_RemoveGestureBinding' discards qualifiers from pointer target type src/sc2code/libs/input/sdl/input.c: In function `RebindInputState': src/sc2code/libs/input/sdl/input.c:465: warning: passing arg 2 of `VControl_AddBinding' discards qualifiers from pointer target type CC obj/release/src/sc2code/libs/strings/unicode.c.o src/sc2code/libs/strings/unicode.c: In function `getCharFromString': src/sc2code/libs/strings/unicode.c:113: warning: comparison is always true due to limited range of data type src/sc2code/libs/strings/unicode.c: In function `getStringFromChar': src/sc2code/libs/strings/unicode.c:411: warning: large integer implicitly truncated to unsigned type src/sc2code/libs/strings/unicode.c:412: warning: large integer implicitly truncated to unsigned type src/sc2code/libs/strings/unicode.c:413: warning: large integer implicitly truncated to unsigned type CC obj/release/src/regex/regex.c.o src/regex/regex.c:32:1: warning: "alloca" redefined In file included from src/port.h:132, from src/regex/regex.c:25: c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/malloc.h:61:1: warning: this is the location of the previous definition LINK uqm obj/release/src/sc2code/melee.c.o:melee.c:(.text+0x310a): undefined reference to `DrawMeleeStatusMessage' collect2: ld returned 1 exit status make: *** [uqm] Error 1
|
|
|
Logged
|
|
|
|
Novus
Enlightened
Offline
Gender:
Posts: 1938
Fot or not?
|
Looking at src/sc2code/melee.c, there may be some mistake as to which parts are to be left out when compiling without netplay. Try compiling with netplay support, or put a #ifdef NETPLAY [...] #endif pair around confirmationCancelled and connectionFeedback. I'll try to reproduce this and file a bug report if necessary.
Edit: Well, it compiles OK on my Linux box. As far as I can tell, it shouldn't. Maybe the linker is leaving out unreferenced functions?
|
|
« Last Edit: March 13, 2007, 07:00:05 pm by Novus »
|
Logged
|
|
|
|
pepsei
Zebranky food
Offline
Posts: 5
|
ah ok, i ran clean, enabled netplay as follows
-= Main menu =- 1. Type of build Optimised release build 2. OpenGL graphics support Include OpenGL graphics support 3. Sound backend Use MixSDL for sound (internal) 4. Tracker music support Included libmikmod 5. Ogg Vorbis codec Xiph libogg + libvorbis 6. Network Supermelee support IPv4 and IPv6 7. Joystick support enabled 8. Supported file i/o methods Direct & .zip file i/o 9. Graphics/Sound optimizations Platform acceleration (asm, etc.)
and compile... ended with
CC obj/release/src/getopt/getopt1.c.o LINK uqm obj/release/src/sc2code/libs/uio/match.c.o:match.c:(.text+0x289): undefined reference to `regexec' obj/release/src/sc2code/libs/uio/match.c.o:match.c:(.text+0x313): undefined reference to `regexec' obj/release/src/sc2code/libs/uio/match.c.o:match.c:(.text+0x429): undefined reference to `regerror' obj/release/src/sc2code/libs/uio/match.c.o:match.c:(.text+0x44d): undefined reference to `regerror' obj/release/src/sc2code/libs/uio/match.c.o:match.c:(.text+0x4e4): undefined reference to `regerror' obj/release/src/sc2code/libs/uio/match.c.o:match.c:(.text+0x50b): undefined reference to `regerror' obj/release/src/sc2code/libs/uio/match.c.o:match.c:(.text+0x54e): undefined reference to `regfree' obj/release/src/sc2code/libs/uio/match.c.o:match.c:(.text+0x5cd): undefined reference to `regfree' obj/release/src/sc2code/libs/uio/match.c.o:match.c:(.text+0x644): undefined reference to `regcomp' obj/release/src/sc2code/libs/uio/match.c.o:match.c:(.text+0x70f): undefined reference to `regcomp' collect2: ld returned 1 exit status make: *** [uqm] Error 1
|
|
|
Logged
|
|
|
|
|
pepsei
Zebranky food
Offline
Posts: 5
|
ok, i did some minor changes.... so i undid the change.... i guess i should try to compile first without any changes first.
now, it got further.... with the same type of config.... (netplay enabled) i got the following
CC obj/release/src/regex/regex.c.o src/regex/regex.c:32:1: warning: "alloca" redefined In file included from src/port.h:132, from src/regex/regex.c:25: c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/malloc.h:61:1: warning: this is the location of the previous definition LINK uqm
|
|
|
Logged
|
|
|
|
|
pepsei
Zebranky food
Offline
Posts: 5
|
forgot to check for the .exe file.
now that i got everything in place and ran uqm, i'm getting a
Netplay protocol version 0.3 Requiring remote UQM version 0.5.4. Fatle error: Could not find content
silly me, forgot to copy content...
so after that... all is well....
it runs perfectly... thanks for the guidence.
|
|
|
Logged
|
|
|
|
Pages: [1]
|
|
|
|
|