-
Notifications
You must be signed in to change notification settings - Fork 178
Compile (Linux)
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/
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.
Use git
to clone this repository and follow the instructions in the README to build the dependencies.
Download the source code:
cd ~/
git clone --recursive https://github.com/RigsOfRods/rigs-of-rods.git
cd rigs-of-rods
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 .
To start building simply run:
ninja
Thats it! You finally built Rigs of Rods.
If you already got the sources and just want to update, follow the steps below:
cd rigs-of-rods
git pull
cmake .
ninja