Help compiling data package

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Post Reply
Tiberian
Trained
Trained
Posts: 128
Joined: 28 Mar 2008, 13:51
Location: Australia

Help compiling data package

Post by Tiberian »

Hello,

I have just downloaded everything needed for successfully compiling the code, and have managed to get an executable.
but when the compiler is trying to put together the data package (base.wz) i am met with:

Code: Select all

'zip' is not recognised as an internal or external command, operable program or batch file.
mingw32-make[1]: *** [base.wz] Error 1
mingw32-make[1]: Leaving directory 'C:/Warzone 2100/Source/data'
mingw32-make: *** [data] Error 2
am i missing something? (i know its going to be something simple that is wrong, but bear with me, i haven't done this before)
i am compiling with MinGW32

here is my config:

Code: Select all

# Version of Warzone you are compiling
VERSION=TRUNK
INSTALLER_VERSION=9.9.9.9
PACKAGE_BUGREPORT=http://wz2100.net/
PACKAGE_NAME=Warzone 2100
PACKAGE_VERSION=$(VERSION)

# Platform you are running
PLATFORM=windows
#PLATFORM=linux
#PLATFORM=mingw32

# Compilation mode
MODE=debug
#MODE=release

# Directory where you store your dev stuff (lib and include)
DEVDIR=C:/Warzone\ 2100/Prerequisites/devpkg-2.1

# Remind the user to install Flex and Bison
BISON=bison
FLEX=flex

## This is only needed for people planning to distribute this package and/or
## create installers from it.
# Path to makensis
#MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe"
#MAKENSIS=makensis

# Whether to build data package and installer
DATA=yes
#INSTALLER=yes
#USE_GETTEXT=yes

# Gettext stuff
#PACKAGE=warzone2100
#LOCALEDIR=""
#XGETTEXT= C:/Warzone\ 2100/Prerequisites/GetText/bin/xgettext.exe
#MSGMERGE= C:/Warzone\ 2100/Prerequisites/GetText/bin/msgmerge.exe
#MSGFMT= C:/Warzone\ 2100/Prerequisites/GetText/bin/msgfmt.exe
thanks in advance
Kamaze
Regular
Regular
Posts: 1017
Joined: 30 Jul 2006, 15:23

Re: Help compiling data package

Post by Kamaze »

You are missing the "zip.exe" console program to create the *.wz files.
Comment out the "DATA=yes" or change it to no.

And zip up the /data/mp and /data (without the "data" folder as root!) manually and rename them to mp.wz and warzone.wz.
We all have the same heaven, but not the same horizon.
User avatar
mcdebugger
Trained
Trained
Posts: 66
Joined: 02 Feb 2007, 20:54
Location: Russian Federation
Contact:

Re: Help compiling data package

Post by mcdebugger »

Or just add zip (and don't forget to install unzip - required until testing archive while make) which you can get from GnuWin32 page on Sf.net
http://sourceforge.net/projects/gnuwin32/
If you can clean out sources after it (cause it may fault again) and recompile
Tiberian
Trained
Trained
Posts: 128
Joined: 28 Mar 2008, 13:51
Location: Australia

Re: Help compiling data package

Post by Tiberian »

thanks again guys, it works now that i've downloaded and installed the zip program... (and unzip)

but now, i am getting error 2 with base.wz

Code: Select all

zip -T base.wz
process_begin: CreateProcess(NULL, zip -T, base.wz, ...) failed.
make (e=2): the system cannot find the file specified.
mingw32-make[1]: *** [base.wz] Error 2
mingw32-make[1]: Leaving directory 'C:\Warzone 2100\Source\data'
mingw32-make: [data] Error 2
even though it has zipped up the file, and left it in my data/base folder
(i should also mention that i am able to run the game to an extent, the campaign runs fine with base.wz)
Post Reply