2005/04/21 23:52:08.810 GMT+1000

Here's a script, kindly written by alar_k, to make Uplighter able to compile on linux. You'll need GLFW, GLFT, FMod & FreeType2.

sed -e 's/#include <FTGL/#include <FTGL\/FTGL/' src/main.cpp > src/main.cpp.new \
    && mv src/main.cpp.new src/main.cpp
sed -e 's/#include <FTGL/#include <FTGL\/FTGL/' src/main.hpp > src/main.hpp.new \
   && mv src/main.hpp.new src/main.hpp
sed -e 's/\\/\//' -e 's/run\.exe/uplighter/' -e 's/ -mwindows//' \
  -e 's/-lmingw32 //' -e 's/-luser32 -lgdi32 -lopengl32 -lglu32/-lGL -lGLU/' \
 -e 's/objflags = /objflags = -I\/usr\/include\/freetype2\/ /' makefile > makenew \
   && mv makenew makefile
mv gfx/ARIALBD.TTF gfx/Arialbd.ttf
dos2unix lvls/levels.txt
Then just run make. If it for some reason won't work (I can't see why it wouldn't), you'll have to improvise ;)

Also, I think I'll write a postmortem some day soon. Now I have some more voting to do :)

Add comment
Comment by Codexus on 2005/04/22 11:52:56.686 GMT+1000

Mmmm, I noticed the script is not displayed properly (less-than and greater-than characters). If anyone wants to use it just copy it from a display of the HTML source.

Comment by hitman200ca on 2005/04/22 16:46:42.415 GMT+1000

emerge is Gentoo specific as portage isn't really used by any other distro.

Comment by Jolle on 2005/04/23 00:34:34.279 GMT+1000

I've fixed the > and < signs. Stupid of me not noticing it.

About emerge and that, I don't actually know anything about it, so thanks for the info. I'll let the script be anyway though.

Comment by Jolle on 2005/04/24 02:45:14.732 GMT+1000

Removed the emerge line.