安装caffe ,undefined reference to `TIFFReadRGBAStrip@LIB解决办法

有时候安装caffe,总会有各种奇怪的问题,像下面这种问题经常出现:

[ 97%] Linking CXX executable ssd/ssd_detect
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFWriteEncodedStrip@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFIsTiled@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `_TIFFfree@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFGetField@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFNumberOfStrips@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFWriteDirectory@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFReadRGBATile@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFClose@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFClientOpen@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFRGBAImageOK@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFOpen@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFSetField@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `_TIFFmalloc@LIBTIFF_4.0'
/usr/local/opencv3.4/lib/libopencv_imgcodecs.so.3.4.1: undefined reference to `TIFFReadScanline@LIBTIFF_4.0

最终,通过查找发现一个解决办法:

conda remove libtiff

也就是说TIFF的库发生了冲突,主要是anaconda惹的祸!

 

原链接:https://github.com/Russell91/apollocaffe/issues/11

 

你可能感兴趣的:(安装caffe ,undefined reference to `TIFFReadRGBAStrip@LIB解决办法)