blob: d5a45c0424063c31a89acbd7932d4d7af22f8963 [file] [log] [blame]
David Turner66cbc202003-03-20 07:04:40 +00001This document contains instructions on how to build the FreeType library
Werner Lemberga16c4a72003-04-21 13:30:27 +00002on Unix systems. This also works for emulations like Cygwin or MSys on
David Turner66cbc202003-03-20 07:04:40 +00003Win32:
4
5
Werner Lemberga16c4a72003-04-21 13:30:27 +00006 1. Ensure that you are using GNU Make
David Turner66cbc202003-03-20 07:04:40 +00007 -------------------------------------
8
Werner Lemberga16c4a72003-04-21 13:30:27 +00009 The FreeType build system _exclusively_ works with GNU Make. You
10 will not be able to compile the library with the instructions below
11 using any other alternative (including BSD Make).
David Turner66cbc202003-03-20 07:04:40 +000012
Werner Lemberga16c4a72003-04-21 13:30:27 +000013 [Well, this is not really correct. Recently, a perl implementation
14 of make called `makepp' has appeared which can also build FreeType 2
15 successfully on Unix platforms. See http://makepp.sourceforge.net
Werner Lemberg26eccb42004-04-13 08:35:05 +000016 for more details; you need version 1.19 or newer, and you must pass
17 option `--norc-substitution'.]
Werner Lemberga16c4a72003-04-21 13:30:27 +000018
19 Trying to compile the library with a different Make tool will print
20 a message like:
David Turner66cbc202003-03-20 07:04:40 +000021
22 Sorry, GNU make is required to build FreeType2.
23
Werner Lemberga16c4a72003-04-21 13:30:27 +000024 and the build process will be aborted. If this happens, install GNU
25 Make on your system, and use the GNUMAKE environment variable to
26 name it.
David Turner66cbc202003-03-20 07:04:40 +000027
28
Werner Lemberga16c4a72003-04-21 13:30:27 +000029 2. Build and install the library
30 --------------------------------
David Turner66cbc202003-03-20 07:04:40 +000031
Werner Lemberga16c4a72003-04-21 13:30:27 +000032 The following should work on all Unix systems where the `make'
David Turner66cbc202003-03-20 07:04:40 +000033 command invokes GNU Make:
34
Werner Lemberga16c4a72003-04-21 13:30:27 +000035 ./configure [options]
David Turner66cbc202003-03-20 07:04:40 +000036 make
37 make install (as root)
38
Werner Lemberga16c4a72003-04-21 13:30:27 +000039 The default installation path is "/usr/local". It can be changed
40 with the `--prefix=<path>' option. Example:
David Turner66cbc202003-03-20 07:04:40 +000041
Werner Lemberga16c4a72003-04-21 13:30:27 +000042 ./configure --prefix=/usr
43
44 When using a different command to invoke GNU Make, use the GNUMAKE
45 variable. For example, if `gmake' is the command to use on your
David Turner66cbc202003-03-20 07:04:40 +000046 system, do something like:
47
Werner Lemberga16c4a72003-04-21 13:30:27 +000048 GNUMAKE=gmake ./configure [options]
David Turner66cbc202003-03-20 07:04:40 +000049 gmake
50 gmake install (as root)
51
Werner Lemberga16c4a72003-04-21 13:30:27 +000052 If this still doesn't work, something's rotten on your system
53 (e.g. you are using a very old version of GNU Make).
54
55 It is possible to compile FreeType in a different directory.
56 Assuming the FreeType source files in directory `/src/freetype' a
57 compilation in directory `foo' works as follows:
58
59 cd foo
60 /src/freetype/configure [options]
61 make
62 make install
David Turner66cbc202003-03-20 07:04:40 +000063
64
Werner Lemberga16c4a72003-04-21 13:30:27 +000065--- end of INSTALL.UNX --