go-fitz使用问题“unrecognized relocation”

mooonpdf 依赖开源的 pdf 库 go-fitz,而 go-fitz 又依赖开源的 c 库 mupdf,对 ld 版本要求,2.23 版本的 ld 编译报错:

go/pkg/mod/github.com/gen2brain/go-fitz@v1.22.2/libs/libmupdf_linux_amd64.a(colorspace.o): unrecognized relocation (0x2a) in section `.text.fz_find_icc_link'

需要将 ld 升级到 2.28 版本。ld 在开源的 binutils 中,下载地址:

https://ftp.gnu.org/gnu/binutils/

另外种方式从重新编译 mupdf 开始:

https://github.com/ArtifexSoftware/mupdf

而 mupdf 又依赖 ghostpdl:

https://github.com/plangrid/ghostpdl/tree/master

所有最好是通过升级 binutils 的方式解决。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值