如何在使用 JHbuild 安装 Pango 时修复 HB-FT.H 没有这样的文件或目录



我有所有的依赖项,因为我无法修复这个错误,我从头开始安装了freetype和harfbuzz仍然无法修复这个致命错误,但这个文件(HB-ft.h)存在于/usr/include/harfbuzz/hb-ft.h 和jhbuild/checkout/harfbuzz/src/hb-ft.h

In file included from pango-ot-buffer.c:24:0:
pango-ot-private.h:29:19: fatal error: hb-ft.h: No such file or directory
compilation terminated.
Makefile:1387: recipe for target 'pango-ot-buffer.lo' failed
make[4]: *** [pango-ot-buffer.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
pangofc-shape.c:30:19: fatal error: hb-ft.h: No such file or directory
compilation terminated.
Makefile:1387: recipe for target 'pangofc-shape.lo' failed
make[4]: *** [pangofc-shape.lo] Error 1
pangoft2-render.c: In function ‘pango_ft2_font_render_glyph’:
pangoft2-render.c:224:3: warning: ‘pango_ft2_font_get_face’ is deprecated: Use 'pango_fc_font_lock_face' instead [-Wdeprecated-declarations]
   face = pango_ft2_font_get_face (font);
   ^
In file included from pangoft2-private.h:26:0,
                 from pangoft2-render.c:37:
../pango/pangoft2.h:125:9: note: declared here
 FT_Face        pango_ft2_font_get_face     (PangoFont       *font);
         ^
In file included from pango-ot-info.c:34:0:
pango-ot-private.h:29:19: fatal error: hb-ft.h: No such file or directory
compilation terminated.
Makefile:1387: recipe for target 'pango-ot-info.lo' failed
make[4]: *** [pango-ot-info.lo] Error 1
make[4]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango/pango'
Makefile:1469: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango/pango'
Makefile:1212: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango/pango'
Makefile:579: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango'
Makefile:468: recipe for target 'all' failed
make: *** [all] Error 2
*** Error during phase build of pango: ########## Error running make -j 5  *** [7/7]

我之前在 jhbuild 中构建 pango 时见过这个错误。

解决方案:打开一个新终端并尝试 -

jhbuild buildone -afc harfbuzz

成功构建后,重新运行 pango 模块的阶段构建。希望对您有所帮助!

最新更新