caffe-yolov3 icon indicating copy to clipboard operation
caffe-yolov3 copied to clipboard

What protoc version does this project needs?

Open somekindsoffood opened this issue 5 years ago • 4 comments

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

somekindsoffood avatar Jun 05 '19 03:06 somekindsoffood

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!

ChenYingpeng avatar Jun 06 '19 01:06 ChenYingpeng

change to protoc: /usr/bin/protoc
can help to solve your problem

akbarxie avatar Jul 05 '19 10:07 akbarxie

Hi @akbarxie where should i change to protoc: /usr/bin/protoc

sainisanjay avatar Sep 17 '19 09:09 sainisanjay

/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?

wolfworld6 avatar Jun 02 '20 05:06 wolfworld6