error This file was generated by a newer version of protoc
来源:互联网 发布:mac可以装谷歌浏览器吗 编辑:程序博客网 时间:2024/06/05 10:44
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
解决方案
I solved this on my computer and maybe it can help you. My environment is Ubuntu16.04, and I installed Anaconda(for python2.7) before I install Caffe. It happens that I used conda to install libprotobuf-dev, and this leads to conflict with the caffe's 'sudo apt-get install libprotobuf-dev' command, for 'apt-get' and conda installed different on my computer which can be find by 'locate protobuf', so I remove the Anaconda's version of libprotobuf, and no problem happens again.
conda uninstall libprotobuf
When you install tensorflow before install Caffe, this problem will also happen, because of the libprotobuf conflict.
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
解决方案
I solved this on my computer and maybe it can help you. My environment is Ubuntu16.04, and I installed Anaconda(for python2.7) before I install Caffe. It happens that I used conda to install libprotobuf-dev, and this leads to conflict with the caffe's 'sudo apt-get install libprotobuf-dev' command, for 'apt-get' and conda installed different on my computer which can be find by 'locate protobuf', so I remove the Anaconda's version of libprotobuf, and no problem happens again.
conda uninstall libprotobuf
When you install tensorflow before install Caffe, this problem will also happen, because of the libprotobuf conflict.
阅读全文
0 0
- 编译pycaffe错误 --#error This file was generated by a newer version of protoc
- error This file was generated by a newer version of protoc
- caffe.pb.h This file was generated by a newer version of protoc
- proto/caffe.pb.h:17:2: error: #error This file was generated by an older version of protoc
- 解决方案: the selected file is a solution file but was created by a newer version of this application an
- fatal error C1189: #error : "This file was generated using the moc from 4.4.3. It
- fatal error C1189: #error : "This file was generated using the moc from 4.4.3. It
- this error was generated by TI's USCIF driver解决办法汇总
- SEED-XDS510仿真器报错:this error was generated by TI's USCIF driver解决办法汇总
- 解决MySQL导入文件问题(The selected file was generated by mysqldump and cannot be restored by this applicati)
- object file (xx.a(xx.o)) was built for newer iOS version (10.3) than being linked (10.2)
- How to Take Ownership of a File/Folder Using Command-Line in Windows 7 or newer version System
- matlab(This error was detected while a MEX-file was running)
- 升级XCode8编译报错:“Module file was created by an older version of the compiler”
- nifi Error(ExecuteScript): is not the most recent version of this flow file within this session
- "A more recent version of this document is supported by this" JPA persistence.xml问题
- Binlog has bad magic number; It's not a binary log file that can be used by this version of MySQL
- “(null)” is of a model that is not supported by this version of Xcode. Ple
- 面试分享:一年经验初探阿里巴巴前端社招
- 【第三方框架】Glid4.4 完全学习(未完待续)
- (10)jQuery其他知识
- 7.1
- Latex画图
- error This file was generated by a newer version of protoc
- 持续集成 之 Jenkins
- 面试分享:一年经验初探阿里巴巴前端社招
- 各版本的anaconda下载地址
- 重载new 和delete
- [python]example-one-bug
- python编程中的if __name__ == 'main' 的作用和原理
- 【更新】四种WinRAR永久去广告方法
- 今天周五,我要赶紧敲完代码