标题: rga代码cmake出问题 [打印本页] 作者: hanhaowen 时间: 2021-6-23 11:14 标题: rga代码cmake出问题 GitHub - rockchip-linux/linux-rga的代码,修改了buildroot.cmake后,在build文件夹下执行cmake-linux.sh,出现如下问题:
Generated version.h
set buildroot toolchain
-- Configuring done
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= /home/forlinx/OK3399/OK3399-desktop-release/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
default to Release build for GCC builds
RGA is compiling with cmake
Generated version.h
-- The C compiler identification is GNU 6.3.1
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /home/forlinx/OK3399/OK3399-desktop-release/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
-- Check for working C compiler: /home/forlinx/OK3399/OK3399-desktop-release/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/linux-rga-im2d
make: *** No targets specified and no makefile found. Stop.
请问该怎么做?
build文件夹下的cmake-linux.sh文件的内容如下:
cmake -DCMAKE_BUILD_TARGET=buildroot -DTOOLCHAIN_HOME=/home/forlinx/OK3399/OK3399-desktop-release/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin -DCMAKE_C_COMPILER=/home/forlinx/OK3399/OK3399-desktop-release/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=/home/forlinx/OK3399/OK3399-desktop-release/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ ..
make
# specify the cross compiler
SET(CMAKE_C_COMPILER ${TOOLCHAIN_HOME}/bin/aarch64-linux-gnu-gcc)
SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_HOME}/bin/aarch64-linux-gnu-g++)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_HOME})
# search for programs in the build host directories (not necessary)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)