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 or MSVC is required to compile Extreme TuxRacer.
The code depends on OpenGL, SDL and FreeType. While OpenGL is usually distributed alongside your Compiler, you need to have SDL and FreeType 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 2012 for Desktop (Express Edition is sufficient)
- Also possible: Microsoft Visual C++ 2010; MinGW (See Linux instructions)
Copy glext.h into Extreme TuxRacer source folder. Build SDL and Freetype, 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 Freetype and SDL. 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 Visual Studio 2010, open Project properties and Change "Platformtoolset" to v100. 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:
You can find those in your SDL installation.
The solution /build/Installer.sln builds a MSI installer. It requires WiX 3.8 to be installed. ETR.sln should have been build before.