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.相关推荐

  1. This file was generated by an older version of protoc 解决方法

    在编译与gazebo相关的包时常常会出现protoc版本冲突问题,从而导致编译失败,如下图: In file included from /usr/include/gazebo7/gazebo/msg ...

  2. .bashrc: line 123: syntax error: unexpected end of file

    今天在Ubuntu上面配置Java环境,使用下面指令进入之后,好像对文件进行了修改. sudo vim ~/.bashrc 使用 source ~/.bashrc 报错如下: bash: .bashr ...

  3. 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 ...

  4. Eclipse europa 更新时 Error retrieving feature.xml. [error in opening zip file]

    Eclipse europa 更新时 Error retrieving "feature.xml". [error in opening zip file]的解决 2009-06- ...

  5. 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 ...

  6. innobackupex --rsync 报错 Error: can't create file (null)/xtrabackup_rsyncfiles_pass1

    在使用最新版的innobackupex(2.3.2): innobackupex /backup --rsync --user=xx --password=xxx 备份时报错: Error: can' ...

  7. 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 主要问 ...

  8. 完美解决LINK : fatal error LNK1104: cannot open file Debug/xx.exe的问题

    问题:  运行VC时总出现  Linking-  LINK : fatal error LNK1104: cannot open file "Debug/xx.exe"  Erro ...

  9. 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 注: ...

  10. 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 ...

最新文章

  1. 盘启动盘_[装机]推荐唯二的两个开源免费的启动盘工具,轻松创建USB启动盘
  2. 是什么调性_协调性训练 | 单脚跳
  3. Linux正則表達式-定位元字符
  4. linux命令详解:md5sum命令
  5. 【MFC系列-第23天】CMemoryDC的封装过程
  6. emailjava中怎么校验_Java使用注解实现参数统一校验功能
  7. java jvm对象_Java对象在JVM中长啥样
  8. springboot启动报错LoggerFactory is not a Logback LoggerContext but Logback...
  9. mysql cluster proxy_GitHub - freedaxin/maya: a mysql cluster proxy powered by node.js
  10. DataTable 类(一)表结果操作
  11. 1. crontab 简介
  12. 图片标注工具Labelme使用
  13. BiCubic双三次插值算法进行上采样python与matlab代码实现
  14. 【Python项目】贪吃蛇小游戏
  15. Okhttp简单介绍
  16. ardupilot 中关键坐标系
  17. ubuntu16.04(虚拟机) 上MPD(Music Player Daemon)+MPC运行环境搭建
  18. android画布裁剪圆角,Android 视图圆角化处理方案
  19. yolov5m.pt下载
  20. 如何排查网络丢包问题

热门文章

  1. lesson6 DAAD转换与单片机接口
  2. Asp.net使用HttpResponse.Filter 实现简繁/繁简转换
  3. 系统登陆后自动注销的解决办法!
  4. web安全day41:三种典型渗透测试流程
  5. Security+ 学习笔记6 了解漏洞的类型
  6. MPLS virtual private network OptionC实验(华为设备)
  7. PIM SM报文抓包和总结
  8. OSPFv3中LSA详解(四)——Link LSA详解
  9. 2021年软考网络工程师备考资料
  10. PHP 统计一个字符串,在另一个字符串中出现次数