Title: Problems Compiling using MinGW Post by: Darknesscyshadow on January 26, 2007, 10:37:59 pm Hey all.
Compiling UQM using MinGW. Gone through all of the basic stuff, and got to compiling, but as it's going through I get: Quote MKDEP obj/release/src/sc2code/libs/network/socket/socket.c.d MKDEP obj/release/src/sc2code/libs/network/netmanager/netmanager_win.c.d MKDEP obj/release/src/sc2code/libs/network/netmanager/ndesc.c.d MKDEP obj/release/src/sc2code/libs/network/connect/resolve.c.d MKDEP obj/release/src/sc2code/libs/network/connect/listen.c.d MKDEP obj/release/src/sc2code/libs/network/connect/connect.c.d MKDEP obj/release/src/sc2code/libs/network/wspiapiwrap.c.d src/sc2code/libs/network/wspiapiwrap.c:32:22: wspiapi.h: No such file or directory make: *** [obj/release/src/sc2code/libs/network/wspiapiwrap.c.d] Error 1 make: *** Deleting file `obj/release/src/sc2code/libs/network/wspiapiwrap.c.d' And then the whole thing stops dead in the water. I'm sure there is an error on my part, but the rub is I have no idea what it is. Title: Re: Problems Compiling using MinGW Post by: meep-eep on January 26, 2007, 11:57:51 pm If you compile with netplay on Windows, you need the wspiapi.h file from the Windows Platform SDK (http://www.microsoft.com/downloads/details.aspx?familyid=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&displaylang=en).
Title: Re: Problems Compiling using MinGW Post by: Darknesscyshadow on January 27, 2007, 12:11:26 am Thanks.
Tried it out, but for some reason the pack refuses to install the package. Apparently it can't be opened... Two questions (well three actually): 1: Is there a way to compile without netplay? 2: Is there a way to get the file without the pack? And when I have the file can I just slap it into MinGW's include folder? Title: Re: Problems Compiling using MinGW Post by: meep-eep on January 27, 2007, 01:17:53 am 1. Yes. Just don't select netplay when running "./build.sh uqm config".
2. I don't know whether it can be legally redistributed, but see Google (http://www.google.com/search?q=inurl%3Awspiapi.h). And MinGW's include folder would be a good place for it. Title: Re: Problems Compiling using MinGW Post by: Darknesscyshadow on January 27, 2007, 01:36:04 am Hmmm... With network disabled it just seems to skip to the problem
Quote MKDEP obj/release/src/sc2code/libs/network/wspiapiwrap.c.d src/sc2code/libs/network/wspiapiwrap.c:32:22: wspiapi.h: No such file or directory make: *** [obj/release/src/sc2code/libs/network/wspiapiwrap.c.d] Error 1 make: *** Deleting file `obj/release/src/sc2code/libs/network/wspiapiwrap.c.d' And I can't find the file outside of the microsoft package... I've downloaded the ISO--I'm hoping it's in there. Title: Re: Problems Compiling using MinGW Post by: Darknesscyshadow on January 27, 2007, 01:45:29 am It worked, but now i get this:
Quote MKDEP obj/release/src/sc2code/libs/strings/sresins.c.d MKDEP obj/release/src/sc2code/libs/strings/sfileins.c.d MKDEP obj/release/src/sc2code/libs/strings/getstr.c.d MKDEP obj/release/src/sc2code/libs/sound/decoders/oggaud.c.d MKDEP obj/release/src/sc2code/libs/sound/decoders/modaud.c.d src/sc2code/libs/sound/decoders/modaud.c:36:21: mikmod.h: No such file or directory make: *** [obj/release/src/sc2code/libs/sound/decoders/modaud.c.d] Error 1 make: *** Deleting file `obj/release/src/sc2code/libs/sound/decoders/modaud.c.d' Title: Re: Problems Compiling using MinGW Post by: meep-eep on January 27, 2007, 01:56:15 am You need libmikmod. You can just use the version included with UQM. This can again be chosen in the config menu).
Title: Re: Problems Compiling using MinGW Post by: Darknesscyshadow on January 27, 2007, 01:12:26 pm Thanks for that- but now I get this instead...
Quote CC obj/release/src/sc2code/ships/zoqfot/zoqfot.c.o CC obj/release/src/sc2code/netplay/checkbuf.c.o In file included from src/sc2code/netplay/checkbuf.h:27, from src/sc2code/netplay/checkbuf.c:23: src/sc2code/netplay/checksum.h:87: error: syntax error before "frameNr" src/sc2code/netplay/checksum.h:88: error: syntax error before "BattleFrameCounte r" src/sc2code/netplay/checksum.h:90: error: syntax error before "frameNr" In file included from src/sc2code/netplay/checkbuf.c:23: src/sc2code/netplay/checkbuf.h:57: error: syntax error before "BattleFrameCounte r" src/sc2code/netplay/checkbuf.h:59: error: syntax error before "BattleFrameCounte r" src/sc2code/netplay/checkbuf.c:37: error: syntax error before "ChecksumBuffer_ge tCurrentFrameNr" src/sc2code/netplay/checkbuf.c: In function `ChecksumBuffer_getCurrentFrameNr': src/sc2code/netplay/checkbuf.c:38: error: `battleFrameCount' undeclared (first u se in this function) src/sc2code/netplay/checkbuf.c:38: error: (Each undeclared identifier is reporte d only once src/sc2code/netplay/checkbuf.c:38: error: for each function it appears in.) src/sc2code/netplay/checkbuf.c: At top level: src/sc2code/netplay/checkbuf.c:97: error: syntax error before "BattleFrameCounte r" src/sc2code/netplay/checkbuf.c: In function `ChecksumBuffer_getChecksumEntry': src/sc2code/netplay/checkbuf.c:101: error: `frameNr' undeclared (first use in th is function) src/sc2code/netplay/checkbuf.c:101: error: `cb' undeclared (first use in this fu nction) src/sc2code/netplay/checkbuf.c: At top level: src/sc2code/netplay/checkbuf.c:111: error: syntax error before "BattleFrameCount er" src/sc2code/netplay/checkbuf.c: In function `ChecksumBuffer_addChecksum': src/sc2code/netplay/checkbuf.c:115: error: `frameNr' undeclared (first use in th is function) src/sc2code/netplay/checkbuf.c:115: error: `cb' undeclared (first use in this fu nction) src/sc2code/netplay/checkbuf.c:122: error: `checksum' undeclared (first use in t his function) src/sc2code/netplay/checkbuf.c: At top level: src/sc2code/netplay/checkbuf.c:128: error: syntax error before "BattleFrameCount er" src/sc2code/netplay/checkbuf.c: In function `ChecksumBuffer_getChecksum': src/sc2code/netplay/checkbuf.c:132: error: `cb' undeclared (first use in this fu nction) src/sc2code/netplay/checkbuf.c:132: error: `frameNr' undeclared (first use in th is function) src/sc2code/netplay/checkbuf.c:143: error: `result' undeclared (first use in thi s function) make: *** [obj/release/src/sc2code/netplay/checkbuf.c.o] Error 1 Title: Re: Problems Compiling using MinGW Post by: meep-eep on January 27, 2007, 01:47:03 pm It sounds like you changed from with-netplay to without-netplay during your build.
Do "./build.sh uqm clean" and start over. Title: Re: Problems Compiling using MinGW Post by: Darknesscyshadow on January 28, 2007, 06:25:25 pm Thanks for that- definately got further now, except now there is this:
Quote CC obj/release/src/getopt/getopt1.c.o 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 c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lzdll collect2: ld returned 1 exit status make: *** [uqm] Error 1 This bit kind of threw mw off a little more than the others. Title: Re: Problems Compiling using MinGW Post by: meep-eep on January 28, 2007, 08:30:41 pm It looks like you're missing zlib.
Title: Re: Problems Compiling using MinGW Post by: Darknesscyshadow on January 28, 2007, 09:11:55 pm Okay. Got Zlib...now I hit this:
Quote src/regex/regexec.ci:3421: warning: comparison between signed and unsigned src/regex/regexec.ci:3452: warning: comparison between signed and unsigned In file included from src/regex/regex.c:90: src/regex/regexec.ci: In function `group_nodes_into_DFAstates': src/regex/regexec.ci:3594: warning: comparison between signed and unsigned src/regex/regexec.ci:3613: warning: comparison between signed and unsigned src/regex/regexec.ci:3635: warning: comparison between signed and unsigned src/regex/regexec.ci:3643: warning: comparison between signed and unsigned LINK uqm-debug c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lzdll collect2: ld returned 1 exit status The signed and unsigned things go up and up and up... Does this mean I installed Zlib wrong? Title: Re: Problems Compiling using MinGW Post by: meep-eep on January 28, 2007, 09:56:20 pm Ignore the warnings; they are harmless.
The "cannot find -lzdll" indicates it still can't find zlib. There should be a "libzdll.a" there somewhere. Title: Re: Problems Compiling using MinGW Post by: Darknesscyshadow on January 28, 2007, 11:03:07 pm I can't find that anywhere- I've definatly got the latest version of Zlib...
I do however have libz.dll.a in the appropriate lib folder... Title: Re: Problems Compiling using MinGW Post by: Darknesscyshadow on January 28, 2007, 11:59:28 pm Nevermind- Renamed the file to the one you specified. It worked. Thanks alot!
Compile successful. (cackles) Now I can start messing about... |