How to get Torus Trooper running under Ubuntu
Torus Trooper is a great game. There's a request to add it upstream to Debian, but most of the instructions I've seen seem to require compilation with the non-free dmd compiler. Here's how to get ttrooper going with the lovely (and completely free) gdc front-end to gcc. Tested under Ubuntu 6.06 (Dapper Drake).
- apt-get the build-essential package - make sure you've got a working copy of gcc that compiles C++, and check you've got your kernel headers.
- Grab the libsdl-mixer1.2 and libsdl-mixer1.2-dev packages from apt. Get the libgl-dev package corresponding you your graphics setup too.
- Go grab the gcc-core tarball from one of these ftp servers. You'll find it under 'gnu' then 'gcc'.
- Grab the gdc tarball from their Sourceforge site.
- Finally, grab Evil Mr Henry's Linux port from his site.
- That's the easy bit done! Now unpack all the tarballs. Move the directory 'd' that gdc creates into the 'gcc' subfolder in gcc's source directory.
- From gcc's source directory, run ./gcc/d/setup-gcc.sh. (Yes, you have to do it from there)
- Change to another directory (otherwise gcc bitches) and run <gcc's source directory>/configure --enable-languages=c,d
- Contrary to what the gdc install instructions say, don't enable C++. gdc seems to cope without it and won't configure with it!
- Now make from the directory where you were when you configured. Then make install. gdc will be installed in /usr/local/... Yay!
- Now for ttrooper itself. Change to the lib/bulletml subdirectory of the ttrooper folder. Make.
- Now back to the main ttrooper folder. Edit build.xml. Change the ${dmd} variable to point to 'gdmd' - gdc's answer to dmd.
- Now 'ant'.
- The build will probably fail, but try to run ./ttrooper now - it works!
See: easy!