Synchronize with FreeType. [4/6]
[ttfautohint.git] / INSTALL.git
bloba480c92d2100762b08010d9411afad19bd3e5023
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:
8   autoconf (2.65)
9   automake (1.13)
10   git (1.5.5)
11   libtool (2.2.2)
13 If you configure to build the documentation files also (which are normally
14 distributed with the release package), the following is necessary:
16   help2man (1.40.1)
17   pandoc (1.11.1)
18   inkscape (0.48.2)
19   X11
20   ImageMagick (6.7.4)
21   pdflatex (TeXLive 2011)
23 The version numbers in parentheses are known to work.  Newer versions should
24 work also.
26 Say
28   ./bootstrap
30 to clone the `gnulib' repository (which gets installed as a git submodule),
31 to build the `configure' script, and to set up necessary auxiliary files. 
32 Then you can proceed with the instructions given in the `INSTALL' file with
33 the exception that parellel builds with `make -j' are not supported yet.
35 Some additional remarks for compilation within the MinGW environment.
37   o Since MSYS, the shell of MinGW, uses LF as line endings, `git checkout'
38     should not convert files to CRLF.  Before checking out the FreeType and
39     ttfautohint repositories, you should issue the command
41       git config --global core.autocrlf input
43     to avoid any line ending conversion.
45   o At the time of this writing (January 2012), compilation of FreeType with
46     gcc bundles 4.6.1-2 or 4.6.2-1 fail.  Instead, you should use version
47     4.5.2-1.  Unfortunately, mingw-get is not able yet to download and
48     install a particular version; it always installs the newest one.  Some
49     manual work is necessary to overcome this restriction, as described by
50     Keith Marshall (in
51     http://sourceforge.net/mailarchive/message.php?msg_id=28753845):
53       > So what's the trick to access a specific release in a meta data
54       > file?
56       At present, the only way is to manually edit the XML manifest file,
57       (it is $MINGW_GET_ROOT/var/lib/mingw-get/data/mingw32-gcc4.xml), to
58       remove all of the <release ... /> references for any versions which
59       are newer, (i.e.  have a greater version number), than the particular
60       one you want to install.
62       If you would also like to preserve such changes, so that they will not
63       be reverted by a subsequent 'mingw-get update', then you may wish to
64       change the issue attribute, in the <software-distribution ...  /> tag,
65       from issue="2011122200" to something like issue="ZZZZZZZZZZ".
67   o To compile a stand-alone version of ttfautohint, first compile a static
68     version of Qt.  I've successfully followed these instructions:
70       http://www.formortals.com/build-qt-static-small-microsoft-intel-gcc-compiler/
72     Now configure and compile ttfautohint using
74       configure --with-qt=DIR
75       make LDFLAGS=-all-static
77 EOF