Please help! I can not compile warzone!
-
skynet
- New user
- Posts: 4
- Joined: 21 Apr 2009, 19:08
Please help! I can not compile warzone!
Please help! I can not compile warzone! Here's the log of compilation!
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.
-
Mysteryem
- Global Moderator

- Posts: 728
- Joined: 22 Sep 2008, 19:44
- Location: UK
Re: Please help! I can not compile warzone!
I had the same error. But I'm not sure how I fixed itskynet wrote:Please help! I can not compile warzone! Here's the log of compilation! Help me please! In ubuntu it works! A windows error.
"...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."
The glory of this has collapsed on its self so far, that even the neutrons have collapsed."
-
Buginator
- Professional

- Posts: 3285
- Joined: 04 Nov 2007, 02:20
Re: Please help! I can not compile warzone!
Get libsdl-dev.
in short, it can't find that lib to link to.
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!
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:
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
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>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

- Posts: 1695
- Joined: 01 Sep 2006, 19:17
Re: Please help! I can not compile warzone!
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.Delux wrote:Do you have any suggestions?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'
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).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
-
Delux
- New user
- Posts: 3
- Joined: 16 May 2009, 18:29
Re: Please help! I can not compile warzone!
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: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.
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'D'oh. :rolleyes: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).
I cleaned the working copy after each attempt... Thanks for the tip.
-
cybersphinx
- Inactive

- Posts: 1695
- Joined: 01 Sep 2006, 19:17
Re: Please help! I can not compile warzone!
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 wrote:Tried removing that, but then the compiler halts with error 12... How is it possible to ignore that error?
-
Delux
- New user
- Posts: 3
- Joined: 16 May 2009, 18:29
Re: Please help! I can not compile warzone!
I was finally able to compile it; thank you for the help.cybersphinx wrote: Try adding -i to the make command (ignores all errors).