How to get Torus Trooper running under Ubuntu

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).

  1. 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.
  2. Grab the libsdl-mixer1.2 and libsdl-mixer1.2-dev packages from apt. Get the libgl-dev package corresponding you your graphics setup too.
  3. Go grab the gcc-core tarball from one of these ftp servers. You'll find it under 'gnu' then 'gcc'.
  4. Grab the gdc tarball from their Sourceforge site.
  5. Finally, grab Evil Mr Henry's Linux port from his site.
  6. 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.
  7. From gcc's source directory, run ./gcc/d/ (Yes, you have to do it from there)
  8. Change to another directory (otherwise gcc bitches) and run <gcc's source directory>/configure --enable-languages=c,d
  9. Contrary to what the gdc install instructions say, don't enable C++. gdc seems to cope without it and won't configure with it!
  10. Now make from the directory where you were when you configured. Then make install. gdc will be installed in /usr/local/... Yay!
  11. Now for ttrooper itself. Change to the lib/bulletml subdirectory of the ttrooper folder. Make.
  12. Now back to the main ttrooper folder. Edit build.xml. Change the ${dmd} variable to point to 'gdmd' - gdc's answer to dmd.
  13. Now 'ant'.
  14. The build will probably fail, but try to run ./ttrooper now - it works!

See: easy!



Well, almost. Started from scratch today and the compiler build went a lot better. (took a lot longer too: go figure, a good couple of hours on this beast) So now it works! and my computer hasn't a chance in running it! Ah well. Consider it tested under xubuntu. Oh, ant doesn't package with xubuntu and isn't in the dpendencies for build-essential, so needed to apt-get install that as well. Also, I could run ttrooper as soon as I'd maked bulletml, so maybe no need to ant at all? After all, it does fail...

It's a shame I'm the only one who actually cares about this and yet my computer is so impotent that it doesn't even matter. So much for "Speed! More speed!"

t r a v
Quite possibly, and unless bulletml magically uses the D compiler these instructions create (I don't know - maybe gcc in /usr/loca/binl is used in preference to /usr/bin/) the gdc build might not be needed at all (just a quick bulletml build).

Yeah, ant isn't in build-essential. For some reason I already had it installed though - weird.