Skip to content
Hiradur edited this page Oct 3, 2024 · 32 revisions

Tip: Development build

If you just want to run RoR development builds without any hassle then have a look at the development builds: https://forum.rigsofrods.org/threads/ror-development-builds-for-0-4-8-for-windows-and-linux.696/

Introduction

Rigs of Rods is very complex and is built on top of many components to provide its features. This results in a long list of dependencies. Most dependencies can usually be found in the software repositories of your distribution but some have to be compiled by hand. Fear not! While this may look overwhelming at first it is actually very easy if you follow these steps closely.

Compile build dependencies

Use git to clone this repository and follow the instructions in the README to build the dependencies.

Building Rigs of Rods

Download the source code:

cd ~/
git clone --recursive https://github.com/RigsOfRods/rigs-of-rods.git
cd rigs-of-rods

Configuring your build

Before you can compile the code you have to configure your build by running cmake. cmake automatically detects what platform you are using, finds the dependencies, sets up the flags for the compiler accordingly etc..

cmake -GNinja -DCMAKE_BUILD_TYPE=Release .

Building the source code

To start building simply run:

ninja

Thats it! You finally built Rigs of Rods.

Updating existing sources

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

cd rigs-of-rods
git pull

cmake .
ninja