如何修复hb-ft.h使用jhbuild安装pango时没有这样的文件或目录?

时间:2016-06-02 16:24:51

标签: freetype pango jhbuild harfbuzz

我有所有依赖项,因为我无法修复此错误我从头开始安装freetype和harfbuzz仍然无法修复此致命错误但此文件(hb-ft.h)存在于 /usr/include/harfbuzz/hb-ft.h和 jhbuild /结帐/的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]

1 个答案:

答案 0 :(得分:1)

我在jhbuild中构建pango之前看到过这个错误。

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

jhbuild buildone -afc harfbuzz

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