1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>Building: HarfBuzz Manual</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="index.html" title="HarfBuzz Manual">
8 <link rel="up" href="install-harfbuzz.html" title="Install HarfBuzz">
9 <link rel="prev" href="install-harfbuzz.html" title="Install HarfBuzz">
10 <link rel="next" href="hello-harfbuzz.html" title="Hello, HarfBuzz">
11 <meta name="generator" content="GTK-Doc V1.27.1 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts"></td>
17 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18 <td><a accesskey="u" href="install-harfbuzz.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
19 <td><a accesskey="p" href="install-harfbuzz.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20 <td><a accesskey="n" href="hello-harfbuzz.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
23 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
24 <a name="building"></a>Building</h2></div></div></div>
26 On Linux, install the development packages for FreeType, Cairo, and GLib.
27 For example, on Ubuntu / Debian, you would do:
29 <pre class="programlisting">
30 <span class="command"><strong>sudo apt-get install</strong></span> <span class="package">gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev</span>
33 whereas on Fedora, RHEL, CentOS, and other Red Hat based systems you would do:
35 <pre class="programlisting">
36 <span class="command"><strong>sudo yum install</strong></span> <span class="package">gcc gcc-c++ freetype-devel glib2-devel cairo-devel</span>
41 <pre class="programlisting">
42 <span class="command"><strong>sudo port install</strong></span> <span class="package">freetype glib2 cairo</span>
47 If you are using a tarball, you can now proceed to running
48 <span class="command"><strong>configure</strong></span> and <span class="command"><strong>make</strong></span> as with any
49 other standard package. That should leave you with a shared library in
50 <code class="filename">src/</code>, and a few utility programs including hb-view
51 and hb-shape under <code class="filename">util/</code>.
54 If you are bootstrapping from git, you need a few more tools before you
55 can run <code class="filename">autogen.sh</code> for the first time. Namely,
56 pkg-config and <a class="ulink" href="http://www.complang.org/ragel/" target="_top">ragel</a>.
57 Again, on Ubuntu / Debian:
59 <pre class="programlisting">
60 <span class="command"><strong>sudo apt-get install</strong></span> <span class="package">autoconf automake libtool pkg-config ragel gtk-doc-tools</span>
63 and on Fedora, RHEL, CentOS:
65 <pre class="programlisting">
66 <span class="command"><strong>sudo yum install</strong></span> <span class="package">autoconf automake libtool pkgconfig ragel gtk-doc</span>
71 <pre class="programlisting">
72 <span class="command"><strong>sudo port install</strong></span> <span class="package">autoconf automake libtool pkgconfig ragel gtk-doc</span>
78 <hr>Generated by GTK-Doc V1.27.1</div>