OSRM Routing Software Compile on SUSE13.2

Created by: Lester Caine, Last modification: 18 Aug 2015 (10:29 BST)

Project-OSRM needs it's lua parts compiled for 5.1, while the stock distributionsa re now 5.2, but loading the lua51-devel prior to compiling LuaJIT and LUABind seems to fix the problem. This is the area I'm still trying to sort.

Install packages already available in SUSE 13.2 repositories

zypper install git boost-devel gcc gcc-c++ cmake \
libxml2-devel libbz2-devel libzip-devel libgomp1 libpng16-devel \
libprotobuf8 libprotobuf-c-devel protobuf-devel lua lua51-devel \
boost-jam luajit pkg-config

LuaJIT

git clone http://luajit.org/git/luajit-2.0.git
cd luajit-2.0
make PREFIX=/usr
make PREFIX=/usr install

This copies the LuaJIT files into /usr

boost-build

https://github.com/boostorg/build/releases/download/2014.10/boost-build-2014-10.tar.bz2

unzip boost-build-2014-10.tar.bz2 to boost-build
cd boost-build
./bootstrap.sh
./b2 install --prefix=/usr

This copies the boost-build files into /usr

LuaBind

http://sourceforge.net/projects/luabind/files/luabind/0.9.1/luabind-0.9.1.tar.gz/download

unzip luabind-0.9.1.tar.gz to luabind-0.9.1
cd luabind-0.9.1
Line 84 of Jamroot needs editing to 'local lib = $(prefix)/lib64;'
bjam --prefix=/usr install

OSM-binary

git clone https://github.com/scrosby/OSM-binary.git
cd src
make
make install

stxxl memory managment

http://stxxl.sourceforge.net/tags/master/index.html

git clone http://github.com/stxxl/stxxl.git
cd stxxl
mkdir build
cd build
cmake ..
make

Intel TBB Library

 

Project-OSRM

http://map.project-osrm.org/

git clone https://github.com/Project-OSRM/osrm-backend.git
cd osrm-backend
mkdir -p build
cd build
cmake ..
make