AssaultCube Server on Raspberry Pi

I don’t know how many threads I’ve read where people hit a brick wall with this, or how many pre-compiled binaries I’ve tried that gave segmentation faults, so I’m detailing here how I got it working myself, in case anyone wants to build their own for the experience of it.

First, you need the source code AND the game installed on your RPi. The source is on GitHub these days, but I’m a big fan of SourceForge, so I pulled it from there.

From here, you are pretty much following these instructions, apart from 3 major changes to actually get this working.

The game version we are using is 1.2.0.2 – change all download links appropriately. That’s Step 1.

When you’re done, compiling (see below) create the library link like this

sudo ln -s /usr/local/lib/libenet.so.2.1.0 /usr/lib/libenet.so.2

rather than how it’s done in the tutorial. Again, versions have change. That’s Step 2, but don’t do it just yet.

Okay, what the actual f*ck? This was getting me nowhere fast. This is the same issue all those poor bastards on the forums ran into! Then it occurred to me, WHY use clang++ at all, when g++, the C++ compiler for the GNU compiler collection, is already present in Raspbian? Okay, so now swap out all instances of “clang++” from the Makefile:

Much success! The warnings seem to be just that, warnings, and the binary has still compiled for us. Navigating up to the bin_unix directory, copy the native_server file to /usr/local/games/cube/bin_unix/ (or wherever you put the game directory) and make sure it is executable. Don’t forget to link your libraries like in Step 2 above.

AssaultCube server will now run on your Raspberry Pi. Happy happy, joy, joy! If you’re too lazy to carry out the above, you can download our build below.You will need an SD Card of at least 2GB capacity.

RawShark has been dabbling in all things Quake since day one. He has reviewed maps, written mods, hosted servers, hacked code and even played a few games. These days he comes up with solutions for people sitting at home yearning for a blast from the past…