[HarfBuzz] Building from github on Mac OS X

James Clark jjc at jclark.com
Fri Nov 1 03:39:39 PDT 2013


A few more notes.

- If you don't have glib installed, then HarfBuzz won't build hb-shape. I
wanted this so I had to install glib (make sure you get the latest version:
some earlier versions get compile errors):

http://ftp.gnome.org/pub/gnome/sources/glib/2.39/glib-2.39.0.tar.xz

which requires libffi:

ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz

(Do this before installing pkg-config and you avoid the need for
configuring --with-internal-glib.)

- glib also needs gettext, so I installed that after building it (OS X also
provides its own BSD gettext library; not sure if this will cause conflicts)

- I noticed that the Xcode command-line tools install a libtool in
/usr/bin, so it's probably not necessary to install libtool.

James


On Fri, Nov 1, 2013 at 1:43 PM, James Clark <jjc at jclark.com> wrote:

> Building HarfBuzz from the github repository on OS X (Mavericks) turned
> into quite an involved process.  I was doing this by hand.  Next time I
> would try homebrew.
>
> Most of the complexity was caused by gtk-doc.
>
> Anyway, here are my notes.   Unfortunately, I made these only after the
> event, so I may have missed a few details.
>
> You'll need Xcode and the command line tools for Xcode (available from
> https://developer.apple.com/downloads/index.action). You'll then need to
> install the following.  Unless otherwise stated, use "./configure; make;
> sudo make install".
>
> * Automake and friends (needed by harfbuzz)
>
> http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
> http://ftpmirror.gnu.org/automake/automake-1.14.tar.gz
> http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
>
> * pkg-config (needed by harfbuzz)
>
> http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
>
> Configure with --with-internal-glib
>
> * Ragel (needed by harfbuzz)
>
> http://www.complang.org/ragel/ragel-6.8.tar.gz
>
> * ITS Tool (needed by gtk-doc)
>
> http://files.itstool.org/itstool/itstool-1.2.0.tar.bz2
>
> * XZ utils (needed to unpack gtk-doc)
>
> http://tukaani.org/xz/xz-5.0.5.tar.gz
>
> * Python libxml2 module (needed by itstool)
>
> Download and unpack
>
> http://xmlsoft.org/sources/libxml2-2.9.1.tar.gz
>
> cd to the the python/ subdirectory and do
>
> python setup.py build
> sudo python setup.py install
>
> * DocBook (needed by gtk-doc):
>
> Unpack
>
> http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip
>
> into say /usr/local/share/docbook/dtd
>
> Unpack
>
>
> http://sourceforge.net/projects/docbook/files/docbook-xsl/1.78.1/docbook-xsl-1.78.1.zip/download
>
> and rename to /usr/local/share/docbook/xsl
>
> Create a /usr/local/share/docbook/catalog.xml containing:
>
> <?xml version='1.0'?>
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
> <nextCatalog catalog="dtd/catalog.xml"/>
> <nextCatalog catalog="xsl/catalog.xml"/>
> </catalog>
>
> * gettext-tools (needed by gtk-doc)
>
> Configure and make gettext (but don't install it):
>
> http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.3.1.tar.gz
>
> Add gettext-0.18.3.1/gettext-tools to your PATH while making gtk-doc.
>
> * gtk-doc (needed by harfbuzz)
>
> Download:
>
> http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.19/gtk-doc-1.19.tar.xz
>
> Unpack with xzcat gtk-doc-1.19.tar.xz | tar xf -
>
> Configure with
>
> ./configure --with-xml-catalog=/usr/local/share/docbook/catalog.xml
>
> Then make and install.
>
> * HarfBuzz
>
> Finally do
>
> ./autogen.sh
>
> in the harfbuzz directory.
>
> James
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20131101/b687bd1d/attachment.html>


More information about the HarfBuzz mailing list