caffe bug notes

1 . 点击打开链接python caffe报错:No module named google.protobuf.internal


2 . #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer headers. Please regenerate this file with a newer version of protoc.


reason: two or more versions have been installed, remove old version, keep python(anaconda2) and sys's version same. 

solution: http://blog.csdn.net/liuxin2012a/article/details/54178141

http://www.linuxdiyf.com/linux/23425.html

http://blog.csdn.net/ahbbshenfeng/article/details/52065676



3. .

build_debug/lib/libcaffe.so:对‘std::__throw_out_of_range_fmt(char const*, ...)’未定义的引用
collect2: error: ld returned 1 exit status
make: *** [.build_debug/tools/convert_imageset.bin] 错误 1
make: *** 正在等待未完成的任务....
.build_debug/lib/libcaffe.so:对‘std::__throw_out_of_range_fmt(char const*, ...)’未定义的引用
collect2: error: ld returned 1 exit status
make: *** [.build_debug/tools/compute_image_mean.bin] 错误 1
.build_debug/lib/libcaffe.so:对‘std::__throw_out_of_range_fmt(char const*, ...)’未定义的引用
collect2: error: ld returned 1 exit status
make: *** [.build_debug/tools/upgrade_net_proto_text.bin] 错误 1
.build_debug/lib/libcaffe.so:对‘std::__throw_out_of_range_fmt(char const*, ...)’未定义的引用
collect2: error: ld returned 1 exit status
make: *** [.build_debug/tools/upgrade_net_proto_binary.bin] 错误 1


Actually, I don't know about this error. It is strange. However, I am sure that this error is appeared after I degrade G++ and Gcc. 

At the beginning, my system is install the version g++-4.8 and gcc-4.8, in order to build matlab wrapper, I degrade them to g++-4.7 and gcc-4.7

But, I failed, then I awared that I made a mistake until I want to uninstalled old version of g++ and gcc 

------------------------I upgraded g++ and gcc to the version of 4.9, so foolish! So maybe that's the reason for that error.

a specific expression is cuda and other software are built with g++4.8 , while caffe is built with g++4-9. Different versions make conflict.

so I uninstalled g++-4.9, preserved original version for ubuntu14.04 ---------- g++-4.8

make caffe

other errors:

/usr/lib/libprotobuf.so:对‘std::__throw_out_of_range_fmt(char const*, ...)’未定义的引用
collect2: error: ld returned 1 exit status
make: *** [.build_debug/tools/convert_imageset.bin] 错误 1
make: *** 正在等待未完成的任务....
/usr/lib/libprotobuf.so:对‘std::__throw_out_of_range_fmt(char const*, ...)’未定义的引用
collect2: error: ld returned 1 exit status
make: *** [.build_debug/tools/compute_image_mean.bin] 错误 1
/usr/lib/libprotobuf.so:对‘std::__throw_out_of_range_fmt(char const*, ...)’未定义的引用
collect2: error: ld returned 1 exit status
make: *** [.build_debug/tools/upgrade_net_proto_text.bin] 错误 1
/usr/lib/libprotobuf.so:对‘std::__throw_out_of_range_fmt(char const*, ...)’未定义的引用
collect2: error: ld returned 1 exit status
make: *** [.build_debug/tools/upgrade_net_proto_binary.bin] 错误 1


similar to the former one. but not! We can see it is caused by protobuf. so I reinstall this software(I build it by myself). re-build caffe

sudo make all -j4

finally succeed!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值