caffe.pb.h This file was generated by a newer version of protoc
2017-08-21 17:28
483 查看
caffe.pb.h This file was generated by a newer version of protoc
网上有种解决办法,针对的是系统中安装了anaconda,导致系统中有多个版本的protobuf,可参考下面博客解决:http://blog.csdn.net/u013498583/article/details/74231058
但我的系统中,并没有安装anaconda,找了半天也就一个版本的protobuf 2.5.0,可采用如下办法解决:
1、将protobuf里面的proto.ext复制粘贴到caffe文件夹下面的\src\caffe\proto里(已存在caffe.proto文件)
查看proto.exe位置:which protoc
2、打开终端,输入命令:protoc caffe.proto --cpp_out=./
生成caffe.pb.h文件
3、 将caffe.pb.h 文件粘贴到 caffe\include\caffe\proto
4、重新编译caffe:sudo make all -j4
网上有种解决办法,针对的是系统中安装了anaconda,导致系统中有多个版本的protobuf,可参考下面博客解决:http://blog.csdn.net/u013498583/article/details/74231058
但我的系统中,并没有安装anaconda,找了半天也就一个版本的protobuf 2.5.0,可采用如下办法解决:
1、将protobuf里面的proto.ext复制粘贴到caffe文件夹下面的\src\caffe\proto里(已存在caffe.proto文件)
查看proto.exe位置:which protoc
2、打开终端,输入命令:protoc caffe.proto --cpp_out=./
生成caffe.pb.h文件
3、 将caffe.pb.h 文件粘贴到 caffe\include\caffe\proto
4、重新编译caffe:sudo make all -j4
相关文章推荐
- error This file was generated by a newer version of protoc
- 编译pycaffe错误 --#error This file was generated by a newer version of protoc
- Mac OS build caffe2 Error:This file was generated by an older version of protoc which is
- 解决方案: the selected file is a solution file but was created by a newer version of this application and cannot be opened
- 解决方案: the selected file is a solution file but was created by a newer version of this application an
- 解决方案: the selected file is a solution file but was created by a newer version of this application an
- Invalid configuation file. File "**********" was created by a VMware product with more feature than this version of VMware Workstation and cannot be
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- gdal错误:ERROR 4: This is a BigTIFF file. BigTIFF is not supported by this version of
- 解决MySQL导入文件问题(The selected file was generated by mysqldump and cannot be restored by this applicati)
- VMware:Configuration file was created by a VMware product with more features than this version
- 升级XCode8编译报错:“Module file was created by an older version of the compiler”
- This iPhone 6 is running iOS 10.2 (14C92), which may not be supported by this version of Xcode.
- Vmware9.0打开早期版本报错:this virtual machine’s policies are too old to be run by this version of vmware workstation”
- “(null)” is of a model that is not supported by this version of Xcode. Please use a different device.
- fatal error C1189: #error : "This file was generated using the moc from 4.4.3. It
- iPhone may be running a version of iOS that is not supported by this version of Xcode
- 解决 this virtual machine’s policies are too old to be run by this version of vmware workstation”
- Autogrow of file '******' in database '******' was cancelled by user or timed out after ****** milli
- iOS This iPhone 6s等 is running iOS 10.1 (14B72), which may not be supported by this version of Xcode