2016-05-06 16:24:39 +02:00
|
|
|
On Linux, install the development packages for FreeType,
|
2015-10-19 20:32:12 +02:00
|
|
|
Cairo, and GLib. For example, on Ubuntu / Debian, you would do:
|
2018-01-02 18:15:18 +01:00
|
|
|
|
|
|
|
sudo apt-get install gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev
|
2015-10-19 20:32:12 +02:00
|
|
|
|
|
|
|
whereas on Fedora, RHEL, CentOS, and other Red Hat based systems you would do:
|
2018-01-02 18:15:18 +01:00
|
|
|
|
|
|
|
sudo yum install gcc gcc-c++ freetype-devel glib2-devel cairo-devel
|
2015-10-19 20:32:12 +02:00
|
|
|
|
2020-03-13 12:10:07 +01:00
|
|
|
on Windows, consider using [vcpkg](https://github.com/Microsoft/vcpkg)
|
|
|
|
or `meson build && ninja -Cbuild`.
|
2017-10-12 10:41:47 +02:00
|
|
|
|
|
|
|
on macOS, using MacPorts:
|
2018-01-02 18:15:18 +01:00
|
|
|
|
|
|
|
sudo port install freetype glib2 cairo
|
2015-10-19 20:32:12 +02:00
|
|
|
|
2016-01-07 23:53:59 +01:00
|
|
|
or using Homebrew:
|
2018-01-02 18:15:18 +01:00
|
|
|
|
|
|
|
brew install freetype glib cairo
|
2016-01-07 23:53:59 +01:00
|
|
|
|
2015-10-19 20:32:12 +02: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
|
2018-01-02 18:15:18 +01:00
|
|
|
library in `src/`, and a few utility programs including `hb-view` and `hb-shape`
|
|
|
|
under `util/`.
|
|
|
|
|
2018-10-19 17:49:21 +02:00
|
|
|
If you are bootstrapping from git, you need a few more tools before you can
|
2018-01-02 18:15:18 +01:00
|
|
|
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
|
2015-10-19 20:32:12 +02:00
|
|
|
|
|
|
|
and on Fedora, RHEL, CentOS:
|
2018-01-02 18:15:18 +01:00
|
|
|
|
|
|
|
sudo yum install autoconf automake libtool pkgconfig ragel gtk-doc
|
2015-10-19 20:32:12 +02:00
|
|
|
|
2016-01-07 23:53:59 +01:00
|
|
|
on the Mac, using MacPorts:
|
2018-01-02 18:15:18 +01:00
|
|
|
|
|
|
|
sudo port install autoconf automake libtool pkgconfig ragel gtk-doc
|
2016-01-07 23:53:59 +01:00
|
|
|
|
|
|
|
or using Homebrew:
|
2018-01-02 18:15:18 +01:00
|
|
|
|
|
|
|
brew install autoconf automake libtool pkgconfig ragel gtk-doc
|
2016-05-06 16:24:39 +02:00
|
|
|
|
|
|
|
To build the Python bindings, you also need:
|
|
|
|
|
2018-01-02 18:15:18 +01:00
|
|
|
brew install pygobject3
|