Gazebo | Ignition | Community
Ask Your Question

how to install google protocol buffers using cmake? [closed]

asked 2019-04-05 15:46:07 -0500

Rishabh6900 gravatar image

I am trying to install gazebo 7 from source in order to use gdb to its full extent so one of it's dependency named ignition messages has its own dependency of "Protobuf", so i need its cmake configuration file which is formed upon building with cmake but till now i have only got autotool specific version of google protocol buffers.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Rishabh6900
close date 2019-06-03 14:35:47.717274

2 Answers

Sort by » oldest newest most voted

answered 2019-04-08 11:50:29 -0500

Carlos Agüero gravatar image

updated 2019-04-09 12:00:28 -0500

You should be able to install the Protobuf dependencies of Ignition Messages with apt:

sudo apt-get install libprotobuf-dev protobuf-compiler libprotoc-dev
edit flag offensive delete link more


The Cmakelists.txt of ignition messages contain the following lines :-

ign_find_package(IgnProtobuf VERSION ${REQ_PROTOBUF_VER} REQUIRED COMPONENTS all PRETTY Protobuf)

So i would either need to add CMAKE_MODULE_PATH to Findprotobuf.cmake, which i am not getting anywhere or i add configuration file of protobuf which also i am not getting anywhere. Please guide what to do.

Rishabh6900 gravatar imageRishabh6900 ( 2019-05-23 09:29:03 -0500 )edit

answered 2019-06-03 14:32:05 -0500

Rishabh6900 gravatar image

updated 2019-06-03 14:34:55 -0500

cd protobuf/cmake

mkdir build

cd build



sudo make install

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-04-05 15:46:07 -0500

Seen: 2,435 times

Last updated: Jun 03 '19