OpenCV LIBTIFF_4.0 link errors
以前用Caffe用的好好的,今天重装后居然报了很多这样的错误
/usr/lib/libopencv_highgui.so.2.4: undefined reference to TIFFRGBAImageOK@LIBTIFF_4.0' 1> /usr/lib/libopencv_highgui.so.2.4: undefined reference toTIFFReadRGBAStrip@LIBTIFF_4.0'
貌似libtiff4-dev也是装了的。重装opencv也没用,最后在这里找到了解决方案:
http://answers.opencv.org/question/35642/libtiff_40-link-errors/
解决方法是在cmake时加入下面参数
-D BUILD_TIFF=ON