Difference between revisions of "Compiling"

From VDrift
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 53: Line 53:
 
The required libraries include:
 
The required libraries include:
  
* [http://www.boost.org/ Boost C++ Libraries] (header-file-only)
+
* [http://bulletphysics.org/wordpress/ Bullet] - Open Source Physics Library (minimum version 2.83). Only the following libraries are required:
* [http://bulletphysics.org/wordpress/ Bullet] - Open Source Physics Library (minimum version 2.78). Only the following libraries are required:
 
 
** BulletCollision
 
** BulletCollision
 
** BulletDynamics
 
** BulletDynamics
 
** LinearMath
 
** LinearMath
* [http://glew.sourceforge.net/ GLEW] - OpenGL Extension Wrangler Library (minimum version 1.5.7)
 
* [http://libarchive.github.com/ libarchive] - Multi-format archive and compression library (minimum version 2.8.3)
 
 
* [http://curl.haxx.se/ libcurl] - Multiprotocol file transfer library (minimum version 7.21.6)
 
* [http://curl.haxx.se/ libcurl] - Multiprotocol file transfer library (minimum version 7.21.6)
 
* [http://xiph.org/vorbis/ libvorbis] - The Vorbis General Audio Compression Codec Library (minimum version 1.2.0)
 
* [http://xiph.org/vorbis/ libvorbis] - The Vorbis General Audio Compression Codec Library (minimum version 1.2.0)
* vorbisfile - File loading library for the ogg vorbis format
+
* [http://www.libsdl.org/ SDL] - Simple DirectMedia Layer Library (minimum version 2.0.0)
* [http://www.libsdl.org/ SDL] - Simple DirectMedia Layer Library (minimum version 1.2.14)
+
* [http://www.libsdl.org/projects/SDL_image/ SDL_image] - Image file loading library (minimum version 2.0.0)
* [http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx SDL_gfx] - Graphics drawing primitives library (minimum version 2.0.16)
 
* [http://www.libsdl.org/projects/SDL_image/ SDL_image] - Image file loading library (minimum version 1.2.10)
 
  
 
Make sure you have all the required libraries and build tools. Make sure you also have the development files for each of the 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.
 
Make sure you have all the required libraries and build tools. Make sure you also have the development files for each of the 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.
Line 71: Line 66:
 
====Fedora====
 
====Fedora====
 
All required packages can be installed using this command:
 
All required packages can be installed using this command:
  sudo yum install bullet-devel gcc-c++ glew-devel libarchive-devel scons SDL_*-devel curl-devel
+
  sudo yum install bullet-devel gcc-c++ libvorbis-devel scons SDL2-devel SDL2_image-devel curl-devel
  
 
====Ubuntu====
 
====Ubuntu====
Ubuntu does not include a libbullet package, but getdeb does. To add the getdeb-repository to your sources-list.d:
+
Ubuntu 12.04 does not include libbullet and SDL2 packages. They are available in following ppas though:
wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
 
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu natty-getdeb games" > /etc/apt/sources.list.d/getdeb.list'
 
sudo apt-get update
 
  
Ubuntu 11.04 (Natty Narwhal) does contain libglew1.5, only. To install libglew1.6 and its development headers:
+
    sudo add-apt-repository ppa:roblib/ppa
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/glew/libglew1.6_1.6.0-3_amd64.deb
+
    sudo add-apt-repository ppa:zoogie/sdl2-snapshots
sudo dpkg -i libglew1.6_1.6.0-3_amd64.deb
 
rm libglew1.6_1.6.0-3_amd64.deb
 
  
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/glew/libglew1.6-dev_1.6.0-3_amd64.deb
+
All required packages can be installed using this command:
sudo dpkg -i libglew1.6-dev_1.6.0-3_amd64.deb
 
rm libglew1.6-dev_1.6.0-3_amd64.deb
 
  
All other required packages can be installed using this command:
+
    sudo apt-get install g++ scons libsdl2-dev libsdl2-image-dev libbullet-dev libvorbis-dev libcurl4-gnutls-dev
sudo apt-get install g++ libarchive-dev libcurl4-gnutls-dev \
 
                      libdrm-dev libgl1-mesa-dev \
 
                      libglu1-mesa-dev libkms1 mesa-common-dev \
 
                      libsdl-gfx1.2-dev libsdl-image1.2-dev \
 
                      libsdl-net1.2-dev libvorbis-dev freeglut3 libbullet0 \
 
                      libbullet-dev scons
 
  
 
===Compiling===
 
===Compiling===

Latest revision as of 12:22, 24 June 2015

This page shows how to compile VDrift from source. It assumes you have downloaded the source code either by getting the source package from the latest release, or by getting the development version.

Windows

OS X

Linux

FreeBSD