-
Notifications
You must be signed in to change notification settings - Fork 47
Linux Developer Setup
Felix Gündling edited this page Apr 27, 2020
·
10 revisions
The steps to build the MOTIS distribution you can also download can found be here.
On Linux, there are different options. Either you install every dependency into your system or you use the Docker container that is also used for CI builds.
Docker:
Tested with Ubuntu 18.04.
- Install Docker from docker.com.
- Install Git:
sudo apt install git
git clone [email protected]:motis-project/motis.git
cd motis
Build:
docker run \
-v "$PWD:/repo" \
-e CCACHE_DIR=/repo/ccache \
--rm motisproject/cpp-build:latest \
bash -c "ccache -z && cmake-ccache-clang-9 -DCMAKE_BUILD_TYPE=Release /repo && ninja motis && cp motis /repo && ccache -s"
You should have the MOTIS binary now in the "motis" folder.
Directly:
Execute the steps from the Dockerfile manually. This installs all dependencies. You need to download the binaries manually.
git clone [email protected]:motis-project/motis.git
cd motis
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -GNinja ..
ninja
This builds the MOTIS binary.