Linux Compile Guide
From WarzoneWiki
Contents |
Instructions
The source code can be built in two ways:
- The first is using the standard GNU toolchain with “./autogen.sh && ./configure && make” (you can skip the ./autogen.sh part if you download a snapshot or release tarball).
- The second is using static makefiles with “make -f Makefile.raw”
- You need edit makerules/confik.mk(.tmpl) for this to work!
Ubuntu 7.10
Installation of necessary packages
apt-get install subversion
apt-get install build-essential apt-get install automake apt-get install flex bison
apt-get install libsdl1.2-dev apt-get install libopenal-dev apt-get install libpng12-dev apt-get install libvorbis-dev apt-get install libpopt-dev apt-get install libphysfs-dev apt-get install libsdl-net1.2-dev apt-get install libwxgtk2.8-dev
Building of QuesoGLC
Instructions for installing QuesoGLC can be found on a dedicated page.
Building of Warzone 2100
cd ~ mkdir warzone cd warzone
svn co svn://svn.gna.org/svn/warzone/trunk/ .
./autogen.sh ./configure make sudo make install
Problems and Solutions
OpenGL libraries not found
If your build fails with the message:
ld: cannot find -lGL collect2: ld returned 1 exit status make[2]: *** [warzone2100] Error 1
Or it says the same but for -lGLU, this will work around the problem:
LDFLAGS=-L/usr/X11R6/lib ./configure && make


