GMT--general mapping tools
undefined reference to `[email protected]_4.0’…错误
1.报错及问题说明
报错说明:GMT源码编译,make时报错:linking C executable gmt --undefined reference to `[email protected]_4.0’…
问题说明:安装opencv时缺少libtiff4库文件(必须安装libtiff4)
2.环境说明
系统:Ubuntu18.04
软件:gmt-6.0.0
3.网上其他解决方案说明(转载至后面是 标题+网址)
1)修改检查编译语句——报其他错误
cmake -D BUILD_TIFF=ON
转载至:
opencv error: undefined reference to `[email protected]_4.0’
https://blog.csdn.net/qq_35759574/article/details/83507434
2)编译libtiff4源码——编译报错
官网下载文件自行编译
转载至:
在ubuntu下安装opencv和PCL时 undefined reference to [email protected]_4.0
https://blog.csdn.net/u013372308/article/details/100168651
3)sudo apt-get install libtiff4-dev——找不到文件夹
由于ubuntu18.04更新到了libtiff5-dev;因此系统会报:找不到相关软件包
4.解决方案
上文提到的解决方案2和3,个人觉得有道理;但可能会报其他错误。
针对方案3-直接安装dev文件:
本文在官网找到了相关文件
http://security.ubuntu.com/ubuntu/pool/main/t/tiff/?_ga=2.44285987.602798382.1586856667-2046780020.1586856667
下载libtiff4-dev前缀的文件即可,本文下载的是_4.0.3-7_amd64.deb;
下载后,双击用系统带的软件管理器安装即可。