Installing Supertux

From source

Dependencies:

For a detailed description see the original Install.md. All sound dependencies have been disabled.

Download and build

Fetch the code and data from here. Next compile supertux.

cd supertux/
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j9
cd ..

Trouble shooting

Missing packages

Always try to use your local package manager first apt on Ubuntu or macports or homebrew on a Mac. If that’s not an option be ready for some pain.

Create a directory called dependencies in the supertux directory.

Download any missing dependencies:

extract and build them using the instructions provided by the package maintainer. If there is a configure step, make sure to use

./configure --prefix=/absolute/path/to/supertux/dependencies
make && make install
cp *.pc /absolute/path/to/supertux/dependencies

Afterwards use the following scary cmake command:

PKG_CONFIG_PATH="$PWD/../dependencies/" cmake .. -DCMAKE_BUILD_TYPE=Release

Error: ld: cannot find -lSDL2_image

Use

LIBRARY_PATH=$PWD/../dependencies/lib/ make -j9

instead of make -j9 above.