![]() : Manually specify the installation directory of a library. Dxxx_LIBRARY=/path/to/library.so -Dxxx_INCLUDE_DIR=/path/to/headerfiles : Generates Makefiles that print all commands prior to executing them. When you are done, press the g key to generate a new setĪlternatively, you can pass options to cmake. ![]() Pressing the Enter key, then hit the c (repeatedly, if necessary) toĪpply your changes and bring up new options resulting from your newly Select an option using the arrow keys, change the selected option by to bring up the curses-based user interface of CMake. The easiest way to do this is to use run ccmake. ![]() You can customize the build process by setting additional options forĬMake. The game should work now and you can remove the source directory. To create a package or other system-specific installation instead. You canīecome a root user with the su command or by using sudo make install) Note that there is no uninstall target, so you might wish (You should be a root user on Linux systems. Type make install to install the programs and any data files andĭocumentation. See below for instructions on how to change to standard options. If you are missing any libraries needed toīuild SuperTux, install those first, then try running CMake again. to create the Makefiles needed to build SuperTux (If you got this version of Supertux from a tarball (.tar), squirrelĪnd tinygettext are already in the tarball.)Ĭreate and change to a new, empty build directory by running mkdir build, cd build. If you cloned this Supertux repo using git run git submodule update -init -recursive to fetch/update squirrel, tinygettext, to the directory containing src and data. To generate these Makefiles and build SuperTux, perform theĬd to the directory where you unpacked the SuperTux sourceĪrchive, i.e. SuperTux uses CMake to generate a set of Makefiles for the build Sudo apt-get update & sudo apt-get install -y cmake build-essential libogg-dev libvorbis-dev libopenal-dev libboost-all-dev libsdl2-dev libsdl2-image-dev libfreetype6-dev libraqm-dev libcurl4-openssl-dev libglew-dev libharfbuzz-dev libfribidi-dev libglm-dev zlib1g-dev Note III (regarding glbinding): To use glbinding instead of GLEW, call cmakeįor ease of use, here are some installation lines for some Linux distributions: Report issues to our bug tracker on GitHub. To test commits and pull requests in our repository, but unfortunately it's notĪlways possible to test the code in very exotic setups. So it should be possible to compile it on a wide range of platforms and also Note II: We tried to write our code clean, portable and platform neutral, Packages containing the mentioned headers, on Arch Linux these should be included OpenAL, GLEW/glbinding, Boost, cURL, libogg and libvorbis), you shouldĪlso have development headers installed. Note I: for any of the above listed libraries (OpenGL, SDL2, SDL2_image, Boost smart_ptr and format headers, along with date_time and filesystem libraries.C++ OpenGL library (choose one of the two options below):.Make sure that you have hardwareĪccelerated OpenGL drivers installed. OpenGL headers and libraries: OpenGL libraries and headers are.CMake 3.1 or later: most package managers ship this as cmake. ![]() Note: To get these tools, you can install build-essential on Debian-based distros,īase-devel on Arch-based distros and the Xcode Command Line tools on OS X.a shell and common POSIX command line tools.GNU Binutils (or the BSD/OS X equivalent).LLVM compiler (you probably want the clang frontend too).gcc compiler suite version 3.2 or newer (including g++).C++ compiler (choose one of the two options below):.Recommended that you check your distribution first before downloadingīuild instructions for a variety of different platforms and Note that most of these things should already beĪvailable prepackaged and optimized for your distribution, it is To build SuperTux from source, you need to have a number of tools and Tip: You may take inspiration from the workflow files. Note that this only works if you are logged in to GitHub. The right (topmost = most recent), then scroll down to the Artifacts section. You may find the nightlies atĪlternatively, if you have a GitHub account, you may find nightlies directly onįor common platforms (Windows, Mac, Linux) orįor the rest (FreeBSD, WASM, Ubuntu Touch) click on any entry in the list on Validate code quality, but as they produce binaries, those can be downloadedĪnd installed like any release. These are built using GitHub Actions and are generally used to We also provide binaries automatically generated as code is added to the No prebuilt binaries for your platform, then you might still be able We try to provide precompiled binaries of SuperTux for a number ofįor the packages and instructions on how to install them.
0 Comments
Leave a Reply. |