给飞控刷固件,飞控是阿木的jcv-600 整机codev dynamics 款,需要刷一下固件,当git clone https://github.com/CodevDynamics/Codev-autopilot --recursive 后 执行[size=0.85em]bash[size=0.85em] ./PXAutopilot/Tools/setup/ubuntu.sh4然后执行make,最后执行[size=0.85em]make[size=0.85em] px4_fmu-v5_default 出错 fly@fly:~/Codev-autopilot$ make px4_fmu-v5_default -- PX4 version: v1.10.0-1.1.6-4-g090fd19cf1 -- PX4 config file: /home/fly/Codev-autopilot/boards/px4/fmu-v5/default.cmake -- PX4 config: px4_fmu-v5_default -- PX4 platform: nuttx -- PX4 lockstep: disabled -- 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) -- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.10") -- Found PY_jinja2: /home/fly/.local/lib/python3.8/site-packages/jinja2 -- PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-64-gdec1ed0 -- Building and including px4_io-v2_default CMake Error at src/drivers/uavcan/CMakeLists.txt:49 (message): UAVCAN_PLATFORM not set
-- Configuring incomplete, errors occurred! See also "/home/fly/Codev-autopilot/build/px4_fmu-v5_default/CMakeFiles/CMakeOutput.log". See also "/home/fly/Codev-autopilot/build/px4_fmu-v5_default/CMakeFiles/CMakeError.log". Error: /home/fly/Codev-autopilot/build/px4_fmu-v5_default is not a directory make: *** [Makefile:195:px4_fmu-v5_default] 错误 1
求指导
eason已获得悬赏 3 阿木币
最佳答案
是子模块问题呀!确保你的网络通畅的。
在源码下面
先 make distclean
接着 make submodulesupdate
再执行 make submodulesclean
如果说都没有报错(子模块更新失败),就可以编译烧写了 ...