Open somekindsoffood opened 5 years ago
Hi,you should make sure that you have installed caffe successfully.My protoc version 2.6.1.Then compile this project.Good luck for you!
change to protoc: /usr/bin/protoc
can help to solve your problem
Hi @akbarxie where should i change to protoc: /usr/bin/protoc
/home/dell/anaconda3/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
^ /home/dell/anaconda3/include/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
^ /home/dell/anaconda3/include/caffe/proto/caffe.pb.h:14:2: error: #error your headers.
error your headers.
^ In file included from /home/dell/anaconda3/include/caffe/blob.hpp:9:0, from /home/dell/anaconda3/include/caffe/caffe.hpp:7, from /home/dell/darknet2caffe_yolov3/yolo_layer.h:9, from /home/dell/darknet2caffe_yolov3/box.h:9, from /home/dell/darknet2caffe_yolov3/box.cpp:1: /home/dell/anaconda3/include/caffe/proto/caffe.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory compilation terminated. CMakeFiles/sysDetectSpeed.dir/build.make:83: recipe for target 'CMakeFiles/sysDetectSpeed.dir/box.cpp.o' failed make[2]: [CMakeFiles/sysDetectSpeed.dir/box.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/sysDetectSpeed.dir/all' failed make[1]: [CMakeFiles/sysDetectSpeed.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
I had installed caffe with protoc version 2.6.1. But failed to make this project with the error above. I tried different protoc version of 3.7.1 3.6.1 they all failed. Does someone know how to fix it ? Thanks.
hello,do you solve this problem?
/home/dell/anaconda3/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
^ /home/dell/anaconda3/include/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
^ /home/dell/anaconda3/include/caffe/proto/caffe.pb.h:14:2: error: #error your headers.
error your headers.
^ In file included from /home/dell/anaconda3/include/caffe/blob.hpp:9:0, from /home/dell/anaconda3/include/caffe/caffe.hpp:7, from /home/dell/darknet2caffe_yolov3/yolo_layer.h:9, from /home/dell/darknet2caffe_yolov3/box.h:9, from /home/dell/darknet2caffe_yolov3/box.cpp:1: /home/dell/anaconda3/include/caffe/proto/caffe.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory compilation terminated. CMakeFiles/sysDetectSpeed.dir/build.make:83: recipe for target 'CMakeFiles/sysDetectSpeed.dir/box.cpp.o' failed make[2]: [CMakeFiles/sysDetectSpeed.dir/box.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/sysDetectSpeed.dir/all' failed make[1]: [CMakeFiles/sysDetectSpeed.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
I had installed caffe with protoc version 2.6.1. But failed to make this project with the error above. I tried different protoc version of 3.7.1 3.6.1 they all failed. Does someone know how to fix it ? Thanks.