2016-05-06 14:24:39 +00:00
|
|
|
On Linux, install the development packages for FreeType,
|
2015-10-19 18:32:12 +00:00
|
|
|
Cairo, and GLib. For example, on Ubuntu / Debian, you would do:
|
|
|
|
* sudo apt-get install gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev
|
|
|
|
|
|
|
|
whereas on Fedora, RHEL, CentOS, and other Red Hat based systems you would do:
|
|
|
|
* sudo yum install gcc gcc-c++ freetype-devel glib2-devel cairo-devel
|
|
|
|
|
2017-10-12 08:41:47 +00:00
|
|
|
on Windows, consider using [vcpkg](https://github.com/Microsoft/vcpkg),
|
|
|
|
provided by Microsoft, for building HarfBuzz and other open-source libraries
|
|
|
|
but if you need to build harfbuzz from source, put ragel binary on your
|
|
|
|
PATH and follow appveyor CI's cmake
|
2017-10-12 11:45:49 +00:00
|
|
|
[build steps](https://github.com/behdad/harfbuzz/blob/master/appveyor.yml).
|
2017-10-12 08:41:47 +00:00
|
|
|
|
|
|
|
on macOS, using MacPorts:
|
2015-10-19 18:32:12 +00:00
|
|
|
* sudo port install freetype glib2 cairo
|
|
|
|
|
2016-01-07 22:53:59 +00:00
|
|
|
or using Homebrew:
|
|
|
|
* brew install freetype glib cairo
|
|
|
|
|
2015-10-19 18:32:12 +00:00
|
|
|
If you are using a tarball, you can now proceed to running configure and make
|
|
|
|
as with any other standard package. That should leave you with a shared
|
|
|
|
library in src/, and a few utility programs including hb-view and hb-shape
|
2017-10-12 08:41:47 +00:00
|
|
|
under util/.
|
2015-10-19 18:32:12 +00:00
|
|
|
If you are bootstraping from git, you need a few more tools before you can
|
|
|
|
run autogen.sh for the first time. Namely, pkg-config and ragel. Again,
|
|
|
|
on Ubuntu / Debian:
|
|
|
|
* sudo apt-get install autoconf automake libtool pkg-config ragel gtk-doc-tools
|
|
|
|
|
|
|
|
and on Fedora, RHEL, CentOS:
|
|
|
|
* sudo yum install autoconf automake libtool pkgconfig ragel gtk-doc
|
|
|
|
|
2016-01-07 22:53:59 +00:00
|
|
|
on the Mac, using MacPorts:
|
2015-10-19 18:32:12 +00:00
|
|
|
* sudo port install autoconf automake libtool pkgconfig ragel gtk-doc
|
2016-01-07 22:53:59 +00:00
|
|
|
|
|
|
|
or using Homebrew:
|
2016-05-06 14:24:39 +00:00
|
|
|
* brew install autoconf automake libtool pkgconfig ragel gtk-doc
|
|
|
|
|
|
|
|
To build the Python bindings, you also need:
|
|
|
|
|
|
|
|
* brew install pygobject3
|