Toybrick

rga代码cmake出问题

hanhaowen

新手上路

积分
13
楼主
发表于 2021-6-23 11:14:06    查看: 6435|回复: 0 | [复制链接]    打印 | 只看该作者
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


buildroot.cmake文件的内容如下:
SET(TOOLCHAIN_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")

# this is required
SET(CMAKE_SYSTEM_NAME Linux)

# 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)


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表