安装caffe遇到 Makefile:635: recipe for target '.build_release/tools/compute_image_mean.bin' failed

报错

转载链接:https://blog.csdn.net/u011037837/article/details/78439377

.build_release/lib/libcaffe.so:对‘cv::_OutputArray::_OutputArray(cv::Mat&)’未定义的引用
.build_release/lib/libcaffe.so:对‘cv::_InputArray::_InputArray(cv::Mat const&)’未定义的引用
.build_release/lib/libcaffe.so:对‘vtable for cv::_InputArray’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:635: recipe for target '.build_release/tools/compute_image_mean.bin' failed
make: *** [.build_release/tools/compute_image_mean.bin] Error 1

解决办法

Makefile.config里的

#USE_PKG_CONFIG :=

这一行前面的#给去掉,然后在他下一行添加

LIBRARIES += glog gflags protobuf leveldb snappy \
       lmdb boost_system hdf5_hl hdf5 m \
       opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs

你可能感兴趣的:(安装caffe遇到 Makefile:635: recipe for target '.build_release/tools/compute_image_mean.bin' failed)