-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Building with Mason
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.
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
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