#!/bin/bash set -e GCC_COMPILER=/usr/bin ROOT_PWD=$( cd "$( dirname $0 )" && cd -P "$( dirname "$SOURCE" )" && pwd ) # build rockx BUILD_DIR=${ROOT_PWD}/build if [[ ! -d "${BUILD_DIR}" ]]; then mkdir -p ${BUILD_DIR} fi cd ${BUILD_DIR} cmake .. \ -DCMAKE_CXX_COMPILER=${GCC_COMPILER}/arm-linux-gnueabihf-g++-4.8 \ -DCMAKE_C_COMPILER=${GCC_COMPILER}/arm-linux-gnueabihf-gcc-4.8 make make install