caffe编译出现:Makefile:657: recipe for target '.build_release/tools/convert_imageset.bin' failed

具体问题:

.build_release/lib/libcaffe-nv.so: undefined reference to `cv::Mat::Mat(cv::Mat const&, cv::Rect_const&)'
collect2: error: ld returned 1 exit status
Makefile:657: recipe for target '.build_release/tools/convert_imageset.bin' failed
make: *** [.build_release/tools/convert_imageset.bin] Error 1
collect2: error: ld returned 1 exit status
Makefile:657: recipe for target '.build_release/tools/compute_image_mean.bin' failed
make: *** [.build_release/tools/compute_image_mean.bin] Error 1
.build_release/lib/libcaffe-nv.so: undefined reference to `cv::Mat::Mat(cv::Mat const&, cv::Rect_const&)'

解决办法:

可以看到主要是OPENCV类的问题,所以编辑一下Makefile.config文件。
输入命令vim Makefile.config,然后把其中的USE_OPENCV :=0前面加上“#”号,然后按ESC键,输入“”,再输入“wq”保存退出。
接着输入命令make clean将之前错误的编译给清除掉,然后重新编译make all

你可能感兴趣的:(caffe编译出现:Makefile:657: recipe for target '.build_release/tools/convert_imageset.bin' failed)