Compiling ETRacer
From ETRacer
Note: These instructions are currently targeted at Ubuntu and Ark Linux. If you have compiled ETRacer on another system, please add to this page.
If you're out to make .deb file from your build, check out Building an Ubuntu package.
Contents |
[edit] Prerequisites
[edit] Debian/Ubuntu
Note: This probably also applies for other Debian-based systems.
Make sure you have the following packages installed:
- subversion (to check out code)
- build-essential (tools to compile code)
- automake (tools to generate and configure the makefiles)
- gettext (translation utilities)
- libsdl1.2-dev
- libsdl-mixer1.2-dev
- tcl8.4-dev
- libpng12-dev
- libfreetype6-dev
This could actually be as simple as running:
sudo apt-get build-dep extremetuxracer
Newer versions of Debian may not be compatible. If configure gives you errors about the GL or X Window libraries, try installing xlibs-dev.
To determine this, `grep /usr/bin/ld config.log` in the directory where you did `./configure`. If it says, it cannot find -lXi, -lXext, -lXmu, or -lXt; try installing this package.
sudo apt-get install xlibs-dev
The xlibs-dev package is no longer available in Ubuntu Gutsy. Instead, you should use xorg-dev. You may also need driver development files for your graphics card, such as nvidia-glx-new-dev.
[edit] Ark Linux
Install the following packages using apt-get or the graphical installation tool in Mission Control:
- subversion
- devel-core
- SDL-devel
- SDL_mixer-devel
- tcl
- freetype-devel
- xorg-devel
[edit] MacOSX
To compile ETRacer on Mac OS X, view OS X compiling.
[edit] Windows
To compile ETRacer on Windows, view Compiling ETR under Windows XP with MinGW.
[edit] Other Systems
Make sure you have gcc and it's associated tools installed, as well as the below libraries and their development files.
- libsdl1.2
- libsdl-mixer1.2
- tcl8.4
[edit] SVN Checkout
If you want to test the latest development version or help develop the game, you'll need to get the code from the Subversion repository.
If you are normal user just looking to compile the current version, get the source tarball from the downloads page instead.
svn co https://extremetuxracer.svn.sourceforge.net/svnroot/extremetuxracer/trunk/extreme-tuxracer <directory you want to put the code in>
To update an existing copy of the checked-out code to the latest in the repository:
svn update
[edit] Installation
Switch to <directory you want to put the code in>. Type:
./autogen.sh
This script will generate the configure.sh file and run it. If it fails, you can run it manually after correcting the problem:
./configure
Note: I have had to use ./configure --with-tcl-inc=/usr/include/tcl8.4 StevenB
(me too - using Debian Unstable) Eric
Note: FedoraF8/64bit --> ./configure --with-tcl-inc=/usr/lib64/tcl8.4 (locate your tcl8.4 directory or yum install tcl.x86_64 (for 32-bit "tcl.i386 ") )
If it comes back with "configure complete, now type 'make' and pray", then type:
make
And if you have no errors,
make check
And finally, that's if you have no errors from the previous,
sudo make install
Assuming the install completes successfully, you should be able to run the program with the command "etracer".

