我按照README.md编译包内的command_line_demo目录中的例程序
在PC虚拟机上安装fedora而编译,出现如下错误提示:
-- The C compiler identification is GNU 6.3.1
-- The CXX compiler identification is GNU 6.3.1
-- Check for working C compiler: /home/huxiaolin/Mywork/rk3399/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
-- Check for working C compiler: /home/huxiaolin/Mywork/rk3399/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/home/huxiaolin/Mywork/rk3399/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/huxiaolin/Mywork/rk3399/Rock-X/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_linux_aarch64/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_4deb7/fast
/usr/bin/gmake -f CMakeFiles/cmTC_4deb7.dir/build.make CMakeFiles/cmTC_4deb7.dir/build
gmake[1]: Entering directory '/home/huxiaolin/Mywork/rk3399/Rock-X/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_linux_aarch64/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_4deb7.dir/testCCompiler.c.o
/home/huxiaolin/Mywork/rk3399/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -o CMakeFiles/cmTC_4deb7.dir/testCCompiler.c.o -c /home/huxiaolin/Mywork/rk3399/Rock-X/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_linux_aarch64/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_4deb7
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4deb7.dir/link.txt --verbose=1
/home/huxiaolin/Mywork/rk3399/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc CMakeFiles/cmTC_4deb7.dir/testCCompiler.c.o -o cmTC_4deb7
/home/huxiaolin/Mywork/rk3399/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld: /home/huxiaolin/Mywork/rk3399/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/../libexec/gcc/aarch64-linux-gnu/6.3.1/liblto_plugin.so: error loading plugin: /home/huxiaolin/Mywork/rk3399/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/../libexec/gcc/aarch64-linux-gnu/6.3.1/liblto_plugin.so: file too short
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_4deb7.dir/build.make:87: cmTC_4deb7] Error 1
gmake[1]: Leaving directory '/home/huxiaolin/Mywork/rk3399/Rock-X/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_linux_aarch64/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_4deb7/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/home/huxiaolin/Mywork/rk3399/Rock-X/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_linux_aarch64/CMakeFiles/CMakeOutput.log".
See also "/home/huxiaolin/Mywork/rk3399/Rock-X/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_linux_aarch64/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
/home/huxiaolin/Mywork/rk3399/Rock-X/RockX_SDK_V1.0.0_20190611/demo/command_line_demo
在开发板上编译,也出现同样错误:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
(.........后面内容同上,省略不贴了)
我哪里没有做对?
请版主及各位指导一下!
|