Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Build instructions

Mr. X

Requirements:

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.

Building on Linux/Unix:

Building on Windows:

Compiler:
- Recommended: Microsoft Visual Studio 2012 for Desktop (Express Edition is sufficient)
- Also possible: Microsoft Visual C++ 2010; MinGW (See Linux instructions)

Libraries:
- glext.h (http://www.opengl.org/registry/)
- SDL 1.2, including SDL_image and SDL_mixer (http://www.libsdl.org/)
- FreeType 2 (http://freetype.org/)

Setup:
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.

Build:
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:
- libogg-0.dll
- libpng15-15.dll
- libvorbis-0.dll
- libvorbisfile-3.dll
- SDL.dll
- SDL_image.dll
- SDL_mixer.dll
- smpeg.dll
- zlib1.dll
You can find those in your SDL installation.

Windows Installer:
The solution /build/Installer.sln builds a MSI installer. It requires WiX 3.8 to be installed. ETR.sln should have been build before.


Related

Wiki: Home