Protobuf version mismatch error [terminate called after throwing an instance of 'google::protobuf::FatalException']
Ubuntu 18.04, Ros melodic and gazebo-9.
When launching gazebo-ros using this launch file, It throws the following error,
[libprotobuf FATAL google/protobuf/stubs/common.cc:67] This program requires version 3.12.0 of the Protocol Buffer runtime library, but the installed version is 3.0.0. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "google/protobuf/any.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): This program requires version 3.12.0 of the Protocol Buffer runtime library, but the installed version is 3.0.0. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "google/protobuf/any.pb.cc".)
[spawn_multirotor-4] process has finished cleanly
log file: /home/kotaru/.ros/log/835b290a-d900-11ea-a9b6-d07e353b7469/spawn_multirotor-4*.log
Aborted (core dumped)
[gazebo-2] process has died [pid 5081, exit code 134, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode worlds/empty.world __name:=gazebo __log:=/home/kotaru/.ros/log/835b290a-d900-11ea-a9b6-d07e353b7469/gazebo-2.log].
log file: /home/kotaru/.ros/log/835b290a-d900-11ea-a9b6-d07e353b7469/gazebo-2*.log
I can see that issue is with the protobuf version, and I tried sudo apt-get install libprotobuf-dev
, it shows that,
libprotobuf-dev is already the newest version (3.0.0-9.1ubuntu1).
I also installed 3.12.0 from https://github.com/protocolbuffers/protobuf, that doesn't seem to help as well.
Any help/thoughts/solutions to fix this issue is greatly appreciated.
Thank you