u014307272
nihaodemaa
采纳率50%
2018-05-01 04:45

编译opencv3.4.1出现异常

20
已采纳

//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to TIFFReadDirectory@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to
TIFFIsTiled@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to TIFFDefaultStripSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to
TIFFReadTile@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to TIFFWriteScanline@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to
_TIFFfree@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to TIFFGetField@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to
TIFFScanlineSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to TIFFTileSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to
TIFFWriteDirectory@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to TIFFClose@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to
TIFFGetFieldDefaulted@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFNumberOfDirectories@LIBTIFF_4.0'

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • Arno_e Arno_e 3年前

    cmake -D BUILD_TIFF=ON

    点赞 评论 复制链接分享
  • u014307272 nihaodemaa 3年前

    cmake -D BUILD_TIFF=ON我试过这个方法,好像没解决,我通过安装libtiff_tool库解决了

    点赞 1 评论 复制链接分享