/usr/local/lib/libopencv_imgcodecs.so.3.2.0:未定义对“ TIFFReadRGBAStrip@LIBTIFF_4.0”的引用

时间:2019-02-18 05:20:15

标签: c++ ubuntu

安装orb_slam2时遇到问题:

wh@903:~/ORB_SLAM2/build$ make -j2  
...

[ 68%] Building CXX object CMakeFiles/mono_kitti.dir/Examples/Monocular/mono_kitti.cc.o  
[ 68%] Building CXX object CMakeFiles/mono_euroc.dir/Examples/Monocular/mono_euroc.cc.o  
[ 71%] Linking CXX executable ../Examples/Monocular/mono_kitti  
[ 75%] Linking CXX executable ../Examples/Monocular/mono_euroc  
/usr/bin/ld: warning: libopencv_core.so.2.4, needed by //usr/lib/x86_64-linux-gnu/libavfilter-ffmpeg.so.5, may conflict with libopencv_c
ore.so.3.2
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFWriteEncodedStrip@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFIsTiled@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFGetField@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFNumberOfStrips@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFReadRGBATile@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFClose@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFRGBAImageOK@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFOpen@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFSetField@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/local/lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
CMakeFiles/mono_kitti.dir/build.make:120: recipe for target '../Examples/Monocular/mono_kitti' failed

wh@903:~/ORB_SLAM2/build$ locate libtiff.so  
/home/wh/anaconda3/lib/libtiff.so
/home/wh/anaconda3/lib/libtiff.so.5
/home/wh/anaconda3/lib/libtiff.so.5.4.0
/home/wh/anaconda3/pkgs/libtiff-4.0.10-h2733197_1001/lib/libtiff.so
/home/wh/anaconda3/pkgs/libtiff-4.0.10-h2733197_1001/lib/libtiff.so.5
/home/wh/anaconda3/pkgs/libtiff-4.0.10-h2733197_1001/lib/libtiff.so.5.4.0
/home/wh/anaconda3/pkgs/libtiff-4.0.9-he85c1e1_2/lib/libtiff.so
/home/wh/anaconda3/pkgs/libtiff-4.0.9-he85c1e1_2/lib/libtiff.so.5
/home/wh/anaconda3/pkgs/libtiff-4.0.9-he85c1e1_2/lib/libtiff.so.5.3.0

似乎我的OpenCV是针对libtiff 4编译的,但是我具有libtiff 5,如何解决此问题?
谢谢!

0 个答案:

没有答案