Compilando Vdrift

Acà les dejo un pequeño tutorial para compilar este interesante juego en Linux

Compiling VDrift is different depending on the operating system on which it is compiled.



Make sure you have all the required libraries and build tools. Make sure you also have the development files for each of the libraries.

The required build tools include:

  • g++ – The GNU C++ compiler
  • scons – A replacement for Make

The required libraries include:

  • libsdl – Simple Direct Media Layer
  • libglew – OpenGL extension utilities
  • sdl-gfx – Graphics drawing primitives library for SDL
  • sdl-image – Image file loading library for SDL
  • vorbisfile – File loading library for the ogg vorbis format
  • libvorbis – The Vorbis General Audio Compression Codec
  • libboost – Boost C++ Libraries

Your Linux distribution may have different package names and/or bundled differently. The list above should give enough information to search for applicable packages within your distribution’s package manager.

For Ubuntu, all the required packages may be installed using this command:

sudo apt-get install g++ scons libsdl-gfx1.2-dev libsdl-image1.2-dev libvorbis-dev libglew-dev libboost-dev


As of SVN R2358, no steps are required to build bullet and you can continue to the next section.

For the 2009-02-15 release, the only step required is to expand the Bullet source archive:

tar zxvf bullet-2.73-sp1.tgz
Note: For older versions of VDrift, you will need to follow the Old Method of Compiling Bullet.


As of the 2005-10-02 release, VDrift no longer uses ./configure, make, etc. (autotools). Now the project is built with SCons. You may want to read a little about Using SCons.

There are two ways to use SCons. The first way is to install scons on your system through your package manager, then you can use it simply by the name of the program, “scons”. The second way is to use the scons-local package (included with VDrift) which will do the same thing but doesn’t require that you install scons on your system. To do this, you must move the scons-local-0.96.95.tar.gz archive from tools to the root vdrift folder, un-tar the archive, and then use the ./ command instead of scons.

Get the Code

You can get the code from a source package for a particular version, or you can get the development version.

Source Package

Download the latest VDrift Linux source package. All the files in the package are in a directory called vdrift-version-src where version is something like 2005-10-02.

Unpack the archive.

tar jxvf vdrift-2005-10-02-src.tar.bz2

Enter directory

Now change directories into the location of your newly created VDrift source tree.

cd vdrift-2005-10-02-src

Development version

You can check out the development version of VDrift from our Subversion repository.

Once you’ve checked out the code, enter the directory Subversion created.

cd vdrift

Optional: Using scons-local instead of installing SCons

If you have decided not to install SCons on your system, you can use scons-local. To set it up, do the following:

tar zxvf tools/scons-local-0.96.1.tar.gz
Note: Some of the following steps refer to the scons command, you should now replace that with ./


To compile VDrift, just use the scons command.



You may need to use one or more compile options. To compile with optimization for a certain platform, you can use the arch option.

scons arch=a64

Compiling VDrift in release mode will turn off debugging options, and enable more compiler optimizations. VDrift runs much more quickly in release mode.

scons release=1
Note: These options are probably best left off the first time you compile. If you have problems compiling or running VDrift, it is easier to debug with them off. Once you verify that VDrift is compiling, then add these to improve performance.


VDrift does not need to be installed to work and you can run it from the folder where you compiled it. If you do want to install, use the SCons build target install. This command must be run as root.

scons install
Note: The scons install process was broken for several releases and may fail to install needed datafiles. If scons install doesn’t result in a working installation, manually re-copy the data files to the installed destination folder.

Installation Options

You can change the installation prefix. By default, VDrift is installed to /usr/share/games/vdrift, but if you wanted it to go in /usr/local/share/games/vdrift, you can change the prefix setting.

scons install prefix=/usr/local
sudo cp less_simple/ /usr/share/games/vdrift/data/shaders/ -R


Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s