CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler
"/home/odroid/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-g++" is
not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/odroid/src/Firmware/build/px4_fmu-v3_default/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/ninja" "cmTC_b270d"
[1/2] Building CXX object CMakeFiles/cmTC_b270d.dir/testCXXCompiler.cxx.obj
FAILED:
/home/odroid/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-g++ -o
CMakeFiles/cmTC_b270d.dir/testCXXCompiler.cxx.obj -c testCXXCompiler.cxx
/home/odroid/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-g++: 1:
/home/odroid/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-g++:
ELF: not found
/home/odroid/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-g++: 1:
/home/odroid/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-g++:
Syntax error: Unterminated quoted string
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:263 (project)
-- Configuring incomplete, errors occurred!
See also "/home/odroid/src/Firmware/build/px4_fmu-v3_default/CMakeFiles/CMakeOutput.log".
See also "/home/odroid/src/Firmware/build/px4_fmu-v3_default/CMakeFiles/CMakeError.log".
Error: /home/odroid/src/Firmware/build/px4_fmu-v3_default is not a directory
Makefile:200: recipe for target 'px4_fmu-v3' failed
make: *** [px4_fmu-v3] Error 1
我一直在关注tutorial dronecode,并且一直坚持建立px4软件步骤。我已经下载了ninja-build软件以及gcc编译器,并且它是最新的。我不知道这里出了什么问题。