Compiling Sources under Linux

From Rigs of Rods Wiki

Jump to:navigation, search

RoR is known to compile and work under:

  • Ubuntu (8.10, 9.10, 10.04, 14.04, 14.10) 32 and 64 bit
  • Gentoo 2010 32 and 64 bit
  • Debian Lenny 32 bit
  • Arch Linux

(please extend this list)

Precompiled Packages

For packages for various Linux distributions see here.

Shell scripts for automatic building

If you just want to install RoR without much hassle then have a look at these shell scripts, they bundle all necessary steps:


Getting the required build dependencies (distribution specific)


IMPORTANT: You need to compile some components by hand, like OGRE and MyGUI. Look below at "Compiling 3rd party libraries"

sudo apt-get update
sudo apt-get install subversion mercurial git automake cmake build-essential pkg-config doxygen \
 libfreetype6-dev libfreeimage-dev libzzip-dev scons libcurl4-openssl-dev \
 nvidia-cg-toolkit libgl1-mesa-dev libxrandr-dev libx11-dev libxt-dev libxaw7-dev \
 libglu1-mesa-dev libxxf86vm-dev uuid-dev libuuid1 libgtk2.0-dev libboost-all-dev \
 libopenal-dev libois-dev libssl-dev libwxgtk3.0-dev


mkdir /etc/portage
echo "media-libs/freeimage ~x86" >> /etc/portage/package.keywords
echo "media-libs/freeimage" >> /etc/portage/package.unmask
emerge -av cmake devil boost nvidia-cg-toolkit subversion wxGTK freeimage zziplib
eselect wxwidgets set 1

Compiling 3rd party libraries

IMPORTANT: Please install all software that is not available in your distributions' repo by hand. Please read Compiling 3rd party libraries, this is necessary to fulfill the required dependencies.

Please note that OGRE shipped with some distributions does not have support for Cg enabled which is needed for Rigs of Rods (otherwise shaders will be missing, e.g. completely white cars).

Getting the source code

Download the source code:

git clone
cd rigs-of-rods

Configuring the source code

There are two different ways to configure RoR, either via Command Line Interface (aka CLI) or through a GUI interface. CLI is the most straight forward. If you are only interested in compiling standard RoR, this is the recommended method.


You can also use 'ccmake' or 'cmake -DROR_USE_<name>="TRUE"'

For example using the command line cmake:



The cmake GUI might not be provided on all in systems.
To start the cmake gui run:
cmake-gui .
  • press "Configure"
  • select "Unix Makefiles" and "Use default native compilers" (that are the default options) and press "Finish"
  • press "Configure" again until all list entries are white
  • look at the log window for information and errors (look for red lines with " > " in front)
  • enable the components you want to compile in: ROR_*
  • press "Configure" again until the "Generate" button is click-able
  • press "Generate"
  • close cmake-gui

Building the source code

To start building simply run:


Note: For those not familiar with make you can add a -jx flag where x is the number of simultaneous build jobs you want (basic rule: one job per cpu core).

Updating existing sources

If you already got the sources and just want to update, follow the steps below:

cd rigs-of-rods
git pull
rm -f CMakeCache.txt
rm -rf CmakeFiles/
cmake-gui .

If you are done compiling you may want to continue to read Starting RoR under Linux

About Rigs of Rods

    Rigs of Rods is a unique soft body physics simulator.

Some Tools


Follow us

Twitter youtube Facebook RSS Feed