TORCS Download & Installation
Binary Installer Package For Windows
MacOS X Package (1.2.4)
For Linux and FreeBSD from "all-in-one" Source Package
- Check the dependencies
- Download the source package torcs-1.3.6.tar.bz2.
- Unpack the package with "tar xfvj torcs-1.3.6.tar.bz2".
- Run the following commands:
$ cd torcs-1.3.6
$ ./configure # --prefix="target dir", --enable-debug or --disable-xrandr might be of interest
$ make
$ make install
$ make datainstall
Default installation directories:
- /usr/local/bin - TORCS command (directory should be in your PATH)
- /usr/local/lib/torcs - TORCS dynamic libs (directory MUST be in your LD_LIBRARY_PATH if you don't use the torcs shell)
- /usr/local/share/games/torcs - TORCS data files
- Run the "torcs" command (default location is /usr/local/bin/torcs), you can use those command line options.
All the configuration data, race results and players options will be saved below the $HOME/.torcs directory.
For Windows From "all-in-one" Source Package
- Requires VS 6.0 (tested with sp6) or VS 2008 (tested with sp1).
- Download the source package torcs-1.3.6.tar.bz2.
- Unpack the package with "tar xfvj torcs-1.3.6.tar.bz2" or any application you like, be careful to select a path without whitespaces and other special characters.
- Hint: You can build a release and a debug version side by side, the required step for the debug version is showed in brackets "()".
- Open a command prompt and cd into the torcs-1.3.6 directory.
- Run setup_win32.bat (setup_win32_debug.bat).
- Run setup_win32-data-from-CVS.bat (setup_win32-data-from-CVS_debug.bat).
- Open the file TORCS.dsw with VS 6.0 or the TORCS.sln with VS 2008.
- Select the TORCS project and the win32-Release (win32-Debug) version.
- Compile the project (0 warnings).
- cd into the "runtime" ("runtimed") directory.
- Run "wtorcs.exe".
Linux From Sources CVS
You'll need those dependencies
Getting the sources
You have to run the following commands to get the sources (might sometimes not compile or crash):
cvs -d:pserver:anonymous@torcs.cvs.sourceforge.net:/cvsroot/torcs login
The 1.3.6 trunk is on branch r1-3-1:
cvs -z3 -d:pserver:anonymous@torcs.cvs.sourceforge.net:/cvsroot/torcs co -r r1-3-1 -P torcs
Get more info on CVS
Compiling
Run the following commands:
$ cd torcs/torcs
$ ./configure # --prefix="target dir", --enable-debug or --disable-xrandr might be of interest
$ make
$ make install
$ make datainstall
Default installation directories:
- /usr/local/bin - TORCS command (directory should be in your PATH)
- /usr/local/lib/torcs - TORCS dynamic libs (directory MUST be in your LD_LIBRARY_PATH if you don't use the torcs shell)
- /usr/local/share/games/torcs - TORCS data files
Run the "torcs" command (default location is /usr/local/bin/torcs), you can use those command line options.
All the configuration data, race results and players options will be saved below the $HOME/.torcs directory.
Dependencies
Requisites for Linux
You will need:
- Hardware accelerated OpenGL (usually provided by your distro).
- FreeGlut (usually provided by your distro).
- PLIB 1.8.5 version (usually provided by your distro).
- OpenAL (usually provided by your distro).
- libpng and zlib (usually provided by your distro).
- libogg/vorbis (usually provided by your distro).
TORCS Command Line Options
- -l list the dynamically linked libraries
- -d run under gdb and print stack trace on exit, makes most sense when compile with --enable-debug
- -e display the commands to issue when you want to run under gdb
- -s disable multitexturing, important for older graphics cards
- -m use X mouse cursor and do not hide it during races
TORCS for your Linux distribution
TORCS has been adopted from a lot of distributions (e.g. SuSE, Debian, Fedora, Mandriva, Gentoo, ...), have a look at your installation CD's/DVD's or
online repositories. Be aware that some of these versions are quite old or have been stripped down to reduce the
package size.
if you have problems or questions, send a mail to the [torcs-users] mailing list.