• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1On Linux, install the development packages for FreeType,
2Cairo, and GLib. For example, on Ubuntu / Debian, you would do:
3* sudo apt-get install gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev
4
5whereas on Fedora, RHEL, CentOS, and other Red Hat based systems you would do:
6* sudo yum install gcc gcc-c++ freetype-devel glib2-devel cairo-devel
7
8on the Mac, using MacPorts:
9* sudo port install freetype glib2 cairo
10
11or using Homebrew:
12* brew install freetype glib cairo
13
14If you are using a tarball, you can now proceed to running configure and make
15as with any other standard package. That should leave you with a shared
16library in src/, and a few utility programs including hb-view and hb-shape
17under util/.  From the tarball, NMake Makefiles are also provided in win32/,
18which supports building HarfBuzz using Visual Studio, with a README.txt that
19gives instructions on building using NMake.
20If you are bootstraping from git, you need a few more tools before you can
21run autogen.sh for the first time. Namely, pkg-config and ragel. Again,
22on Ubuntu / Debian:
23* sudo apt-get install autoconf automake libtool pkg-config ragel gtk-doc-tools
24
25and on Fedora, RHEL, CentOS:
26* sudo yum install autoconf automake libtool pkgconfig ragel gtk-doc
27
28on the Mac, using MacPorts:
29* sudo port install autoconf automake libtool pkgconfig ragel gtk-doc
30
31or using Homebrew:
32* brew install autoconf automake libtool pkgconfig ragel gtk-doc
33
34To build the Python bindings, you also need:
35
36* brew install pygobject3
37