m0_52528804 2021-01-17 18:09 采纳率: 0%
浏览 663

关于PX4固件源码最后编译make px4_fmu-v5_default问题

在树莓派raspbian-buster系统上搭建PX4环境出现一些问题,求指路

root@raspberrypi:~/Firmware_ws/src/Firmware# make px4_fmu-v5_default
-- PX4 version: v1.11.0-beta1-566-g5399702620
-- PX4 config file: /root/Firmware_ws/src/Firmware/boards/px4/fmu-v5/default.cmake
-- PX4 config: px4_fmu-v5_default
-- PX4 platform: nuttx
-- cmake build type: MinSizeRel
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: /usr/bin/arm-none-eabi-gcc
-- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++
-- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++ -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCXXCompiler.cmake:45 (message):
  The C++ compiler

    "/usr/bin/arm-none-eabi-g++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /root/Firmware_ws/src/Firmware/build/px4_fmu-v5_default/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/ninja" "cmTC_d1fff"
    [1/2] Building CXX object CMakeFiles/cmTC_d1fff.dir/testCXXCompiler.cxx.obj
    FAILED: CMakeFiles/cmTC_d1fff.dir/testCXXCompiler.cxx.obj 
    /usr/bin/arm-none-eabi-g++     -o CMakeFiles/cmTC_d1fff.dir/testCXXCompiler.cxx.obj -c testCXXCompiler.cxx
    /bin/sh: 1: /usr/bin/arm-none-eabi-g++: Exec format error
    ninja: build stopped: subcommand failed.
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:190 (project)


-- Configuring incomplete, errors occurred!
See also "/root/Firmware_ws/src/Firmware/build/px4_fmu-v5_default/CMakeFiles/CMakeOutput.log".
See also "/root/Firmware_ws/src/Firmware/build/px4_fmu-v5_default/CMakeFiles/CMakeError.log".
Error: /root/Firmware_ws/src/Firmware/build/px4_fmu-v5_default is not a directory
make: *** [Makefile:200:px4_fmu-v5_default] 错误 1


  • 写回答

1条回答 默认 最新

  • 小冯同学要加油 2021-07-28 11:45
    关注

    您好,问题解决了吗

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog