blob: 7518c2e42d329bbb78d2444ec5efd37d93ffd121 [file] [log] [blame] [view]
Behdad Esfahbode21921a2016-05-06 15:24:39 +01001On Linux, install the development packages for FreeType,
Ebrahim Byagowi2fb95a02015-10-19 22:02:12 +03302Cairo, 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
Behdad Esfahbod5afebbd2016-01-07 22:53:59 +00008on the Mac, using MacPorts:
Ebrahim Byagowi2fb95a02015-10-19 22:02:12 +03309* sudo port install freetype glib2 cairo
10
Behdad Esfahbod5afebbd2016-01-07 22:53:59 +000011or using Homebrew:
12* brew install freetype glib cairo
13
Ebrahim Byagowi2fb95a02015-10-19 22:02:12 +033014If 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
Chun-wei Fand7b66362015-11-03 19:00:42 +080017under 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.
Ebrahim Byagowi2fb95a02015-10-19 22:02:12 +033020If 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
Behdad Esfahbod5afebbd2016-01-07 22:53:59 +000028on the Mac, using MacPorts:
Ebrahim Byagowi2fb95a02015-10-19 22:02:12 +033029* sudo port install autoconf automake libtool pkgconfig ragel gtk-doc
Behdad Esfahbod5afebbd2016-01-07 22:53:59 +000030
31or using Homebrew:
Behdad Esfahbode21921a2016-05-06 15:24:39 +010032* brew install autoconf automake libtool pkgconfig ragel gtk-doc
33
34To build the Python bindings, you also need:
35
36* brew install pygobject3