Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created May 6, 2015 00:00
Show Gist options
  • Save springmeyer/88919dc19762765be877 to your computer and use it in GitHub Desktop.
Save springmeyer/88919dc19762765be877 to your computer and use it in GitHub Desktop.
Install OSRM against mason depedencies
# assumes you've got a working C++11 compiler
# installs all OSRM deps (and cmake too) locally in ./mason_packages
# and then builds OSRM against them
git clone --depth 10 https://github.com/Project-OSRM/osrm-backend -b masonize
cd osrm-backend
source ./bootstrap.sh
mkdir build && cd build
../mason_packages/.link/bin/cmake ../ \
-DBoost_NO_SYSTEM_PATHS=ON \
-DTBB_INSTALL_DIR=${MASON_HOME} \
-DCMAKE_INCLUDE_PATH=${MASON_HOME}/include \
-DCMAKE_LIBRARY_PATH=${MASON_HOME}/lib \
-DOSMPBF_INCLUDE_DIR=${MASON_HOME}/include
make
make tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment