Introduction
This page describes how to compile the different sensobots binaries. If you don't want to compile the game by yourself, you should
downoad the binary distribution which contains precompiled linux binaries.
Preparations
Sensobots needs three additional libraries to compile on your system: Irrlicht, IrrKlang and sbnet.
These can be downloaded using the links from the
Downloads section
or the respective web sites.
The sensobots makefile expects those libraries to be in the same directory as the sensobots directory
named "irrlicht", "irrklang" and "sbnet". This is an example how to prepare for compilation:
| 1. Create a new directory, e.g.: | > mkdir $HOME/Games && cd $HOME/Games |
| 2. Download the needed libraries | > wget http://prdownloads.sourceforge.net/irrlicht/irrlicht-1.3.1.zip?download
> wget http://irrlicht.piskernig.at/irrKlang-0.9.1.zip
> wget http://www.sensobots.de/Downloads/sbnet-0.2.tar.gz |
| 3. Unzip the downloaded files: |
> unzip irrlicht-1.3.1.zip > unzip irrKlang-0.9.1.zip > tar xvfz sbnet-0.2.tar.gz |
| 4. Create symlinks: |
> ln -s irrlicht-1.3.1 irrlicht > ln -s irrKlang-0.9.1 irrklang > ln -s sbnet-0.2 sbnet |
| 5. Compile the irrlicht and sbnet libraries: |
> cd $HOME/Games/irrlicht/source/Irrlicht && make > cd $HOME/Games/sbnet/src && make
|
Compilation
If the libraries are in place (or alternatively you modified the sensobots makefile) and ready to be used,
sensobots can be compiled. This is an example of the compilation process:
| 1. Download the sensobots sources: | > cd $HOME/Games && wget http://www.sensobots.de/Downloads/sensobots-1.0-src.tar.gz |
| 2. Untar the sources: | > tar xvfz sensobots-1.0-src.tar.gz |
| 3. Compile the game: | > cd sensobots-1.0/src && make |
There are currently four different make targets that can be used:
sblistserver will build the listserver.
sbserver will build the game server.
sbbot will build the sensobots default bot and
sensobots
will finally build the client. If you only want to build the sblistserver or sbserver you actually don't need
the irrlicht and irrklang libraries. The compiled binaries are copied to the sensobots/bin directory.