在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