| 
 | 
 
 
发表于 2022-5-29 19:43:50
 8374 浏览  3 回复
                                 
 
 
[新手上路]
编译px4报错v1.11.1-21.1.15' does not match the expected format
                                
 
prometheus问答
| 提问前请先确定以下问题:: | 
是  | 
 
| 第一步:问题BUG描述: | 
运行make amovlab_sitl_default gazebo报错,系统重新安装了也还是不行,编译px4官方的代码也是同样的报错,前面几步都执行成功着。报错显示 
FAILED: src/lib/version/build_git_version.h  
cd /home/ma-px4/px4/prometheus_px4 && /usr/bin/python3 /home/ma-px4/px4/prometheus_px4/src/lib/version/px_update_git_header.py /home/ma-px4/px4/prometheus_px4/build/px4_sitl_default/src/lib/version/build_git_version.h --validate 
Error: the git tag \'19:25:43.080286 git.c:344               trace: built-in: git describe --always --tags --dirty,v1.11.1-21.1.15\' does not match the expected format, 
The expected format is \'v<PX4 version>[-<custom version>]\' 
  <PX4 version>: v<major>.<minor>.<patch>[-rc<rc>|-beta<beta>] 
  <custom version>: <major>.<minor>.<patch> 
Examples: 
  v1.9.0rc3 (deprecated) 
  v1.9.0-rc3 (preferred) 
  v1.9.0-beta1 
  v1.9.0-1.0.0 
See also https://dev.px4.io/master/en/setup/building_px4.html#firmware_version 
 
[214/732] Building CXX object src/lib/.../avoidance.dir/ObstacleAvoidance.cpp.o 
ninja: build stopped: subcommand failed. 
Makefile:224: recipe for target \'px4_sitl\' failed 
make: *** [px4_sitl] Error 1  | 
 
| 第二步:PX4版本是否为Prometheus_PX4_V1.11.1分支?: | 
是 Prometheus_PX4_V1.11.1  | 
 
| 第三步:测试prometheus_px4是否正常: | 
不正常  | 
 
| 第四步:Prometheus版本是否为最新master?: | 
是master版本  | 
 
| 第五步:测试Prometheus是否正常: | 
否  | 
 
 
 
  扫一扫浏览分享 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
| 
 | 
 
 
发表于 2022-6-1 09:09:10
                                 
 
 
make distclean 
make submodulesupdate 
make submodulesclean |   
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
| 
 | 
 
 
发表于 2024-4-27 19:07:43
                                 
 
 
你好大佬,请问您解决这个问题了吗?解决的话可不可以给我说一下怎解决的?我也遇到这个问题了然后一直被卡住 
v1.11.1-22.7.28' does not match the expected format. 
 
The expected format is 'v<PX4 version>[-<custom version>]' 
  <PX4 version>: v<major>.<minor>.<patch>[-rc<rc>|-beta<beta>] 
  <custom version>: <major>.<minor>.<patch> 
Examples: 
  v1.9.0rc3 (deprecated) 
  v1.9.0-rc3 (preferred) 
  v1.9.0-beta1 
  v1.9.0-1.0.0 |   
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
| 
 | 
 
是在Ubuntu18.04下配置的吗,Vl在Ubuntu20.04下不支持的 |   
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
 
 
         
  
         
 |