g3force / ssl-autonomous-refbox

Automatically exported from code.google.com/p/ssl-autonomous-refbox
0 stars 0 forks source link

Old protobuf Version, pb incompatible #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile with Protobuf 2.4.1 or 2.3.0
2. See following output:
In file included from sslvision.h:8,
                 from gamearea.h:6,
                 from gamearea.cc:9:
../proto/messages_robocup_ssl_detection.pb.h:16:2: error: #error This file was 
generated by an older version of protoc which is
../proto/messages_robocup_ssl_detection.pb.h:17:2: error: #error incompatible 
with your Protocol Buffer headers. Please
../proto/messages_robocup_ssl_detection.pb.h:18:2: error: #error regenerate 
this file with a newer version of protoc.

What is the expected output? What do you see instead?
What protobuf version is needed? In googlecode only 2.4.1 and 2.3.0 are 
available...

What version of the product are you using? On what operating system?
latest (r3)
Ubuntu 10.04

Please provide any additional information below.

Original issue reported on code.google.com by nicolai....@gmail.com on 3 Sep 2011 at 10:02

GoogleCodeExporter commented 9 years ago
I managed to compile the project now. The protobuf version, that is needed, is 
2.2.0. This can be found in the repositories for Ubuntu 10.04.

Original comment by nicolai....@gmail.com on 6 Sep 2011 at 12:27

GoogleCodeExporter commented 9 years ago
This issue was actually not related to the protobuf version. The project 
compiles well with the latest version of protobuf.
As the error message states, the .pb.h files were compiled with the wrong 
compiler version. This might happen, if you compiled the project and changed 
the protobuf version afterwards.

Solution:
Do a rm proto/*.h proto/*.cc in the projects root and compile again.
make clean won't fix this in r3, as there is no clean routine for proto...

Original comment by nicolai....@gmail.com on 23 Oct 2011 at 9:00