Gazebo | Ignition | Community
Ask Your Question
0

Protobuf version error on Ubuntu 18.04 and gazebo9 [closed]

asked 2018-07-24 15:37:33 -0600

khancyr gravatar image

updated 2018-07-24 15:40:30 -0600

Hello,

I try to build an external plugin with gazebo9 on ubunut 8.04 form OSRF repo and it fails with many error like "/usr/include/ignition/msgs1/ignition/msgs/color.pb.h:17:2: error: #error This file was generated by an older version of protoc which is #error This file was generated by an older version of protoc which is"

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04 LTS
Release:    18.04
Codename:   bionic

dpkg -l | grep gazebo9 
ii  gazebo9                           9.2.0-1~bionic              amd64        Open Source Robotics Simulator
ii  gazebo9-common            9.2.0-1~bionic              all                Open Source Robotics Simulator - Shared files
ii  gazebo9-plugin-base       9.2.0-1~bionic              amd64        Open Source Robotics Simulator - base plug-ins
ii  libgazebo9:amd64           9.2.0-1~bionic              amd64        Open Source Robotics Simulator - shared library
ii  libgazebo9-dev:amd64    9.2.0-1~bionic              amd64        Open Source Robotics Simulator - Development Files

dpkg -l | grep protobuf                                                 2 ↵
ii  libmirprotobuf3:amd64          0.31.1-0ubuntu1                     amd64        Display server for Ubuntu - RPC definitions
ii  libprotobuf-dev:amd64          3.0.0-9.1ubuntu1                    amd64        protocol buffers C++ library (development files)
ii  libprotobuf-lite10:amd64       3.0.0-9.1ubuntu1                    amd64        protocol buffers C++ library (lite version)
ii  libprotobuf10:amd64             3.0.0-9.1ubuntu1                    amd64        protocol buffers C++ library
ii  protobuf-c-compiler               1.2.1-2                                    amd64        Protocol Buffers C compiler (protobuf-c)
ii  protobuf-compiler                  3.0.0-9.1ubuntu1                    amd64        compiler for protocol buffer definition files
ii  python3-protobuf                   3.0.0-9.1ubuntu1                    amd64        Python 3 bindings for protocol buffers

Issue open on gazebo repo too : https://bitbucket.org/osrf/gazebo/iss...

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by khancyr
close date 2018-10-29 14:17:30.105700

1 Answer

Sort by » oldest newest most voted
0

answered 2018-10-29 14:17:06 -0600

khancyr gravatar image

this was due to a conflict between manually installed protoc and apt one : see https://bitbucket.org/osrf/gazebo/iss...

edit flag offensive delete link more

Comments

This link is dead, which is a bummer because I've got the same issue.

ivaughn gravatar imageivaughn ( 2020-07-09 14:14:09 -0600 )edit

OSRF has moved their repo to github. You can find the migrated issue and a script to remove that version of protobuf here. https://github.com/osrf/gazebo/issues...

Bromeara gravatar imageBromeara ( 2020-07-14 23:59:58 -0600 )edit

Hello, The mistake was that I installed google cartographer that compile a fresh version of protoc when Gazebo need the one in the Ubuntu repo. So you need to change your PATH to point to the apt version of protoc to be used by Gazebo. Or remove the other one if you don't use it anymore

khancyr gravatar imagekhancyr ( 2020-07-15 08:27:29 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-07-24 15:37:33 -0600

Seen: 3,715 times

Last updated: Oct 29 '18