/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9:未定义对“ TIFFReadRGBAStrip@LIBTIFF_4.0”的引用

时间:2018-06-28 10:34:59

标签: python anaconda caffe pycaffe libtiff

我在安装caffe时遇到错误:

[ 92%] Linking CXX executable caffe
[ 92%] Linking CXX executable caffe-fp16.bin
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libSM.so.6: undefined reference to `uuid_generate@UUID_1.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFRGBAImageOK@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0: undefined reference to `_Py_NoneStruct'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFSetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libSM.so.6: undefined reference to `uuid_unparse_lower@UUID_1.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/caffe.bin.dir/build.make:111: recipe for target 'tools/caffe' failed
make[2]: *** [tools/caffe] Error 1
CMakeFiles/Makefile2:536: recipe for target 'tools/CMakeFiles/caffe.bin.dir/all' failed
make[1]: *** [tools/CMakeFiles/caffe.bin.dir/all] Error 2
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libSM.so.6: undefined reference to `uuid_generate@UUID_1.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFRGBAImageOK@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0: undefined reference to `_Py_NoneStruct'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFSetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libSM.so.6: undefined reference to `uuid_unparse_lower@UUID_1.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/caffe-fp16.bin.dir/build.make:111: recipe for target 'tools/caffe-fp16.bin' failed
make[2]: *** [tools/caffe-fp16.bin] Error 1
CMakeFiles/Makefile2:498: recipe for target 'tools/CMakeFiles/caffe-fp16.bin.dir/all' failed
make[1]: *** [tools/CMakeFiles/caffe-fp16.bin.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
(testcaffe) ebb@ebb-XPS-8920:~/caffe-models/caffe-opencl/build$ make clean
(testcaffe) ebb@ebb-XPS-8920:~/caffe-models/caffe-opencl/build$ locate libtiff.so
/home/ebb/anaconda2/envs/testcaffe/lib/libtiff.so
/home/ebb/anaconda2/envs/testcaffe/lib/libtiff.so.5
/home/ebb/anaconda2/envs/testcaffe/lib/libtiff.so.5.2.6
/home/ebb/anaconda2/lib/libtiff.so
/home/ebb/anaconda2/lib/libtiff.so.5
/home/ebb/anaconda2/lib/libtiff.so.5.3.0
/home/ebb/anaconda2/pkgs/libtiff-4.0.8-1/lib/libtiff.so
/home/ebb/anaconda2/pkgs/libtiff-4.0.8-1/lib/libtiff.so.5
/home/ebb/anaconda2/pkgs/libtiff-4.0.8-1/lib/libtiff.so.5.2.6
/home/ebb/anaconda2/pkgs/libtiff-4.0.9-h28f6b97_0/lib/libtiff.so
/home/ebb/anaconda2/pkgs/libtiff-4.0.9-h28f6b97_0/lib/libtiff.so.5
/home/ebb/anaconda2/pkgs/libtiff-4.0.9-h28f6b97_0/lib/libtiff.so.5.3.0
/home/ebb/anaconda2/pkgs/libtiff-4.0.9-he85c1e1_1/lib/libtiff.so
/home/ebb/anaconda2/pkgs/libtiff-4.0.9-he85c1e1_1/lib/libtiff.so.5
/home/ebb/anaconda2/pkgs/libtiff-4.0.9-he85c1e1_1/lib/libtiff.so.5.3.0
/home/ebb/anaconda2/pkgs/libtiff-4.0.9-intel_2/lib/libtiff.so
/home/ebb/anaconda2/pkgs/libtiff-4.0.9-intel_2/lib/libtiff.so.5
/home/ebb/anaconda2/pkgs/libtiff-4.0.9-intel_2/lib/libtiff.so.5.3.0
/opt/intel/intelpython2/lib/libtiff.so
/opt/intel/intelpython2/lib/libtiff.so.5
/opt/intel/intelpython2/lib/libtiff.so.5.3.0
/opt/intel/intelpython2/pkgs/libtiff-4.0.9-intel_2/lib/libtiff.so
/opt/intel/intelpython2/pkgs/libtiff-4.0.9-intel_2/lib/libtiff.so.5
/opt/intel/intelpython2/pkgs/libtiff-4.0.9-intel_2/lib/libtiff.so.5.3.0
/usr/lib/x86_64-linux-gnu/libtiff.so
/usr/lib/x86_64-linux-gnu/libtiff.so.5
/usr/lib/x86_64-linux-gnu/libtiff.so.5.2.4
/usr/local/MATLAB/R2017b/bin/glnxa64/libtiff.so.5
/usr/local/MATLAB/R2017b/bin/glnxa64/libtiff.so.5.0.5

用户建议从conda uninstall libtiff卸载libtiff。但是问题是,在我从anaconda卸载libtiff的同时,它也会删除scikit-image,p枕头,imageio。这给在同一anaconda环境中的其他安装带来了问题。我什至安装了sudo apt-get install libtiff5-dev  你有什么建议?

0 个答案:

没有答案