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!


猜你喜欢

转载自blog.csdn.net/chengzhongxuyou/article/details/54293985
今日推荐