Friday

How-to compile DDRace on Linux

Install development-environment as root (or via sudo on Ubuntu):

Debian, Ubuntu, (and Debian based distros): 

Code:
apt-get update && apt-get install build-essential libsdl1.2-dev libfreetype6-dev
RH based distros (just guessed) like Fedora: 

Code:
yum install SDL-devel python gcc alsa-lib-devel freetype-devel
Something similar on Gentoo using portage to get sdl (and python)- gcc should be already installed on Gentoo because normally everything would be compiled fresh before it would be installed on Gentoo. I'm not sure if that alsa, gl and glu stuff is really needed (for example if you just would compile the server) - however I learned that from TW howto: http://www.teeworlds.com/?page=docs&...lingEverything

GreYFox told me on Ubuntu it was ok with just:
Code:
apt-get update && apt-get install build-essential libsdl1.2-dev
. But not every distro cames with same packages out of the box. So you can try with that one (to avoid useless stuff on your HD) and if something is missing at compilation came back an install even other stuff.

Use urpmi on Mandriva. Most time the names should sound similar (even on SuSE, Slackware, ...) so it should be not so difficult if your really like to compile it. Development-packets are sometimes called *-devel on CentOS or RHEL and *-dev on Debian. These are the packages which should contain even headers. 

If you have all you think you would need follow with that steps (which should work in same way on nearly every distro):


Do as some user (no need for root):

Code:
mkdir ddrace-compilation
cd ddrace-compilation
wget http://github.com/matricks/bam/tarball/master
mv master bam-source.tar.gz && tar xvfz bam-source.gz 
cd matricks-bam*       # if you have already downloaded some matricks stuff in the past for sure cd into that instead of wildcard
./make_unix.sh   # if everything is ok you should have some file called 'bam' now in your directory
cd ..
wget http://github.com/GreYFoXGTi/DDRace/tarball/master
mv master GreYFoXGTi_source.tar.gz && tar xvfz GreYFoXGTi_source.tar.gz
cd GreYFoX*    # if you have already downloaded source from GreYFoX cd into right version instead of wildcard
../matricks*/bam release        # now it should compile - if you don't need all but just server change release to server_release
Note: I've used a lot of wildcards (*) above. If you do with different versions please avoid that and use full filenames instead. If something goes wrong at the "bam release" step then look what it's telling you. Look if you get all stuff you might need and download. If he miss some file you should get a clue at the error lines (warning lines are not beatifull but ok). Look even at "dev" or "devel" packets (maybe not python but other stuff like SDL). Most time you need that "devel" or "dev" packets if you like to compile and not just the binaries or libs (which came without headers so it can't be included). Take a look here to get an idea what you might need: http://www.teeworlds.com/?page=docs&...lingEverything

There are lot of different distros out there and even if most feel similar if you get deeper into Linux-World they might have some differences. In that case please ask in the forum.

No comments:

Post a Comment