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