forked from Project-OSRM/osrm-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Building for ARMv7
Aleksei Potov edited this page Jun 24, 2016
·
5 revisions
Tested with 05dc415, gcc-5.3.0-arm-v7 and boost 1.60
Create CMake toolchain file, for example (cmake.armv7
):
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER /Volumes/darwin-arm-v7/bin/arm-cortex_a9-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER /Volumes/darwin-arm-v7/bin/arm-cortex_a9-linux-gnueabi-g++)
SET(CMAKE_FIND_ROOT_PATH /Volumes/darwin-arm-v7/arm-cortex_a9-linux-gnueabi ~/arm-cortex_a9-linux-gnueabi/deps)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
To compile only osrm-routed
configure and build:
mkdir build && cd build
LDFLAGS=-static-libstdc++ cmake -DENABLE_LTO=OFF -DCMAKE_TOOLCHAIN_FILE=~/arm-cortex_a9-linux-gnueabi/cmake.armv7 -DCMAKE_BUILD_TYPE=Release ..
make osrm-routed