-
-
Notifications
You must be signed in to change notification settings - Fork 493
Building
This guide explains how to build recent versions of SuperTux from source. It is assumed that you will either use git to fetch the source code or that you will use an officially provided tarball (not those auto-generated by GitHub, as these are broken). It is also assumed that you already know some basics of the command line on UNIX-like systems.
To build on Windows, see the instructions here: https://github.com/SuperTux/supertux/blob/master/INSTALL.md#installing-under-windows-using-cmake-and-visual-studio
- General development tools
- C++ compiler (a recent version of GCC or Clang)
- A GNU Binutils equivalent
- A Shell
- Common POSIX command line tools
- CMake 2.6 or later
- OpenGL headers and libraries
- SDL2
- SDL2_image
- OpenAL
- C++ OpenGL Bindings
- GLEW
- glbinding
- Boost
- cURL
- libogg
- libvorbis
In addition to the libraries listed above, you will also need the respective development headers. Some distributions of Linux ship these as separate package.
You need to run this commands in a Terminal to get SuperTux built.
-
If you don't have the source code yet, download it via git (requires git to be installed)
git clone https://github.com/SuperTux/supertux.git
-
Enter the directory containing SuperTux's source code
cd supertux
-
Make sure all submodules are downloaded. This step is required for successful compilation!
git submodule update --init --recursive
-
Create a new directory for build files and change to it.
mkdir build cd build
-
Generate the Makefiles required for the build process using CMake
cmake ..
-
Start the build process
make
-
You should now be able to start your build of SuperTux
./supertux2
If you run into any issues while compiling, please contact us on IRC or the Forums.
Home
Guidelines
Game Mechanics
Tools
Engine
- Cameras in other games
- Collision
- Configuration File
- Console
- Cutscenes
- Game_Engine
- Lighting
- Map_transformer
- Portables
- SceneGraph
- Scripting
Specifications
Milestones
- Milestone 1 Analysis
- Milestone 2 Design Document
- Milestone 2 Design Document Old
- Milestone 3 Design Document
Building (mostly outdated)
- INSTALL.md
- Building
- Building on macOS
- Building SuperTux
- Building on Windows
- Building with MXE (cross-compile)
Meetings