1. 程式人生 > >#error This file was generated by a newer version of protoc

#error This file was generated by a newer version of protoc

[email protected]:/raid0/workspace/houjun/caffe-ssd$ sudo make all -j8
PROTOC src/caffe/proto/caffe.proto
CXX src/caffe/layers/softmax_loss_layer.cpp
CXX src/caffe/layers/power_layer.cpp
CXX src/caffe/layers/accuracy_layer.cpp
CXX src/caffe/layers/threshold_layer.cpp
CXX src/caffe/layers/concat_layer.cpp
CXX src/caffe/layers/infogain_loss_layer.cpp
CXX src/caffe/layers/absval_layer.cpp
CXX src/caffe/layers/tile_layer.cpp
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/layers/concat_layer.hpp:6,
                 from src/caffe/layers/concat_layer.cpp:3:
/usr/local/include/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

 

安裝protoc-2.6.1

刪除/usr/local/include/caffe/下所有檔案

重新編譯