Building.rest 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. This guide explains how to build recent versions of SuperTux from source. It is
  2. assumed that you will either use git to fetch the source code or that you will
  3. use an officially provided tarball (**not** those auto-generated by GitHub, as
  4. these are broken). It is also assumed that you already know some basics of the
  5. command line on UNIX-like systems.
  6. Notes for Windows Users
  7. -----------------------
  8. 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
  9. Dependencies
  10. ------------
  11. - General development tools
  12. - C++ compiler (a recent version of GCC or Clang)
  13. - A GNU Binutils equivalent
  14. - A Shell
  15. - Common POSIX command line tools
  16. - CMake 2.6 or later
  17. - OpenGL headers and libraries
  18. - SDL2
  19. - SDL2_image
  20. - OpenAL
  21. - C++ OpenGL Bindings
  22. - GLEW
  23. - glbinding
  24. - Boost
  25. - cURL
  26. - libogg
  27. - libvorbis
  28. In addition to the libraries listed above, you will also need the respective
  29. development headers. Some distributions of Linux ship these as separate package.
  30. Instructions
  31. ------------
  32. You need to run this commands in a Terminal to get SuperTux built.
  33. 1. If you don't have the source code yet, download it via git (requires
  34. git to be installed)
  35. ::
  36. git clone https://github.com/SuperTux/supertux.git
  37. 2. Enter the directory containing SuperTux's source code
  38. ::
  39. cd supertux
  40. 3. Make sure all submodules are downloaded. This step is required for
  41. successful compilation!
  42. ::
  43. git submodule update --init --recursive
  44. 4. Create a new directory for build files and change to it.
  45. ::
  46. mkdir build
  47. cd build
  48. 5. Generate the Makefiles required for the build process using CMake
  49. ::
  50. cmake ..
  51. 6. Start the build process
  52. ::
  53. make
  54. 7. You should now be able to start your build of SuperTux
  55. ::
  56. ./supertux2
  57. If you run into any issues while compiling, please contact us on IRC or the Forums.