Quake 3 on your Raspberry Pi
Quake3 is a first person multiplayer shooter. This game is today quite old, but it is already played (at LAN parties) and it is often used for benchmark tests for graphic cards as reference.
First, we need to install all programs that are needed for building quake 3:
sudo apt-get install git gcc build-essential libsdl1.2-dev
You can get the free available source code with the following commands. We also unzip the package and move into the directory:
wget http://github.com/raspberrypi/quake3/archive/master.zip unzip master.zip cd quake3-master
Now we need to change the build.sh file. so we open it with an editor:
There we need to change line 8, 16 and 19 with the following lines:
ARM_LIBS=/opt/vc/lib INCLUDES="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads" #CROSS_COMPILE=bcm2708-
Now its time to recompile Quake 3 for your Raspberry. This will lasts some minutes (it tool nearly an hour). You can start with:
The last thing is to install the game assets. You have to download and unpack them:
wget http://dl.dropbox.com/u/1816557/Q3%20Demo%20Paks.zip unzip Q3 Demo Paks.zip
All PAK files need to be copied into your /build/release-linux-arm/baseq3 directory. From this directory, you can then start Quake 3!
cd /home/pi/quake3-master/build/release-linux-arm sudo ./ioquake3.arm