Z-Pocket Game Pro(ZPG Pro)
build librga
參老資訊:
1. linux-rga
步驟如下:
$ export TARGETMACH=arm-linux $ export BUILDMACH=i686-pc-linux-gnu- $ export CROSS=arm-linux-gnueabihf- $ export CC=${CROSS}gcc $ export LD=${CROSS}ld $ export AS=${CROSS}as $ export CXX=${CROSS}g++ $ git clone https://github.com/rockchip-linux/linux-rga $ mkdir linux-rga/build $ cd linux-rga/build $ vim ../buildroot.cmake SET(TOOLCHAIN_HOME "/usr/arm-linux-gnueabihf") SET(CMAKE_C_COMPILER ${TOOLCHAIN_HOME}/bin/arm-linux-gnueabihf-gcc) SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_HOME}/bin/arm-linux-gnueabihf-g++) SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_HOME}) SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) $ ../cmake-linux.sh