working with file vdrift-2009-06-15-src.tar.bz2
using these instructions:
VDrift Install Instructions for Linux:
Prerequisites:
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
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
Boost C++ Libraries (header-file-only)
ASIO C++ Libraries (header-file-only)
All the required packages may be installed using this command:
sudo apt-get install g++ scons libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-net1.2-dev libvorbis-dev libglew-dev libasio-dev
Bullet:
As of SVN R2358 (2009-06-15 release and later), no steps are required to build bullet and you can continue to the next section.
SCons:
If you followed the directions for installing prerequisites above, then you're done and can continue on to the next section.
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 2009-06-15.
Unpack the archive:
tar jxvf vdrift-2009-06-15-src.tar.bz2
Enter directory:
Now change directories into the location of your newly created VDrift source tree:
cd vdrift-2009-06-15
Compiling:
To compile VDrift, just use the scons command:
scons
Optional: Compile Options:
You can 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 recompile with these optimizations to improve performance.
Note: There are many more build and install options, see the Using SCons page for more information.
help: scons -h
Installing:
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.
sudo scons install
Running:
For release 2009-06-15 and later, if you used the default install locations, VDrift can be run with the command:
/usr/local/bin/vdrift
which boils down to:
tar jxvf vdrift-2009-02-15-src.tar.bz2
cd vdrift-2009-02-15
tar zxvf bullet-2.73-sp1.tgz
scons release=1
scons install
I had trouble getting the compiler to run complete, so I continued adding to the prerequisites list.
What I ended up with and the synaptic search to to list them:
synaptic search for asio:
libasio-dev*
libsdl1.2debian ===========1.2.13-2
ntpdate ===================1:4.2.4p4+dfsg-8lenny3
synaptic search for boost:
bjam*
boost-build*
libasio-dev
libboost1.40-all-dev
libboost1.40-dev
libboost-all-dev*
libboost-date-time1.40.0
libboost-date-time1.40-dev
libboost-date-time-dev*
libboost-dev*
libboost-filesystem1.40.0
libboost-filesystem1.40-dev
libboost-graph1.40
libboost-graph1.40-dev
libboost-graph-parallel1.40-dev
libboost-iostreams1.40.0
libboost-iostreams1.40-dev
libboost-math1.40.0
libboost-math1.40.0-dev
libboost-mpi1.40.0
libboost1.40-dev
libboost-program-options1.34.1
libboost-program-options1.40.0
libboost-program-options1.40-dev
libboost-python1.40.0
libboost-python1.40-dev
libboost-regex-1.40.0
libboost-regex-1.40-dev
libboost-regex-dev*
libboost-serialization1.40.0
libboost-serialization1.40.0-dev
libboost-signals1.40.0
libboost-signals1.40-dev
libboost-system1.40.0
libboost-system1.40-dev
libboost-test1.40.0
libboost-test1.40-dev
liboost-thread1.40.0
libboost-thread1.40-dev
libboost-wave1.40.0
libboost-wave1.40-dev
synaptic search for g++:
g++
g++-4.1
g++-4.3
libstdc++6 ================4.3.2-1.1
libstdc++6-4.1-dev
libstdc++6-4.3-dev
synaptic search for glew:
glew-utils
libglew1.5*
libglew1.5-dev*
python-pyglew
synaptic search for libsdl:
libsdl1.2debian ===========1.2.13-2
libsdl1.2debian-alsa ======1.2.13-2
libsdl1.2-dev*
libsdl-gfx1.2-4
libsdl-gfx1.2-dev*
libsdl-image1.2
libsdl-image1.2-dev*
libsdl-net1.2
libsdl-net1.2-dev*
synaptic search for scon:
libc6 ====================2.7-18
libc6-dev
libck-connector0 =========0.2.10-5+lenny1
openssl-blacklist ========0.4.2
scons*
synaptic search for libvorbis:
libvorbis0a ===========1.2.0.dfsg-3.1+lenny1
libvorbis-dev*
libvorbisenc2 =========1.2.0.dfsg-3.1+lenny1
libvorbisfile3 ========1.2.0.dfsg-3.1+lenny1