感谢填坑勇士:https://www.cnblogs.com/whu-zeng/p/6874307.html

今天编译caffe ,本来编译过无数次caffe了,基本坑都能解决的。但这次惹恼我了。一直搞不定。

错误信息是这样的:

/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFIsTiled@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFOpen@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFSetField@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFGetField@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadEncodedTile@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadRGBATile@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFClose@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFRGBAImageOK@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0' collect2: error: ld returned 1 exit status make[2]: *** [/home/lex/catkin_ws/devel/lib/kinect2_calibration/kinect2_calibration] Error 1 make[1]: *** [iai_kinect2/kinect2_calibration/CMakeFiles/kinect2_calibration.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFIsTiled@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFOpen@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFSetField@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0' /usr/lib/x86_64-linux-

感觉是一个包没有:

网上说装这个包:

sudo apt-get install libtiff4-dev

装好了也没有用。

折腾了半天,索性卸载,然后把 anaconda2下面的 libtiff.so移走。

2064  sudo apt-get remove libtiff4-dev
 2065  locate libtiff.so
 2066  mv /home/zenggq/anaconda2/lib/libtiff.so* ~/zenggq/bak/

再次编译,他成功了,并且在anaconda2下面自动又创建了libtiff.so。

/home/zenggq/anaconda2/lib/libtiff.so

/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.0

估计是冲突了。什么鬼问题都有。既然我填坑了就把它分享给大家。

转载于:https://www.cnblogs.com/leoking01/p/8244616.html

/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFIsTiled@LIBTIFF_4.0'相关推荐

  1. Linux系统下GCC编译错误:“undefined reference to ‘sqrt‘”

    Linux系统下GCC编译错误:"undefined reference to 'sqrt'",解决方法:-lm 数学函数sqrt()位于libm.so库文件中(这些库文件通常位于 ...

  2. linux c 编译报错 Compile error : undefined reference to‘__atomic_fetch_add_4’ 解决方法

    代码如下: #include <opencv2/opencv.hpp> using namespace cv;int main() {Mat img=imread("cornea ...

  3. Linux下载源码编译出错,linux下fortran中编译代码时“undefined reference to `_gfortran_st_”错误...

    在linux系统下fortran与c/c++混合编译的时候出现下列的错误: /mnt/hgfs/subrar/ts/src/extra/../SAVE_DATAQ.f:117: undefined r ...

  4. linux系统下,gsl 编译问题 -undefined reference to `cblas_xxx`

    使用gsl库编译的时候,出现以下错误: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgsl.so: undefined r ...

  5. Linux 无图形化桌面 ** exception error: undefined function observer:start/0

    解决:** exception error: undefined function observer:start/0 问题 1.当在无图形化桌面的Linux(这里是在 Win10 应用商店版 Ubun ...

  6. mingw linux socket,MingW上编译WinSocket程序undefined reference to `WSAStartup@8'报错的解决办法...

    在Mingw stdio上编译Windows Socket程序经常出现这样的错误 undefined reference to `inet_addr@4' undefined reference to ...

  7. php /usr/lib/libjpeg.so.62,linux PHP的装配

    linux PHP的安装 2. 红帽Linux PHP 2.1. 安装linux PHP 查看系统是否自带了php,若自带先卸载,否则安装后会出错. (1)下载php源文件php-5.3.6.tar. ...

  8. Linux 里有/lib和/usr/lib,这两个目录下的库文件有什么区别吗?如果没区别为什么又要分开放呢...

    有区别的. /lib里面给的是root和内核所需so或者a之类的库文件,而/usr/lib是普通用户能够使用的. Linux的程序有两种模式,这个你应该知道,是用户模式和内核模式,和这个也是有关系的, ...

  9. linux控制编译so 位数,Linux下解决64位下Apache编译模块时/usr/lib/libexpat.so问题

    Linux下给apache编译libapreq2模块时候报错:/usr/lib/libexpat.so: could not read symbols: File in wrong format 尝试 ...

最新文章

  1. Callgrind--函数调用分析工具以及可视化方法
  2. HDU3183(ST表)
  3. qt跟随鼠标动态绘制_采用Qt快速绘制多条曲线(折线),跟随鼠标动态显示线上点的值(基于Qt的开源绘图控件QCustomPlot进行二次开发)...
  4. mysql数据库导入后莫名丢失,oracle导入丢失数据库
  5. SQL语法之DDL和DML
  6. c语言中的fock方法输出hello,涉及fork()的C程序输出的说明
  7. win8.1 USB启动盘制作(不支持UEFI,不支持GPT分区)
  8. 将在本地创建的Git仓库push到Git@OSC
  9. leetcode(189) 旋转数组
  10. frontcon函数用不了_真香警告!用了XLOOKUP再也回不去VLOOKUP了
  11. OAuth2.0授权协议的一个简单解释
  12. bzoj1015 [JSOI2008]星球大战 并查集
  13. Spring文件中的xsd文件
  14. python docx 删除表格
  15. 年薪200万是怎样的一种体验?
  16. linux性能监控工具-nmon安装使用详细教程
  17. 如何自己组装电脑(从配件到整机)来省下一大笔钱
  18. 网易2016研发工程师编程题--完全解析
  19. C Primer Plus中文 第6版勘误表
  20. 开启硬件辅助虚拟化——Intel虚拟化之旅

热门文章

  1. ignite服务中的bean注入为空
  2. Android中Spinner下拉列表(使用ArrayAdapter和自定义Adapter实现)
  3. 骑行广州大学城 外环十大校门
  4. love2d--glsl03噪声
  5. 35岁前务必成功的12级跳(男女通用) 转
  6. Smartmail外贸CRMBuild1.0版使用说明书
  7. Python学习教程(Python学习视频_Python学些路线):Day05 总结和练习
  8. 企业高管眼中的 SAP 和「智慧企业」| 品读中国企业数字化转型的故事
  9. Tomcat通过Redis实现session共享的完整部署记录
  10. poj——2771 Guardian of Decency