在树莓派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