This page describes how to build maxr under Linux using GCC or Clang. For other platforms/compilers or general information see How to build.
You need the following tools installed on you system
gcc 5.4.0 (or newer) or clang 3.1 (or newer)
For Ubuntu you can use the following command to install them: sudo apt-get install gcc cmake
For Fedora you can use the following command to install them: sudo dnf install gcc cmake
You need the following libraries (and their development versions):
SDL 2.0.4 (or newer)
For Ubuntu you can use the following command to install them: sudo apt-get install libsdl2-dev libsdl2-mixer-dev libsdl2-net-dev
For Fedora you can use the following command to install them: sudo dnf install SDL2-devel SDL2_mixer-devel SDL2_net-devel
Get the source code
Download the code from the website to get the latest release: https://www.maxr.org/docs.php?id=3
or clone our git repository to get the latest development version: git clone http://git.maxr.org/maxr/maxr.git
Execute the following commands:
cd maxr (the directory containing the maxr sources)
Hint: To change between Debug and Release build, use the options -DCMAKE_BUILD_TYPE=Debug or -DCMAKE_BUILD_TYPE=Release when running cmake:
E. g. cmake -DCMAKE_BUILD_TYPE=Release ..
You can install maxr with the following command: make install
This installs the game to the default prefix which is probably /usr/local.
Use make DESTDIR=/foo/bar install to set your own installation directory.
After installing you can start maxr by executing maxr
Hint: If you just want to start maxr without installing, simply
override the data path MAXRDATA after running 'make' in your
build dir: MAXRDATA=../data/ ./maxr