Robotics StackExchange | Archived questions

how to install google protocol buffers using cmake?

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.

Asked by Rishabh6900 on 2019-04-05 15:46:07 UTC

Comments

Answers

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

sudo apt-get install libprotobuf-dev protobuf-compiler libprotoc-dev

Asked by Carlos Agüero on 2019-04-08 11:50:29 UTC

Comments

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.

Asked by Rishabh6900 on 2019-05-23 09:29:03 UTC

cd protobuf/cmake

mkdir build

cd build

cmake....

make...

sudo make install

Asked by Rishabh6900 on 2019-06-03 14:32:05 UTC

Comments