怎样编译安装harfbuzz

2016年11月16日 | 分类: 【技术】

harfbuzz依赖 glib-2.0、gobject-2.0。

GLib-2.48.1 (required for Pango), ICU-57.1 and FreeType-2.6.5 (after HarfBuzz-1.2.7 is installed, reinstall FreeType-2.6.5)

编译安装glib:

参考:https://amon.org/glib

编译安装gobject:

参考:https://amon.org/gobject

编译安装harfbuzz:

参考:http://www.linuxfromscratch.org/blfs/view/svn/general/harfbuzz

官网:https://freedesktop.org/wiki/Software/HarfBuzz/
下载:https://www.freedesktop.org/software/harfbuzz/release/

目前最新稳定版本是harfbuzz-1.2.7 (2016-05-02)。

wget https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.2.7.tar.bz2
tar -jxf harfbuzz-1.2.7.tar.bz2 && cd harfbuzz-1.2.7
./configure --prefix=/usr --with-gobject
make && make install

输出:

...
Libraries have been installed in:
   /usr/local/png/lib
...
make[1]: Leaving directory `/root/libpng-1.6.23'

更新系统动态连接库配置:

echo /usr/local/png/lib >> /etc/ld.so.conf && ldconfig

编译安装完成。