hszhao / PSPNet

Pyramid Scene Parsing Network, CVPR2017.
https://hszhao.github.io/projects/pspnet
Other
1.59k stars 545 forks source link

protobuf version issue #17

Open amiltonwong opened 7 years ago

amiltonwong commented 7 years ago

Hi, @hszhao ,

Which version of protobuf do you use? Mine is 2.5.0 and it isn't compatible with PSPNet package.

root@milton-OptiPlex-9010:/data/code/PSPNet# make all
CXX .build_release/src/caffe/proto/caffe.pb.cc
In file included from .build_release/src/caffe/proto/caffe.pb.cc:5:0:
.build_release/src/caffe/proto/caffe.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^
.build_release/src/caffe/proto/caffe.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^
.build_release/src/caffe/proto/caffe.pb.h:14:2: error: #error your headers.
 #error your headers.
  ^
.build_release/src/caffe/proto/caffe.pb.h:22:35: fatal error: google/protobuf/arena.h: No such file or directory
 #include <google/protobuf/arena.h>
                                   ^
compilation terminated.
make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1
root@milton-OptiPlex-9010:/data/code/PSPNet# ldconfig
root@milton-OptiPlex-9010:/data/code/PSPNet# make all
CXX .build_release/src/caffe/proto/caffe.pb.cc
In file included from .build_release/src/caffe/proto/caffe.pb.cc:5:0:
.build_release/src/caffe/proto/caffe.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^
.build_release/src/caffe/proto/caffe.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^
.build_release/src/caffe/proto/caffe.pb.h:14:2: error: #error your headers.
 #error your headers.
  ^
.build_release/src/caffe/proto/caffe.pb.h:22:35: fatal error: google/protobuf/arena.h: No such file or directory
 #include <google/protobuf/arena.h>
                                   ^
compilation terminated.
make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1
root@milton-OptiPlex-9010:/data/code/PSPNet#
pultarmi commented 6 years ago

Hi, I am having a similar problem, but in my case it says (I don't know why make messes output like this)

`CXX .build_release/src/caffe/proto/caffe.pb.cc In file included from .build_release/src/caffe/proto/caffe.pb.cc:4:0: .build_release/src/caffe/proto/caffe.pb.h:17:2: error: #error This file was generated by an older ver sion of protoc which is

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

^~~~~ .build_release/src/caffe/proto/caffe.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please

error incompatible with your Protocol Buffer headers. Please

^~~~~ .build_release/src/caffe/proto/caffe.pb.h:19:2: error: #error regenerate this file with a newer versi on of protoc.

error regenerate this file with a newer version of protoc.

^~~~~ In file included from .build_release/src/caffe/proto/caffe.pb.cc:4:0: .build_release/src/caffe/proto/caffe.pb.h:1182:10: error: ‘PROTOBUF_CONSTEXPR’ does not name a type static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = ^~~~~~ .build_release/src/caffe/proto/caffe.pb.h:1300:10: error: ‘PROTOBUF_CONSTEXPR’ does not name a type static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = ^~~~~~ ` etc. (there are many errors like the last two then)

I have protobuf version 3.6.0.