/usr/share/cmake-3.5/。的CMake错误。C++编译器无法编译简单的测试程序

时间:2019-07-08 18:28:57

标签: c++ gcc cmake ubuntu-16.04 ninja

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编译器,并且它是最新的。我不知道这里出了什么问题。

0 个答案:

没有答案