0

阿木币

0

精华

3 小时

在线时间

应届白菜

Rank: 1

发表于 2021-9-13 16:47:23 18888 浏览 11 回复

make px4_fmu-v5_default 出错

给飞控刷固件,飞控是阿木的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 如果说都没有报错(子模块更新失败),就可以编译烧写了 ...

扫一扫浏览分享
回复

使用道具 举报

176

阿木币

0

精华

349 小时

在线时间

版主

Rank: 7Rank: 7Rank: 7

发表于 2021-9-13 16:50:52
默认是刷好固件的哦   你这还在编译阶段 编译的问题吧   如果买了jcv600并且固件没有自己加功能的话 可以试下联系售后索要固件
回复 点赞

使用道具 举报

0

阿木币

0

精华

3 小时

在线时间

应届白菜

Rank: 1

 楼主| 发表于 2021-9-13 16:59:57
maxiou 发表于 2021-9-13 16:50
默认是刷好固件的哦   你这还在编译阶段 编译的问题吧   如果买了jcv600并且固件没有自己加功能的话 可以试 ...

我是想要加一些功能,所以编译这个包,生成固件,然后刷。出现这个错误,我看阿木有个帖子说包没下完,我用的是外网git clone的,应该不是包没下载完的原因。
回复 点赞

使用道具 举报

176

阿木币

0

精华

349 小时

在线时间

版主

Rank: 7Rank: 7Rank: 7

发表于 2021-9-13 17:23:14
13093349511 发表于 2021-9-13 16:59
我是想要加一些功能,所以编译这个包,生成固件,然后刷。出现这个错误,我看阿木有个帖子说包没下完,我 ...

你子模块都更新好了没
回复 点赞

使用道具 举报

0

阿木币

0

精华

3 小时

在线时间

应届白菜

Rank: 1

 楼主| 发表于 2021-9-13 17:35:46
maxiou 发表于 2021-9-13 17:23
你子模块都更新好了没

git submodule update --recursive 没反应
回复 点赞

使用道具 举报

106

阿木币

1

精华

394 小时

在线时间

技术大V

Rank: 4

发表于 2021-9-14 09:10:34
请使用 make codev_dp1000_default upload 指令进行编译烧写固件。硬件不是pixhawk4,所以编译指令不一样
回复 点赞

使用道具 举报

0

阿木币

0

精华

3 小时

在线时间

应届白菜

Rank: 1

 楼主| 发表于 2021-9-14 09:18:34 来自手机
eason 发表于 2021-9-14 09:10
请使用 make codev_dp1000_default upload 指令进行编译烧写固件。硬件不是pixhawk4,所以编译指令不一样 ...

在Codev-autopilot下make codev_dp1000_default 报同样的错误UAVCAN_PLATFORM not set
回复 点赞

使用道具 举报

106

阿木币

1

精华

394 小时

在线时间

技术大V

Rank: 4

发表于 2021-9-14 09:22:39
是子模块问题呀!确保你的网络通畅的。
在源码下面
先 make distclean
接着 make submodulesupdate
再执行 make submodulesclean
如果说都没有报错(子模块更新失败),就可以编译烧写了
回复 点赞

使用道具 举报

0

阿木币

0

精华

20 小时

在线时间

应届白菜

Rank: 1

发表于 2021-9-14 17:42:42
还是子模块没下载全的问题,看下大小,完整的应该是500m左右
回复 点赞

使用道具 举报

0

阿木币

0

精华

3 小时

在线时间

应届白菜

Rank: 1

 楼主| 发表于 2021-9-14 18:07:33 来自手机
18810260063 发表于 2021-9-14 17:42
还是子模块没下载全的问题,看下大小,完整的应该是500m左右

用外网下的,我看有700多M,尝试下了好几个版本的包,还是不能用
回复 点赞

使用道具 举报

下一页 »
12下一页
返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表