|
Packit |
874993 |
On Linux, install the development packages for FreeType,
|
|
Packit |
874993 |
Cairo, and GLib. For example, on Ubuntu / Debian, you would do:
|
|
Packit |
874993 |
* sudo apt-get install gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev
|
|
Packit |
874993 |
|
|
Packit |
874993 |
whereas on Fedora, RHEL, CentOS, and other Red Hat based systems you would do:
|
|
Packit |
874993 |
* sudo yum install gcc gcc-c++ freetype-devel glib2-devel cairo-devel
|
|
Packit |
874993 |
|
|
Packit |
874993 |
on the Mac, using MacPorts:
|
|
Packit |
874993 |
* sudo port install freetype glib2 cairo
|
|
Packit |
874993 |
|
|
Packit |
874993 |
or using Homebrew:
|
|
Packit |
874993 |
* brew install freetype glib cairo
|
|
Packit |
874993 |
|
|
Packit |
874993 |
If you are using a tarball, you can now proceed to running configure and make
|
|
Packit |
874993 |
as with any other standard package. That should leave you with a shared
|
|
Packit |
874993 |
library in src/, and a few utility programs including hb-view and hb-shape
|
|
Packit |
874993 |
under util/. From the tarball, NMake Makefiles are also provided in win32/,
|
|
Packit |
874993 |
which supports building HarfBuzz using Visual Studio, with a README.txt that
|
|
Packit |
874993 |
gives instructions on building using NMake.
|
|
Packit |
874993 |
If you are bootstraping from git, you need a few more tools before you can
|
|
Packit |
874993 |
run autogen.sh for the first time. Namely, pkg-config and ragel. Again,
|
|
Packit |
874993 |
on Ubuntu / Debian:
|
|
Packit |
874993 |
* sudo apt-get install autoconf automake libtool pkg-config ragel gtk-doc-tools
|
|
Packit |
874993 |
|
|
Packit |
874993 |
and on Fedora, RHEL, CentOS:
|
|
Packit |
874993 |
* sudo yum install autoconf automake libtool pkgconfig ragel gtk-doc
|
|
Packit |
874993 |
|
|
Packit |
874993 |
on the Mac, using MacPorts:
|
|
Packit |
874993 |
* sudo port install autoconf automake libtool pkgconfig ragel gtk-doc
|
|
Packit |
874993 |
|
|
Packit |
874993 |
or using Homebrew:
|
|
Packit |
874993 |
* brew install autoconf automake libtool pkgconfig ragel gtk-doc
|
|
Packit |
874993 |
|
|
Packit |
874993 |
To build the Python bindings, you also need:
|
|
Packit |
874993 |
|
|
Packit |
874993 |
* brew install pygobject3
|