Pchank / caffe-sal

Amulet and UCF methods for Saliency Detection
51 stars 19 forks source link

the problem of protobuf? #3

Closed ArchWing closed 6 years ago

ArchWing commented 6 years ago

.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.

^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/layer.hpp:8, from src/caffe/layers/cudnn_softmax_layer.cpp:8: .build_release/src/caffe/proto/caffe.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory

include <google/protobuf/arena.h>

                               ^

compilation terminated. make: *** [.build_release/src/caffe/layers/cudnn_softmax_layer.o] Error 1

ArchWing commented 6 years ago

well my protobuf version is 2.6.1 in sudo enviroment so I guess is not the problem of protobuf but in the errors, it mentioned cudnn so I even comment cudnn and gpu in makefile.config then sudo make all -j8 but I still encounter a similar error

at last I use sudo make all

the problem is gone well , a little bit strange, but now I compile successfully without gpu