Thursday, August 27, 2009
4:24 AM

Compile Zdoom and Gzdoom in Ubuntu GNU/Linux

Zdoom and Gzdoom are so called launchers for doom. Doom data files are in .wad format. They are 2 types. First type is licensed - made for money by companies producing computer games as the original doom was made and free type of wad files contributed by volunteers. Wad files are started by these launchers.
Zdoom was started before gzdoom and seems more oldschool. Gzdoom on the other hand is based on recent code of zdoom and provides opengl functionality for zdoom. Both projects are developed actively and in a synchronised manner. Starting with Zdoom, website: http://zdoom.org/News
1. get needed dependencies by typing this in terminal:

sudo apt-get install g++ zlib1g-dev libsdl1.2-dev libjpeg62-dev nasm tar bzip2 libgtk2.0-dev cmake
build-essential

2. Download the source code:
Source code is available by two means. Packaged archive for official version or svn repository for development and other versions.
offcial source archive is: http://zdoom.org/files/zdoom/2.3/zdoom-2.3.1-src.7z
svn repository is:
http://mancubus.net/svn/hosted/zdoom/zdoom/

Check out latest development code by executing this command in terminal:


svn checkout http://mancubus.net/svn/hosted/zdoom/zdoom/trunk zdoom


2. Install fmod library from http://www.fmod.org/ - zdoom requires it.

3. Compile sources:

cd to zdoom directory and type these in terminal to keep going:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make


- that was it. If zdoom builds - you've made it. execute the zdoom file and it will ask you
about wad files - remember that is not the game but the launcher. I would look for "doom wad files"
on google or my favourite torrent tracker - at least for educational purposes :)
Let's head over to Gzdoom - roughly said: zdoom + opengl :)
Gzdoom website: http://grafzahl.drdteam.org/
Instructions are similar to zdoom:
1. Install zdoom build dependencies ( see 1. of zdoom )
2. get the source:

http://grafzahl.drdteam.org/gzdoom/archive/src/GZDoom-Source-1-2-01.7z

or svn development source:

svn co http://mancubus.net/svn/hosted/gzdoom/trunk/ gzdoom


3. Follow zdoom building procedure.

Should you find problems compiling you can always check the gzdoom forum
http://forum.drdteam.org/viewforum.php?f=22
or zdoom forum:
http://forum.zdoom.org/
Get the wad files for testing your newly built working executables for doom :)

0 comments:

Post a Comment