Gazebo | Ignition | Community
Ask Your Question

Installing Ignition Messages from source generates error in packet.proto

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

ethanabrooks gravatar image

I am following these instructions:

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/] 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

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

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


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

Seen: 427 times

Last updated: Mar 24 '17