problem compiling

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
robby_kane
Greenhorn
Posts: 12
Joined: 22 Apr 2009, 12:17

problem compiling

Post by robby_kane »

this is my first time and i was using the guide
i got to the part where i told it to compile finally and

Code: Select all

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Valued Customer>cd /d "C:\Documents and Settings\Value
d Customer\Desktop\wz2100s"

C:\Documents and Settings\Valued Customer\Desktop\wz2100s>mingw32-make -f makefi
le.win32
makerules/configure.mk:1: makerules/config.mk: No such file or directory
Checking config...
makerules/configure.mk:9: *** You must set PACKAGE_VERSION in ./makerules/config
.mk.  Stop.
so what do i edit lol... iv never done this but i do know how to use a pc fairly well but what do i put in for the ver. info?
User avatar
Mysteryem
Global Moderator
Global Moderator
Posts: 728
Joined: 22 Sep 2008, 19:44
Location: UK

Re: problem compiling

Post by Mysteryem »

You've missed a part in "Setting things up to get ready for compiling" in http://developer.wz2100.net/wiki/Window ... de_(MinGW) about copying makerules\config.mk.tmpl and editing it.
"...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."
robby_kane
Greenhorn
Posts: 12
Joined: 22 Apr 2009, 12:17

Re: problem compiling

Post by robby_kane »

ok so i went back to the folder and its not there? is there a way to get another without starting from re-downloading the package?

Code: Select all

copy makerules\config.mk.tmpl to makerules\config.mk and open
i only se a .tmpl and if u neab make a .mk i dont know how to convert a text file over to .mk cose when i put it in the file name it dosent change it... is there something im missing?

EDIT: nvm i found out how

u might want to add to the guide that u have to make a new text file and then when u go to save as click all file types and then add the .mk in the file name
Last edited by robby_kane on 23 Apr 2009, 10:26, edited 1 time in total.
robby_kane
Greenhorn
Posts: 12
Joined: 22 Apr 2009, 12:17

Re: problem compiling

Post by robby_kane »

im having a new problem after setting the directory in the make file its telling me that i havent set it

Code: Select all

# Metadata of the version of Warzone 2100 you are compiling
PACKAGE_VERSION:=TRUNK
INSTALLER_VERSION:=9.9.9.9

# Compilation mode
MODE:=debug
#MODE:=release

# Directory where you store your dev stuff (lib and include)
#DEVDIR=C:/Documents\ and\ Settings/Valued\ Customer/Desktop/devpkg-2.1
# Whether to build data package and installer
#INSTALLER:=yes
#TRANSLATION:=yes

# Make config known throughout the whole buildsystem
export PACKAGE_VERSION INSTALLER_VERSION
export MODE DEVDIR
export INSTALLER TRANSLATION
you must set DEVDIR in ./makerules/config.mk
i know i still have to add a area for it to end up at but im trying to get past this first lol
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: problem compiling

Post by stiv »

#DEVDIR=C:/Documents\ and\ Settings/Valued\ Customer/Desktop/devpkg-2.1
The '#' sign is a comment marker. You need to remove it for that line to take effect. Ohterwise, it is invisible.
u might want to add to the guide that u have to make a new text file and then when u go to save as click all file types and then add the .mk in the file name
Being able to create and edit files is a basic skill. You need it for tasks like compiling software.
robby_kane
Greenhorn
Posts: 12
Joined: 22 Apr 2009, 12:17

Re: problem compiling

Post by robby_kane »

stiv wrote:
Being able to create and edit files is a basic skill. You need it for tasks like compiling software.
ty for ur help.... but what i was trying to say is that it says "coppy to this file" it didnt say make a mk file non-tmpl and coppy the templet to it

ps: i know i feel a moron lol, never done any kind of coding but i have repaired computers lol
robby_kane
Greenhorn
Posts: 12
Joined: 22 Apr 2009, 12:17

Re: problem compiling

Post by robby_kane »

ty Mysteryem and stiv, it started compliling just fine lol

this is one of the best forums iv been on, you guys helped so much :D
robby_kane
Greenhorn
Posts: 12
Joined: 22 Apr 2009, 12:17

Re: problem compiling

Post by robby_kane »

Code: Select all

C:\devpkg\wz2100> mingw32-make -f makefile.win32 clean
Checking config...
PACKAGE_VERSION := TRUNK
MODE := debug
DEVDIR := C:/devpkg/devpkg-2.1
Config seems valid.
mingw32-make[1]: Entering directory `C:/devpkg/wz2100/build_tools'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/build_tools/autorevision'
makefile.win32:25: warning: overriding commands for target `clean'
../../makerules/exe.mk:13: warning: ignoring old commands for target `clean'
del /F ..\\..\\src\\autorevision.h
del /F autorevision.o  autorevision.exe
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/build_tools/autorevision'
mingw32-make[1]: Leaving directory `C:/devpkg/wz2100/build_tools'
mingw32-make[1]: Entering directory `C:/devpkg/wz2100/po'
del /F warzone2100.pot
Could Not Find C:\devpkg\wz2100\po\warzone2100.pot
del /F da.gmo de.gmo la.gmo nb.gmo nl.gmo
Could Not Find C:\devpkg\wz2100\po\da.gmo
mingw32-make[1]: Leaving directory `C:/devpkg/wz2100/po'
mingw32-make[1]: Entering directory `C:/devpkg/wz2100/win32'
del /F warzone2100.o
Could Not Find C:\devpkg\wz2100\win32\warzone2100.o
mingw32-make[1]: Leaving directory `C:/devpkg/wz2100/win32'
mingw32-make[1]: Entering directory `C:/devpkg/wz2100/lib'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/lib/framework'
del /F ..\\..\\lib\\libframework.a *.o strres_parser.tab.h resource_parser.tab.h

mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/lib/framework'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/lib/exceptionhandler'
del /F ..\\..\\lib\\libexceptionhandler.a *.o
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/lib/exceptionhandler'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/lib/gamelib'
del /F ..\\..\\lib\\libgamelib.a *.o audp_parser.tab.h
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/lib/gamelib'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/lib/ivis_common'
del /F ..\\..\\lib\\libivis_common.a *.o
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/lib/ivis_common'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/lib/ivis_opengl'
del /F ..\\..\\lib\\libivis_opengl.a *.o
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/lib/ivis_opengl'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/lib/netplay'
del /F ..\\..\\lib\\libnetplay.a *.o
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/lib/netplay'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/lib/script'
del /F ..\\..\\lib\\libscript.a *.o chat_parser.tab.h script_parser.tab.h
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/lib/script'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/lib/sequence'
del /F ..\\..\\lib\\libsequence.a *.o
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/lib/sequence'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/lib/sound'
del /F ..\\..\\lib\\libsound.a *.o
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/lib/sound'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/lib/sqlite3'
del /F ..\\..\\lib\\libsqlite3.a *.o
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/lib/sqlite3'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/lib/widget'
del /F ..\\..\\lib\\libwidget.a *.o
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/lib/widget'
mingw32-make[1]: Leaving directory `C:/devpkg/wz2100/lib'
mingw32-make[1]: Entering directory `C:/devpkg/wz2100/src'
del /F warzone2100.exe *.o message_parser.tab.h scriptvals_parser.tab.h
mingw32-make[1]: Leaving directory `C:/devpkg/wz2100/src'
mingw32-make[1]: Entering directory `C:/devpkg/wz2100/data'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/data/mods'
mingw32-make[3]: Entering directory `C:/devpkg/wz2100/data/mods/global'
del /F grim.wz
Could Not Find C:\devpkg\wz2100\data\mods\global\grim.wz
del /F aivolution.wz
Could Not Find C:\devpkg\wz2100\data\mods\global\aivolution.wz
del /F newst_tiles.wz
Could Not Find C:\devpkg\wz2100\data\mods\global\newst_tiles.wz
mingw32-make[3]: Leaving directory `C:/devpkg/wz2100/data/mods/global'
mingw32-make[3]: Entering directory `C:/devpkg/wz2100/data/mods/multiplay'
del /F ntw.wz
Could Not Find C:\devpkg\wz2100\data\mods\multiplay\ntw.wz
mingw32-make[3]: Leaving directory `C:/devpkg/wz2100/data/mods/multiplay'
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/data/mods'
del /F base.wz
Could Not Find C:\devpkg\wz2100\data\base.wz
del /F mp.wz
Could Not Find C:\devpkg\wz2100\data\mp.wz
mingw32-make[1]: Leaving directory `C:/devpkg/wz2100/data'
mingw32-make[1]: Entering directory `C:/devpkg/wz2100/pkg'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/pkg/nsis'
del /F warzone2100-TRUNK.exe
Could Not Find C:\devpkg\wz2100\pkg\nsis\warzone2100-TRUNK.exe
mingw32-make[2]: Leaving directory `C:/devpkg/wz2100/pkg/nsis'
mingw32-make[1]: Leaving directory `C:/devpkg/wz2100/pkg'

C:\devpkg\wz2100> mingw32-make -f makefile.win32
Checking config...
PACKAGE_VERSION := TRUNK
MODE := debug
DEVDIR := C:/devpkg/devpkg-2.1
Config seems valid.
mingw32-make[1]: Entering directory `C:/devpkg/wz2100/build_tools'
mingw32-make[2]: Entering directory `C:/devpkg/wz2100/build_tools/autorevision'
makefile.win32:25: warning: overriding commands for target `clean'
../../makerules/exe.mk:13: warning: ignoring old commands for target `clean'
g++ -I../.. -DPACKAGE=\"warzone2100\" -DPACKAGE_VERSION=\"TRUNK\" -DYY_STATIC -I
C:/devpkg/devpkg-2.1/include/SDL -IC:/devpkg/devpkg-2.1/include/libpng12 -IC:/de
vpkg/devpkg-2.1/include/bfd -IC:/devpkg/devpkg-2.1/include -DDEBUG -DWIN32   -g
-Wall -O0  -c -o autorevision.o autorevision.cpp
g++ -std=gnu99 -g -Wall -Werror-implicit-function-declaration -O0  -o autorevisi
on.exe autorevision.o -LC:/devpkg/devpkg-2.1/lib  -lmingw32 -lSDLmain -lSDL -lSD
L_net -lpng12 -lphysfs -lz -lvorbisfile -lvorbis -logg -lpopt -lintl -lGLC -lglu
32 -lopengl32 -lopenal32 -ldbghelp -lshfolder -lwinmm -lwsock32 -lbfd -liberty -
liconv -lz -lfreetype -lfontconfig -lexpat -ltheora
autorevision.exe +cstr -v ..\\.. ..\\..\\src\\autorevision.h
'svnversion' is not recognized as an internal or external command,
operable program or batch file.
'svn' is not recognized as an internal or external command,
operable program or batch file.
'git' is not recognized as an internal or external command,
operable program or batch file.
'git' is not recognized as an internal or external command,
operable program or batch file.
ok what did i do wrong this time?