GMT make编译报错:undefined reference to `_TIFFmemcpy@LIBTIFF_4.0'...

在Ubuntu 18.04上编译GMT时遇到链接错误`undefined reference to `_TIFFmemcpy@LIBTIFF_4.0'`。该问题是由于缺失libtiff4库导致的。解决方案包括尝试从官网下载libtiff4-dev的旧版本文件并安装,避免因Ubuntu已升级到libtiff5-dev而找不到相应包的问题。
摘要由CSDN通过智能技术生成

undefined reference to `_TIFFmemcpy@LIBTIFF_4.0’…错误

1.报错及问题说明

报错说明:GMT源码编译,make时报错:linking C executable gmt --undefined reference to `_TIFFmemcpy@LIBTIFF_4.0’…
问题说明:安装opencv时缺少libtiff4库文件(必须安装libtiff4)

2.环境说明

系统:Ubuntu18.04
软件:gmt-6.0.0

3.网上其他解决方案说明(转载至后面是 标题+网址)

1)修改检查编译语句——报其他错误
cmake -D BUILD_TIFF=ON
转载至:
opencv error: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0’
https://blog.csdn.net/qq_35759574/article/details/83507434
2)编译libtiff4源码——编译报错
官网下载文件自行编译
转载至:
在ubuntu下安装opencv和PCL时 undefined reference to TIFFReadDirectory@LIBTIFF_4.0
https://blog.csdn.net/u013372308/article/details/100168

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值