You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 24.04下编译安装Harfbuzz时遭遇undefined reference相关错误的求助

Ubuntu 24.04下编译安装Harfbuzz时遭遇undefined reference相关错误的求助

大家好,我在Ubuntu 24.04环境里编译安装Harfbuzz的时候卡壳了,折腾半天没找到头绪,想请各位大佬帮忙看看问题出在哪。

我先按步骤克隆了Harfbuzz的仓库:

raphy@raohy:~/Downloads$ git clone https://github.com/harfbuzz/harfbuzz.git
Cloning into 'harfbuzz'...
remote: Enumerating objects: 107603, done.
remote: Counting objects: 100% (16756/16756), done.
remote: Compressing objects: 100% (852/852), done.
remote: Total 107603 (delta 16245), reused 16030 (delta 15904), pack-reused 90847 (from 1)
Receiving objects: 100% (107603/107603), 100.17 MiB | 31.79 MiB/s, done.
Resolving deltas: 100% (81744/81744), done.

进入仓库目录后,尝试自定义include路径执行meson配置时,系统提示目录已配置:

raphy@raohy:~/Downloads$ cd harfbuzz/
raphy@raohy:~/Downloads/harfbuzz$ 

raphy@raohy:~/Downloads/harfbuzz$ meson setup --includedir unicode /usr/local/include/unicode
Directory already configured.

之后我尝试创建新的build目录重新初始化构建,但运行到C compiler环节就出现了undefined reference相关错误(内容没截全,核心是链接阶段报错):

raphy@raohy:~/Downloads/harfbuzz$ meson build
The Meson build system
Version: 1.3.2
Source dir: /home/raphy/Downloads/harfbuzz
Build dir: /home/raphy/Downloads/harfbuzz/buila
Build type: native build
Project name: harfbuzz
Project version: 10.0.1
C compiler...

我现在搞不清是meson的配置参数写错了,还是系统缺少某个依赖导致的链接问题,有没有大佬能指点下排查方向或者解决办法?

备注:内容来源于stack exchange,提问作者Raphy Ubuntu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 13:58:07