Please help! I can not compile warzone!

Discuss the future of Warzone 2100 with us.
skynet
New user
Posts: 4
Joined: 21 Apr 2009, 19:08

Please help! I can not compile warzone!

Post by skynet »

Please help! I can not compile warzone! Here's the log of compilation!
.JPG
Help me please! In ubuntu it works! A windows error.
You do not have the required permissions to view the files attached to this post.
User avatar
Mysteryem
Global Moderator
Global Moderator
Posts: 728
Joined: 22 Sep 2008, 19:44
Location: UK

Re: Please help! I can not compile warzone!

Post by Mysteryem »

skynet wrote:Please help! I can not compile warzone! Here's the log of compilation!
.JPG
Help me please! In ubuntu it works! A windows error.
I had the same error. But I'm not sure how I fixed it :gonk: . Have you searched for libSDLmain and found anything? I would also get filemon so you can see where it is looking for the file. http://technet.microsoft.com/en-us/sysi ... 96642.aspx
"...If pure awesomeness were bricks, this would be the Great Wall of China...
The glory of this has collapsed on its self so far, that even the neutrons have collapsed."
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Please help! I can not compile warzone!

Post by Buginator »

Get libsdl-dev.

in short, it can't find that lib to link to.
and it ends here.
Delux
New user
Posts: 3
Joined: 16 May 2009, 18:29

Re: Please help! I can not compile warzone!

Post by Delux »

I've done everything the way it was written in the guide, but I don't seem to be able to compile the data files. After compiling the exe mingw32-make exits with the following error:

Code: Select all

mingw32-make[1]: Leaving directory `D:/wz2100/src'
mingw32-make[1]: Entering directory `D:/wz2100/data'
mingw32-make[2]: Entering directory `D:/wz2100/data/mods'
mingw32-make[3]: Entering directory `D:/wz2100/data/mods/global'
(cd aivolution && zip -ru0 aivolution.wz commands.txt multiplay -x '*svn*' || [$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
# was unexpected at this time.
mingw32-make[3]: *** [aivolution.wz] Error 255
mingw32-make[3]: Leaving directory `D:/wz2100/data/mods/global'
mingw32-make[2]: *** [global] Error 2
mingw32-make[2]: Leaving directory `D:/wz2100/data/mods'
mingw32-make[1]: *** [mods] Error 2
mingw32-make[1]: Leaving directory `D:/wz2100/data'
mingw32-make: *** [data] Error 2
D:\wz2100>
I have experience compiling with mingw (but not that much); I tried to keep everything simple, short path, no funky characters, proper CRLF, everything is in place. Do you have any suggestions?

By the way, is there a way to compile only the data, not the executable? The long compile time interrupts my thought process trying to figure it out :)
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Please help! I can not compile warzone!

Post by cybersphinx »

Delux wrote:

Code: Select all

(cd aivolution && zip -ru0 aivolution.wz commands.txt multiplay -x '*svn*' || [$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
# was unexpected at this time.
mingw32-make[3]: *** [aivolution.wz] Error 255
mingw32-make[3]: Leaving directory `D:/wz2100/data/mods/global'
Do you have any suggestions?
Your make might not like a "#" after a command. Edit data/mods/global/Makefile.win32 and remove everything after the ")" in the first quoted line.
By the way, is there a way to compile only the data, not the executable? The long compile time interrupts my thought process trying to figure it out :)
The second make run should only compile files that changed since the last compile (or those it didn't reach yet because it aborted with an error).
Delux
New user
Posts: 3
Joined: 16 May 2009, 18:29

Re: Please help! I can not compile warzone!

Post by Delux »

cybersphinx wrote: Your make might not like a "#" after a command. Edit data/mods/global/Makefile.win32 and remove everything after the ")" in the first quoted line.
It worked, thanks! I just realized that would've been a comment on some other shell... After removing that, I was still missing zip (not mentioned in the guide, but mingw doesn't come with it). After getting it, I found that the script can't handle that zip returns with error 12:

Code: Select all

mingw32-make[3]: Entering directory `D:/wz2100/data/mods/global'
(cd aivolution && zip -ru0 aivolution.wz commands.txt multiplay -x '*svn*' || [$? -eq 12 ] && true)
'[' is not recognized as an internal or external command, operable program or batch file.
mingw32-make[3]: *** [aivolution.wz] Error 1
mingw32-make[3]: Leaving directory `D:/wz2100/data/mods/global'
Tried removing that, but then the compiler halts with error 12... How is it possible to ignore that error?
The second make run should only compile files that changed since the last compile (or those it didn't reach yet because it aborted with an error).
D'oh. :rolleyes:
I cleaned the working copy after each attempt... Thanks for the tip.
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Please help! I can not compile warzone!

Post by cybersphinx »

Delux wrote:Tried removing that, but then the compiler halts with error 12... How is it possible to ignore that error?
Try adding -i to the make command (ignores all errors). Though at that point it should have compiled the exe in src, and if you just run that I think it finds the data even unzipped.
Delux
New user
Posts: 3
Joined: 16 May 2009, 18:29

Re: Please help! I can not compile warzone!

Post by Delux »

cybersphinx wrote: Try adding -i to the make command (ignores all errors).
I was finally able to compile it; thank you for the help.