2 building and installing ttfautohint from git
3 --------------------------------------------
5 Building ttfautohint from the git repository needs some tools which are not
6 required when building from a release:
15 The version numbers in parentheses are known to work. Newer versions should
22 to clone the `gnulib' repository (which gets installed as a git submodule),
23 to build the `configure' script, and to set up necessary auxiliary files.
24 Then you can proceed with the instructions given in the `INSTALL' file with
25 the exception that parellel builds with `make -j' are not supported yet.
27 Some additional remarks for compilation within the MinGW environment.
29 o Since MSYS, the shell of MinGW, uses LF as line endings, `git checkout'
30 should not convert files to CRLF. Before checking out the FreeType and
31 ttfautohint repositories, you should issue the command
33 git config --global core.autocrlf input
35 to avoid any line ending conversion.
37 o At the time of this writing (January 2012), compilation of FreeType with
38 gcc bundles 4.6.1-2 or 4.6.2-1 fail. Instead, you should use version
39 4.5.2-1. Unfortunately, mingw-get is not able yet to download and
40 install a particular version; it always installs the newest one. Some
41 manual work is necessary to overcome this restriction, as described by
43 http://sourceforge.net/mailarchive/message.php?msg_id=28753845):
45 > So what's the trick to access a specific release in a meta data
48 At present, the only way is to manually edit the XML manifest file,
49 (it is $MINGW_GET_ROOT/var/lib/mingw-get/data/mingw32-gcc4.xml), to
50 remove all of the <release ... /> references for any versions which
51 are newer, (i.e. have a greater version number), than the particular
52 one you want to install.
54 If you would also like to preserve such changes, so that they will not
55 be reverted by a subsequent 'mingw-get update', then you may wish to
56 change the issue attribute, in the <software-distribution ... /> tag,
57 from issue="2011122200" to something like issue="ZZZZZZZZZZ".
59 o To compile a stand-alone version of ttfautohint, first compile a static
60 version of Qt. I've successfully followed these instructions:
62 http://www.formortals.com/build-qt-static-small-microsoft-intel-gcc-compiler/
64 Now configure and compile ttfautohint using
66 configure --with-qt=DIR
67 make LDFLAGS=-all-static