2302_80274807 2024-05-14 00:04 采纳率: 36.4%
浏览 317
已结题

PX4进行make px4_fmu-v3_default 失败,如何解决

在Ubuntu中进行make px4_fmu-v3_default操作
得到了这样的代码

-- PX4 version: v1.13.0-beta1-387-g8cc6d02af3
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3") 
-- PX4 config file: /home/lin/PX4-Autopilot/boards/px4/fmu-v3/default.px4board
-- PLATFORM nuttx
-- TOOLCHAIN arm-none-eabi
-- ARCHITECTURE cortex-m4
-- ROMFSROOT px4fmu_common
-- IO px4_io-v2_default
-- CONSTRAINED_MEMORY y
-- SERIAL_GPS1 /dev/ttyS3
-- SERIAL_TEL1 /dev/ttyS1
-- SERIAL_TEL2 /dev/ttyS2
-- SERIAL_TEL4 /dev/ttyS6
-- UAVCAN_INTERFACES 2
-- PX4 config: px4_fmu-v3_default
-- PX4 platform: nuttx
/home/lin/PX4-Autopilot/platforms/nuttx/NuttX/nuttx/../apps/Kconfig:8: '/home/cgy/PX4/V1.13.0/PX4-Autopilot/platforms/nuttx/NuttX/apps/canutils/Kconfig' not found (in 'source "/home/cgy/PX4/V1.13.0/PX4-Autopilot/platforms/nuttx/NuttX/apps/canutils/Kconfig"'). Check that environment variables are set correctly (e.g. $srctree, which is unset or blank). Also note that unset environment variables expand to the empty string.
make[1]: *** [tools/Makefile.unix:491: olddefconfig] Error 1
-- cmake build type: MinSizeRel
-- The CXX compiler identification is GNU 9.3.1
-- The C compiler identification is GNU 9.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc
-- Check for working CXX compiler: /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-g++
-- Check for working CXX compiler: /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc
-- Check for working C compiler: /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- ccache enabled (export CCACHE_DISABLE=1 to disable)
CMake Error at platforms/nuttx/cmake/px4_impl_os.cmake:138 (message):
  Could not determine chip architecture from NuttX config.  You may have to
  add it.
Call Stack (most recent call first):
  CMakeLists.txt:324 (px4_os_determine_build_chip)


-- Configuring incomplete, errors occurred!
See also "/home/lin/PX4-Autopilot/build/px4_fmu-v3_default/CMakeFiles/CMakeOutput.log".
See also "/home/lin/PX4-Autopilot/build/px4_fmu-v3_default/CMakeFiles/CMakeError.log".
Error: /home/lin/PX4-Autopilot/build/px4_fmu-v3_default is not a directory
make: *** [Makefile:230: px4_fmu-v3_default] Error 1


怎么解决

CMake Error at platforms/nuttx/cmake/px4_impl_os.cmake:138 (message):
  Could not determine chip architecture from NuttX config.  You may have to
  add it.
Call Stack (most recent call first):
  CMakeLists.txt:324 (px4_os_determine_build_chip)


-- Configuring incomplete, errors occurred!
See also "/home/lin/PX4-Autopilot/build/px4_fmu-v3_default/CMakeFiles/CMakeOutput.log".
See also "/home/lin/PX4-Autopilot/build/px4_fmu-v3_default/CMakeFiles/CMakeError.log".
Error: /home/lin/PX4-Autopilot/build/px4_fmu-v3_default is not a directory
make: *** [Makefile:230: px4_fmu-v3_default] Error 1


  • 写回答

3条回答 默认 最新

  • 专家-皆知 2024-05-14 00:05
    关注

    请检查依赖库是否安装正确,清理缓存后重新编译。

    以上回复有部分引自免费微信小程序:皆我百晓生。 如问题尚未解决,还请稍待,如有疑问请回复进一步沟通。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 5月23日
  • 已采纳回答 5月15日
  • 创建了问题 5月14日