【已解决】ubuntu 16.04 源码编译opencv4.5.1 报错 “../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference t”
源码编译opencv可参考教程:在ubuntu下安装opencv4.1.0详细步骤https://blog.csdn.net/weixin_44003563/article/details/90404745
在操作make -j8的时候报错如下:
[ 25%] Linking CXX executable ../../bin/opencv_annotation
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFReadRGBAStrip@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFReadDirectory@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFWriteEncodedStrip@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFIsTiled@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFWriteScanline@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFGetField@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFScanlineSize@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFWriteDirectory@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFReadEncodedTile@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFReadRGBATile@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFClose@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFClientOpen@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFRGBAImageOK@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFOpen@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFReadEncodedStrip@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFSetField@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFSetWarningHandler@LIBTIFF_4.0"
/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to "TIFFSetErrorHandler@LIBTIFF_4.0"
collect2: error: ld returned 1 exit status
make[2]: *** [apps/annotation/CMakeFiles/opencv_annotation.dir/build.make:95: bin/opencv_annotation] Erro 1
make[1]: *** [CMakeFiles/Makefile2:18408: apps/annotation/CMakeFiles/opencv_annotation.dir/all] Erro 2
make[1]: ** Waiting for other processes to finish.
对比cmake的时候也有警告:
-- Configuring done
CMake Warning at cmake/OpenCVUtils.cmake:1508 (add_library):Cannot generate a safe runtime search path for target opencv_imgcodecsbecause files in some directories may conflict with libraries in implicitdirectories:runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:/home/zhangsan/anaconda3/libruntime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:/home/zhangsan/anaconda3/libruntime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:/home/zhangsan/anaconda3/lib
参考Ubuntu中安装openCV3.4.12编译过程中与Anaconda冲突https://blog.csdn.net/weixin_43592742/article/details/116612141并且在之前安装教程基础上,下载了opencv_contrib并放到opencv目录下,再次按照上述教程执行,就成功了
【已解决】ubuntu 16.04 源码编译opencv4.5.1 报错 “../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference t”相关推荐
- Ubuntu 16.04 源码编译安装 uhd gnuradio
Ubuntu 16.04 源码编译安装 uhd & gnuradio 环境介绍 UHD安装 1 安装依赖 2 编译 3 测试安装结果 4 配置 USB gnuradio安装 1 安装依赖 2 ...
- Ubuntu 16.04源码编译安装Apache 2.4.25教程
这篇文章主要为大家详细介绍了Ubuntu 16.04源码编译安装Apache 2.4.25,具有一定的参考价值,感兴趣的小伙伴们可以参考一下 本文为大家介绍了Ubuntu 16.04源码编译安装Apa ...
- Anaconda Python3.6 OpenCV4.1.0 Ubuntu 16.04源码编译
Anaconda Python3.6 OpenCV4.1.0 Ubuntu 16.04源码编译 转载于:https://blog.csdn.net/phdsky/article/details/782 ...
- Ubuntu 16.04 源码编译安装GPU tensorflow(二)
如前一篇在1.4.0版本的Tensorflow上安裝Tensorflow Object Detection API,在验证测试时出現serialized_options=None问题.需安装高版本Te ...
- ubuntu 编译php5.6,Ubuntu 16.04 源码编译 PHP5.6
源码编译PHP5.6 //更新依赖 sudo apt-get update sudo apt-get install build-essential //安装依赖 sudo apt-get insta ...
- Ubuntu 16.04 源码编译安装PHP7.2.23详细过程
从官网下载源码包 https://www.php.net/downloads.php 打开虚拟机,Ctrl + Alt + T 打开终端 sudo su可以切换超级管理员,不用每次输入命令都带sudo ...
- Ubuntu 16.04源码编译安装nginx 1.10.0
一.下载相关的依赖库 pcre 下载地址 http://120.52.73.43/jaist.dl.sourceforge.net/project/pcre/pcre/8.38/pcre-8.38.t ...
- OpenCPN + Ubuntu 18.04 源码编译 + Codeblocks 调试 + wxFormBuilder 安装
OpenCPN + Ubuntu 18.04 源码编译 文章目录 一.参考资料 二.源码编译流程 三.利用 IDE 编译 四.利用 IDE 调试 四.测试界面开发工具 一.参考资料 OpenCPN - ...
- opencv4.0在linux下编译,Ubuntu 18.04源码编译安装OpenCV 4.0步骤
Ubuntu 18.04下标准常规安装方法安装的OpenCV版本比较低,想尝鲜使用4.0版本,只好源码安装. 安装环境 OS:Ubuntu 18.04 64 bit 显卡:NVidia GTX 108 ...
最新文章
- js之ActiveX控件使用说明 new ActiveXObject()
- Mysql执行计划含义,mysql执行计划介绍
- franz ubuntu_重新审视Unix理念,持续测试,Franz,Gitbase,Python,Linux等
- Postman 设置token为全局变量
- MATLAB 动图绘制、保存
- 《从零开始做运营》心得
- OSPF的Router-LSA和Network-LSA
- 年底大标预备!2019通信招投标大势到底是怎样的?
- 如何用html制作田字格,WPS文字怎么制作田字格 WPS文字制作田字格的方法
- N多的红烧茄子做法!
- 一起弄个微信订阅号鉴黄机器人
- python 对excel的函数操作_自动化报表(3)
- 微博论道:互联网中,帮助过你的老师都有谁呢?
- 详解音视频直播中的低延时 1
- [原][彩]FansUnion独家专访Fans和Wonderful这对“好基友”@HeeHeeMonkey
- java导出excel限制大小_解决java poi导出excel2003不能超过65536行的问题
- internal 和 external
- 结构主义与符号学之间有怎样的关系?
- Vue父子组件prop传值时的问题
- 荷花与美人【 注:诗画皆为 AI 所作】
热门文章
- 腾讯音乐娱乐集团2021Q4及全年业绩稳健:全年总营收增至312.4亿元,同比增长7.2%
- SparkListener监听机制使用及自定义事件处理
- ISO SAE 21434-2021 工作产品(WP)整理
- 联想电脑预装Mcafee(迈克菲)踩坑
- mysql 每隔五分钟/五小时/五天/五月/两年统计一次记录等
- seaweedfs 用docker快速布署及测试
- stm32f1+ov7725进行图像处理
- 项目总结:vue.js2.5饿了么APP(4)主要组件实现 - 购物车相关组件(下)
- [译]通过超市买牛奶来学习缓存
- Qt 设置QGraphicsItem在QGraphicsView中位置不能在左上角的办法