#!/bin/bash
##ARM编译器路径 20210708
##1/修改为安装好路径
##2/也可以修改为rv1126本身安装的编译器路径
GCC_COMPILER_PATH=~/opts/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf
#BUILD_TYPE=Release
BUILD_TYPE=Debug
ROOT_PWD=$( cd "$( dirname $0 )" && cd -P "$( dirname "$SOURCE" )" && pwd )
BUILD_DIR=${ROOT_PWD}/build/build_rv1109_linux
if [[ ! -d "${BUILD_DIR}" ]]; then
mkdir -p ${BUILD_DIR}
fi
cd ${BUILD_DIR}
cmake ../.. \
-DTARGET_SOC=rv1109 \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_C_COMPILER=${GCC_COMPILER_PATH}-gcc \
-DCMAKE_CXX_COMPILER=${GCC_COMPILER_PATH}-g++ \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DCMAKE_INSTALL_PREFIX=${ROOT_PWD}/install/rockx_rv1109_linux
make -j4
make install
cd -
rockchip-rockxxdemo编译说明
于 2022-03-24 09:20:22 首次发布