Skip to content

Building with Mason

Yuan Zhao edited this page Apr 15, 2017 · 7 revisions

This page describes building OSRM on Ubuntu using Mason as package manager.

See Building on Ubuntu for how to use the system's apt package manager instead.

>= Ubuntu 16.04

sudo apt update -y
sudo apt install -y zlib1g-dev curl libstdc++-5-dev make binutils libc-dev libgcc-5-dev git
git clone https://github.com/Project-OSRM/osrm-backend.git
cd osrm-backend
./third_party/mason/mason install clang++ 3.9.1
./third_party/mason/mason install cmake 3.6.2
export PATH=$(./third_party/mason/mason prefix cmake 3.6.2)/bin:$PATH
export PATH=$(./third_party/mason/mason prefix clang++ 3.9.1)/bin:$PATH
mkdir build
cd build
cmake ../ -DENABLE_MASON=1
make

Ubuntu 12.04 -> 15.04

sudo apt-get update -y
sudo apt-get install -y software-properties-common python-software-properties || true
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update -y
sudo apt-get install -y zlib1g-dev curl libstdc++-5-dev make binutils libc-dev libgcc-5-dev git
git clone https://github.com/Project-OSRM/osrm-backend.git
cd osrm-backend
git checkout 5.6
./third_party/mason/mason install clang++ 3.9.1
./third_party/mason/mason install cmake 3.6.2
export PATH=$(./third_party/mason/mason prefix cmake 3.6.2)/bin:$PATH
export PATH=$(./third_party/mason/mason prefix clang++ 3.9.1)/bin:$PATH
mkdir build
cd build
cmake ../ -DENABLE_MASON=1
make