下载完caffe安装包,在make时出现了
1.nvcc warning : The 'compute_20', 'sm_20', and 'sm21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
解决办法:可以在Makefile.config 中将compute20和sm_20的20改成61
2.出现的error:
.build_release/lib/libcaffe.so: undefined reference to `cv::imread(cv::String const&, int)'
.build_release/lib/libcaffe.so: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/upgrade_solver_proto_text.bin] Error 1
解决办法:因为caffe和OpenCV版本匹配问题,需要将Makefile.config 中的OPENCV_VERSION := 3前的注释去掉