The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 07, 2024, 03:51:10 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Problems Compiling using MinGW
« previous next »
Pages: [1] Print
Author Topic: Problems Compiling using MinGW  (Read 5067 times)
Darknesscyshadow
Guest


Email
Problems Compiling using MinGW
« 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.
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Problems Compiling using MinGW
« Reply #1 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.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Darknesscyshadow
Guest


Email
Re: Problems Compiling using MinGW
« Reply #2 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?
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Problems Compiling using MinGW
« Reply #3 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. And MinGW's include folder would be a good place for it.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Darknesscyshadow
Guest


Email
Re: Problems Compiling using MinGW
« Reply #4 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.
Logged
Darknesscyshadow
Guest


Email
Re: Problems Compiling using MinGW
« Reply #5 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'

Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Problems Compiling using MinGW
« Reply #6 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).
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Darknesscyshadow
Guest


Email
Re: Problems Compiling using MinGW
« Reply #7 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
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Problems Compiling using MinGW
« Reply #8 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.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Darknesscyshadow
Guest


Email
Re: Problems Compiling using MinGW
« Reply #9 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.
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Problems Compiling using MinGW
« Reply #10 on: January 28, 2007, 08:30:41 pm »

It looks like you're missing zlib.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Darknesscyshadow
Guest


Email
Re: Problems Compiling using MinGW
« Reply #11 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?
« Last Edit: January 28, 2007, 09:17:43 pm by Darknesscyshadow » Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Problems Compiling using MinGW
« Reply #12 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.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Darknesscyshadow
Guest


Email
Re: Problems Compiling using MinGW
« Reply #13 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...
« Last Edit: January 28, 2007, 11:19:43 pm by Darknesscyshadow » Logged
Darknesscyshadow
Guest


Email
Re: Problems Compiling using MinGW
« Reply #14 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...
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!