1 Install instructions for SuperTux - <http://supertux.lethargik.org/>
2 ====================================================================
3 Last update: December 20, 2007 by Christoph Sommer
8 We try to provide precompiled binaries of SuperTux for a number of
9 platforms. You should check <http://supertux.lethargik.org/wiki/Download>
10 for the packages and instructions on how to install them. If there are
11 no prebuilt binaries for your platform, then you might still be able
12 to compile the source code yourself. In this case read the next
19 To build SuperTux from source, you need to have a number of tools and
20 libraries installed. Note that most of these things should already be
21 available prepackaged and optimized for your distribution, it is
22 recommended that you check your distribution first before downloading
23 from the websites. You can also check
24 <http://supertux.lethargik.org/wiki/Building_SuperTux> for up-to-date
25 build instructions for a variety of different platforms and
28 * Linux development tools (your distribution should come with these):
29 - gcc compiler suite version 3.2 or newer (you need the c++ compiler
30 g++) <http://gcc.gnu.org>
31 - gnu binutils <http://www.gnu.org/software/binutils>
32 - a shell and POSIX commandline tools
34 [Download](http://www.cmake.org/HTML/Download.html);
35 [Homepage](http://www.cmake.org/)
36 * OpenGL headers and libraries: OpenGL libraries and headers are
37 specific to your graphics card. Make sure that you have hardware
38 accelerated OpenGL drivers installed. Software renderers like Mesa
39 will make SuperTux unplayable slow.
40 * SDL2 2.0.0 or later <http://www.libsdl.org>
41 * SDL2_image (2.0.0 or later)
42 <http://www.libsdl.org/projects/SDL_image>
43 * PhysicsFS (1.0.x or 2.0.x) <http://www.icculus.org/physfs>
44 * OpenAL: There are no official Linux releases of OpenAL yet, you
45 should grab the latest CVS snapshot (any snapshot from 2005 should
46 work, earlier snapshots tend to have bugs). OpenAL 1.0 or later
47 implementations on other systems like Mac OS X or windows should
48 work. <http://www.openal.org>
49 * GLEW <http://glew.sourceforge.net/>
51 * glbinding <https://github.com/hpicgs/glbinding>
52 * Boost's smart_ptr and format headers <http://www.boost.org/>
53 * cURL <http://curl.haxx.se/libcurl/>
55 Note: We tried to write our code clean, portable and platform neutral,
56 so it should be possible to compile it on a wide range of platforms
57 and also with other compilers than gcc. However we have no resources
58 to test other setups and it is likely that you hit small problems.
59 Reports and binary compiled packages are of course always welcome.
60 Send them to supertux-devel@lists.lethargik.org
62 Note about glbinding: To use glbinding instead of GLEW, open
63 CMakeLists.txt and change this line from
64 OPTION(GLBINDING_ENABLED "Use glbinding instead of GLEW" OFF)
66 OPTION(GLBINDING_ENABLED "Use glbinding instead of GLEW" ON)
69 Installing under Linux/UNIX using CMake
70 ---------------------------------------
72 SuperTux uses CMake to generate a set of Makefiles for the build
73 process. To generate these Makefiles and build SuperTux, perform the
76 1. `cd' to the directory where you unpacked the SuperTux source
77 archive, i.e. to the directory containing `src' and `data'.
79 2. Create and change to a new, empty build directory by running `mkdir
82 3. Run `cmake ..' to create the Makefiles needed to build SuperTux
83 with standard options. If you are missing any libraries needed to
84 build SuperTux, install those first, then try running CMake again.
85 See below for instructions on how to change to standard options.
87 4. Type `make' to start the build process.
89 5. Type `make install' to install the programs and any data files and
90 documentation. (You should be a root user on Linux systems. You can
91 become a root user with the `su' command or by using `sudo make
92 install') Note that there is no uninstall target, so you might wish
93 to create a package or other system-specific installation instead.
95 6. The game should work now and you can remove the source directory.
97 You can customize the build process by setting additional options for
98 CMake. The easiest way to do this is to use run `ccmake ..` instead of
99 `cmake ..` to bring up the curses-based user interface of CMake.
100 Select an option using the arrow keys, change the selected option by
101 pressing the Enter key, then hit the `c` (repeatedly, if necessary) to
102 apply your changes and bring up new options resulting from your newly
103 set ones. When you are done, press the `g` key to generate a new set
104 of Makefiles and exit.
106 Alternatively, you can pass options to `cmake ..' via the command
107 line. Some common command line switches are:
109 `-DCMAKE_VERBOSE_MAKEFILE=ON`
110 : Generates Makefiles that print all commands prior to executing them.
112 `-Dxxx_LIBRARY=/path/to/library.so -Dxxx_INCLUDE_DIR=/path/to/headerfiles`
113 : Manually specify the installation directory of a library.
115 `-DCMAKE_BUILD_TYPE=DEBUG`
116 : Enables debug mode and compiles extra debug symbols into the SuperTux
117 executable. This is useful when sending in bug reports to the
120 `-DCMAKE_BUILD_TYPE=RELEASE`
121 : Enables release mode and compiles some sanity checks out of the build.
123 Note for GIT users: SuperTux does not need to be installed on the
124 system, you can run it from its own directory.
130 You can contact us at [supertux-devel@lists.lethargik.org](mailto:supertux-devel@lists.lethargik.org)
131 and in the [#supertux](irc://chat.freenode.net/supertux) channel on
132 the chat.freenode.net IRC server.