error: #error regenerate this file with a newer version of protoc.
Ubuntu 16.04
, ROS Kinetic
, Gazebo 7.0
报错:
n file included from /usr/include/gazebo7/gazebo/msgs/MessageTypes.hh:91:0,from /usr/include/gazebo7/gazebo/msgs/msgs.hh:24,from /usr/include/gazebo7/gazebo/physics/Entity.hh:28,from /usr/include/gazebo7/gazebo/physics/Model.hh:32,from /home/thesis/gazebo_animate_pose/animate_pose.cc:4:
/usr/include/gazebo7/gazebo/msgs/wrench_stamped.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
/usr/include/gazebo7/gazebo/msgs/wrench_stamped.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
/usr/include/gazebo7/gazebo/msgs/wrench_stamped.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
查看protoc版本,高于
2.6.1:
$ protoc --version
往下执行:
删除原有库:
cd /usr/local/include/google
sudo rm -rf protobuf
下载新的包:protobuf-2.6.1.tar.gz
https://github.com/protocolbuffers/protobuf/releases?after=v3.0.0-alpha-1
安装:
$ ./autogen.sh
$ ./configure
$ make
$ make check
$ sudo make install
$ sudo ldconfig
参考:https://github.com/protocolbuffers/protobuf/tree/master/src
原文:http://answers.gazebosim.org/question/18096/this-file-was-generated-by-an-older-version-of-protoc/
我的微信公众号名称:深度学习与先进智能决策
微信公众号ID:MultiAgent1024
公众号介绍:主要研究强化学习、计算机视觉、深度学习、机器学习等相关内容,分享学习过程中的学习笔记和心得!期待您的关注,欢迎一起学习交流进步!
error: #error regenerate this file with a newer version of protoc.相关推荐
- This file was generated by an older version of protoc 解决方法
在编译与gazebo相关的包时常常会出现protoc版本冲突问题,从而导致编译失败,如下图: In file included from /usr/include/gazebo7/gazebo/msg ...
- .bashrc: line 123: syntax error: unexpected end of file
今天在Ubuntu上面配置Java环境,使用下面指令进入之后,好像对文件进行了修改. sudo vim ~/.bashrc 使用 source ~/.bashrc 报错如下: bash: .bashr ...
- linux 内核编译错误 gcc: error: elf_i386: No such file or directory
编译内核出现以下错误 CC arch/x86/mm/mmio-mod.oLD arch/x86/mm/mmiotrace.oLD arch/x86/mm/built-in.oCC arch/x86/c ...
- Eclipse europa 更新时 Error retrieving feature.xml. [error in opening zip file]
Eclipse europa 更新时 Error retrieving "feature.xml". [error in opening zip file]的解决 2009-06- ...
- oracle no such file or directory,ORA-09925 Linux-x86_64 Error: 2: No such file or directory
DBCA***数据库所有实例后,本想用RMAN duplicate方式克隆DB,因此在$ORACLE_BASE目录下创建了相关的目录admin/dupl/adump ,admin/dupl/dpump ...
- innobackupex --rsync 报错 Error: can't create file (null)/xtrabackup_rsyncfiles_pass1
在使用最新版的innobackupex(2.3.2): innobackupex /backup --rsync --user=xx --password=xxx 备份时报错: Error: can' ...
- shell:syntax error:unexpected end of file/Starting proxy www-balancer: cannot bind socket--转载
src:http://www.2cto.com/os/201308/238962.html 执行某bash脚本是发生: syntax error: unexpected end of file 主要问 ...
- 完美解决LINK : fatal error LNK1104: cannot open file Debug/xx.exe的问题
问题: 运行VC时总出现 Linking- LINK : fatal error LNK1104: cannot open file "Debug/xx.exe" Erro ...
- Node提示:error code Z_BUF_ERROR,error error -5,error zlib:unexpected end of file
场景 npm 执行npm install 时提示: error code Z_BUF_ERROR,error error -5,error zlib:unexpected end of file 注: ...
- pygame.mixer.Sound()语句提示错误:pygame.error: Unable to open file 'test.wav'
环境:Win10.python3.6.5.pygame( version 1.9.3) 在使用pygame创建一个wav文件时,代码如下: import pygame class Player:# c ...
最新文章
- 盘启动盘_[装机]推荐唯二的两个开源免费的启动盘工具,轻松创建USB启动盘
- 是什么调性_协调性训练 | 单脚跳
- Linux正則表達式-定位元字符
- linux命令详解:md5sum命令
- 【MFC系列-第23天】CMemoryDC的封装过程
- emailjava中怎么校验_Java使用注解实现参数统一校验功能
- java jvm对象_Java对象在JVM中长啥样
- springboot启动报错LoggerFactory is not a Logback LoggerContext but Logback...
- mysql cluster proxy_GitHub - freedaxin/maya: a mysql cluster proxy powered by node.js
- DataTable 类(一)表结果操作
- 1. crontab 简介
- 图片标注工具Labelme使用
- BiCubic双三次插值算法进行上采样python与matlab代码实现
- 【Python项目】贪吃蛇小游戏
- Okhttp简单介绍
- ardupilot 中关键坐标系
- ubuntu16.04(虚拟机) 上MPD(Music Player Daemon)+MPC运行环境搭建
- android画布裁剪圆角,Android 视图圆角化处理方案
- yolov5m.pt下载
- 如何排查网络丢包问题