gpt4 book ai didi

computer-vision - caffe:protobuf 版本错误

转载 作者:行者123 更新时间:2023-12-04 19:01:25 26 4
gpt4 key购买 nike

我之前已经安装了 caffe 和 Fast-RCNN,所以我应该拥有所有必需的库和依赖项。

我需要为另一个使用 Caffe 的存储库( https://github.com/ronghanghu/natural-language-object-retrieval )再次安装它。

当我跑

make all

它给了我以下错误:
CXX .build_release/src/caffe/proto/caffe.pb.cc
In file included from .build_release/src/caffe/proto/caffe.pb.cc:5:0:
.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 .build_release/src/caffe/proto/caffe.pb.cc:5:0:
.build_release/src/caffe/proto/caffe.pb.h:26:55: fatal error: google/protobuf/generated_enum_reflection.h: No such file or directory
#include <google/protobuf/generated_enum_reflection.h>

compilation terminated.
make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1

我想也许 protobuf 已经更新,并尝试
protoc --version

返回
libprotoc 2.5.0

似乎已经发布了新版本的 protobuf(2.6 或更高版本)。

所以我的问题是:

1)有没有简单的方法来更新它?

2)如果我更新它,它会影响我之前安装的caffe和fast-rcnn,这取决于旧版本的protobuf吗?

最佳答案

我怀疑您的问题是您的包含路径中有多个版本的 protobuf。它可能会从旧版本而不是最新版本中获取标题。我可以确认最新的 caffe(现在是 git master)针对 ubuntu 14.04LTS 中的 libprotobuf-dev-2.5.0-9ubuntu1 编译干净。

关于computer-vision - caffe:protobuf 版本错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36678292/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com