Gazebo | Ignition | Community
Ask Your Question
0

Installing Ignition Messages from source generates error in packet.proto

asked 2017-03-24 10:57:07 -0500

ethanabrooks gravatar image

I am following these instructions: http://gazebosim.org/tutorials?tut=in...

Everything goes fine until the step 'Build and install Ignition Messages from source.'

The command make -j4 generates the following error:

[ 26%] Running C++, and Java protocol buffer compiler on packet.proto
[ 26%] ignition/msgs/packet.proto:19:3: Expected "required", "optional", or "repeated".
ignition/msgs/packet.proto:20:3: Missing field number.
make[2]: *** [ignition/msgs/ignition/msgs/packet.pb.cc] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 26%] Running C++, and Java protocol buffer compiler on param.proto
Running C++, and Java protocol buffer compiler on param_v.proto
make[1]: *** [ignition/msgs/CMakeFiles/ignition-msgs0.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX static library libgtest.a
[ 26%] Built target gtest
make: *** [all] Error 2

Assuming this is an issue with protobuf, do I need to install it from source?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-03-24 11:27:42 -0500

chapulina gravatar image

That error is caused by an old protobuf version. That file makes use of the oneof syntax, which I believe is only available from version 2.6,

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-03-24 10:57:07 -0500

Seen: 417 times

Last updated: Mar 24 '17