我已安装protobuffer 3.3.0 form a source code而不是版本2.6.1使用“make”来制作caffe,对其进行测试,并尝试编译faster_rcnn_cplusplus
不幸的是它给了一个错误:
/home/adzhus/Workspace/Faster-RCNN-CPP-1/faster_rcnn_cplusplus/py-faster-rcnn/caffe-fast-rcnn/include/caffe/proto/caffe.pb.h:17:2: error: #error This file was generated by an older version of protoc which is...
路径似乎是正确的。
我还检查了protoc --version
,它给了我libprotoc 3.3.0
,但出于某种原因apt-get upgrade libprotobuf-dev
给了我ibprotobuf-dev is already the newest version (2.6.1-1.3).
有人可以建议如何解决编译错误吗?
答案 0 :(得分:0)
问题解决了我。
我刚刚将caffe.pb.h从...caffe-fast-rcnn/build/src/caffe/proto
复制到...caffe-fast-rcnn/include/caffe/proto