caffe编译过程中protobuf的问题

问题描述:make caffe时提示:

.build_release/src/caffe/proto/caffe.pb.h:31387:42: error: ‘kEmptyString’ is not a member of ‘google::protobuf::internal’

     type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
                                          ^
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘void caffe::V0LayerParameter::clear_source()’:
.build_release/src/caffe/proto/caffe.pb.h:31743:19: error: ‘kEmptyString’ is not a member of ‘google::protobuf::internal’
   if (source_ != &::google::protobuf::internal::kEmptyString) {
                   ^

.

.省略无数行

.

.build_release/src/caffe/proto/caffe.pb.cc: In member function ‘virtual void caffe::V0LayerParameter::Clear()’:
.build_release/src/caffe/proto/caffe.pb.cc:41951:21: error: ‘kEmptyString’ is not a member of ‘google::protobuf::internal’
       if (name_ != &am
  • 4
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Caffe是一个深度学习框架,它依赖于protobufProtocol Buffers)。目前,Caffe可以使用protobuf 3.6.0来编译。因此,如果你想将Caffe与TensorFlow一起使用,你需要调整依赖项版本,确保使用的是protobuf-3.6.0版本来编译Caffe。 关于protobuf的版本,你提到了一个问题与相关的引用内容。你提到Caffe装了3.3.0版本,但你需要的是3.6.0版本。你通过pip的list命令查看了已安装的包,发现安装了protobuf 3.6.0。为了满足你的需求,你打算卸载protobuf 3.6.0。 综上所述,Caffeprotobuf的版本相关。Caffe可以使用protobuf 3.6.0来编译,并且你可以通过卸载安装了的protobuf 3.6.***<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [Caffe,protobuf 编译安装](https://blog.csdn.net/Tosonw/article/details/91043145)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [【深度学习】CaffeProtobuf版本问题](https://blog.csdn.net/phdsky/article/details/80994090)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值