BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.03k stars 18.7k forks source link

ERROR: This file was generated by an older version of protoc which is incompatible with your Protocol Buffer headers #6827

Open ahndroo opened 5 years ago

ahndroo commented 5 years ago

I'm attempting to build caffe on 18.04 without any Python. I'm getting the following errors:

caffe/include/caffe/proto/caffe.pb.h:17:2: error: #error This file was generated by an older version of protoc which is

error This file was generated by an older version of protoc which is

caffe/include/caffe/proto/caffe.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please

error incompatible with your Protocol Buffer headers. Please

caffe/include/caffe/proto/caffe.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.

error regenerate this file with a newer version of protoc.

The output of protoc --version libprotoc 3.0.0

I'm not using any conda protobuf libraries and the output of: $ whereis protoc protoc: /usr/bin/protoc /usr/share/man/man1/protoc.1.gz

I have no idea where this error is coming from. I checked the /usr/include/google/protobuf/stubs/common.h to see the GOOGLE_PROTOBUF_MIN_LIBRARY_VERSION and it matches the output of protoc --version. Does anyone have any suggestions on where this error could be coming from?

nocleverbutstudyhard commented 3 years ago

Hello! Have you solve the problem? I have the same question.