在Linux编译Caffe时遇到如下错误:
build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)'
参考build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)'
在Makefile中添加代码:
ifeq ($(USE_OPENCV), 2)
LIBRARIES += opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs
endif