Extreme TuxRacer is written in C++, attempting to follow the latest standard, C++11, while being compatible to those compilers which currently only provide partial support for it. Thus, you a modern C++ Compiler like GCC, Clang or MSVC is required to compile Extreme TuxRacer.
The code depends on OpenGL and SFML. While OpenGL is usually distributed alongside your Compiler, you need to have SFML library installed.
Get the source:
Download the source code from our Subversion repository (https://sourceforge.net/p/extremetuxracer/code/HEAD/tree/). The recommended way is to use SVN. However, it is also possible to download a tarball on that page.
- Recommended: Microsoft Visual Studio 2015 for Desktop (Community/Express Edition is sufficient)
- Also possible: Microsoft Visual C++ 2010 or newer; MinGW (See Linux instructions)
Copy glext.h into Extreme TuxRacer source folder. Build SFML if you did not install precompiled versions. Open Property Manager in Visual Studio (View->Property Manager, or View->Additional Windows->Property Manager) and navigate to "ExtremeTuxRacer->$(Configuration)->Microsoft.Cpp.$(Platform).User". Set up "Include Directories" and "Library Directories" for SFML. If you see errors about missing includes or missing libraries in next step, go back here.
Open the solution /build/ETR.sln. Choose the desired configuration. If you are using an old Visual Studio version, open Project properties and change "Platformtoolset" to the appropriate one. Press F7. If everything goes well, you will find ExtremeTuxRacer.exe in /bin/$(Platform)/$(Configuration).
To run this binary, it is required that the folder /data/ is visible (You can either copy it to the binary or vice versa, or set execution directory accordingly) and that all necessary DLLs are provided. These are:
- sfml-audio-64-2.dll (-32-2 for x86)
- sfml-graphics-64-2.dll (-32-2 for x86)
- sfml-system-64-2.dll (-32-2 for x86)
- sfml-window-64-2.dll (-32-2 for x86)
You can find all those in your SFML installation.
The solution /build/Installer.sln builds a MSI installer. It requires WiX 3.10 to be installed. ETR.sln should have been build before.