Werner Lemberg | 098ab26 | 2000-11-02 07:53:08 +0000 | [diff] [blame] | 1 | In order to build the library, read the `BUILD' document in the `docs' |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 2 | directory. This is only a quick starter. |
David Turner | c3c7e7f | 2000-03-13 14:19:31 +0000 | [diff] [blame] | 3 | |
Werner Lemberg | e4b32a5 | 2000-10-31 20:42:18 +0000 | [diff] [blame] | 4 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 5 | I. From the command line |
| 6 | ------------------------ |
| 7 | |
| 8 | You need to have GNU Make installed on your system to compile the |
| 9 | library from the command line. This will _not_ work with other make |
| 10 | tools (including BSD make)! |
| 11 | |
| 12 | [Well, this is not really correct. Recently, a perl implementation |
| 13 | of make called `makepp' has appeared which can also build FreeType 2 |
| 14 | successfully on Unix platforms. See http://LNC.usc.edu/~holt/makepp |
| 15 | for more details.] |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 16 | |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 17 | - Go to the `freetype2' directory. |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 18 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 19 | - Unix (any C compiler should work): |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 20 | |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 21 | - make setup (don't worry, this will invoke a configure script) |
| 22 | - make |
| 23 | - make install |
David Turner | 5ef3c95 | 2000-08-22 23:15:23 +0000 | [diff] [blame] | 24 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 25 | Alternatively, you can pass parameters to the configure script |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 26 | within the CFG variable, as in: |
David Turner | 896b604 | 2000-10-03 17:51:29 +0000 | [diff] [blame] | 27 | |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 28 | - make setup CFG="--prefix=/usr" |
| 29 | - make |
| 30 | - make install |
David Turner | 5f5b446 | 2000-07-26 19:13:51 +0000 | [diff] [blame] | 31 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 32 | - Windows: |
David Turner | 5f5b446 | 2000-07-26 19:13:51 +0000 | [diff] [blame] | 33 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 34 | We provide a version of GNU Make for Win32 on the FreeType site. |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 35 | See http://www.freetype.org/download.html for details. |
Werner Lemberg | e4b32a5 | 2000-10-31 20:42:18 +0000 | [diff] [blame] | 36 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 37 | - gcc (Mingw, _not_ CygWin): |
David Turner | 859a18a | 2000-12-14 18:50:40 +0000 | [diff] [blame] | 38 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 39 | - make setup |
| 40 | - make |
David Turner | 5f5b446 | 2000-07-26 19:13:51 +0000 | [diff] [blame] | 41 | |
David Turner | 5f5b446 | 2000-07-26 19:13:51 +0000 | [diff] [blame] | 42 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 43 | - Visual C++: |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 44 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 45 | - make setup visualc |
| 46 | - make |
David Turner | 859a18a | 2000-12-14 18:50:40 +0000 | [diff] [blame] | 47 | |
| 48 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 49 | - other compilers: |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 50 | |
David Turner | 859a18a | 2000-12-14 18:50:40 +0000 | [diff] [blame] | 51 | - make setup xxxx |
| 52 | - make |
| 53 | |
David Turner | 859a18a | 2000-12-14 18:50:40 +0000 | [diff] [blame] | 54 | where "xxxx" is a special target corresponding to your compiler. |
| 55 | To see a list of supported compilers in this release, type: |
| 56 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 57 | make setup list |
David Turner | 859a18a | 2000-12-14 18:50:40 +0000 | [diff] [blame] | 58 | |
Werner Lemberg | e4b32a5 | 2000-10-31 20:42:18 +0000 | [diff] [blame] | 59 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 60 | II. In your own environment (IDE) |
| 61 | --------------------------------- |
Werner Lemberg | e4b32a5 | 2000-10-31 20:42:18 +0000 | [diff] [blame] | 62 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 63 | You need to add the directories "freetype2/include" and |
| 64 | "freetype2/src" to your include path when compiling the library. |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 65 | |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 66 | Compile each library component through the following files: |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 67 | |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 68 | -- base components (required) |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 69 | |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 70 | src/base/ftsystem.c |
| 71 | src/base/ftinit.c |
| 72 | src/base/ftdebug.c |
| 73 | src/base/ftbase.c |
| 74 | src/base/ftglyph.c |
| 75 | src/base/ftbbox.c |
| 76 | src/base/ftmm.c |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 77 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 78 | src/base/ftmac.c -- only on the Macintosh |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 79 | |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 80 | -- other components are optional |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 81 | |
Werner Lemberg | 5a2fdc0 | 2000-12-14 22:57:17 +0000 | [diff] [blame^] | 82 | src/autohint/autohint.c -- auto hinting module |
| 83 | src/cache/ftcache.c -- cache sub-system (in beta) |
| 84 | src/sfnt/sfnt.c -- SFNT files support (TrueType & OpenType) |
| 85 | src/cff/cff.c -- CFF/OpenType font driver |
| 86 | src/psnames/psnames.c -- Postscript glyph names support |
| 87 | src/psaux/psaux.c -- Postscript Type 1 parsing |
| 88 | src/truetype/truetype.c -- TrueType font driver |
| 89 | src/type1/type1.c -- Type 1 font driver |
| 90 | src/cid/type1cid.c -- Type 1 CID-keyed font driver |
| 91 | src/winfonts/winfonts.c -- Windows FONT / FNT font driver |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 92 | |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 93 | Note: |
David Turner | b1aabf4 | 2000-11-30 23:48:22 +0000 | [diff] [blame] | 94 | |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 95 | `truetype.c' needs `sfnt.c' and `psnames.c' |
| 96 | `type1.c' needs `psaux.c' and `psnames.c' |
| 97 | `type1cid.c' needs `psaux.c' and `psnames.c' |
| 98 | `cff.c' needs `sfnt.c', `psaux.c', and `psnames.c' |
Werner Lemberg | e4b32a5 | 2000-10-31 20:42:18 +0000 | [diff] [blame] | 99 | |
Werner Lemberg | 4c80f0c | 2000-12-01 17:25:58 +0000 | [diff] [blame] | 100 | etc. |
| 101 | |
| 102 | |
| 103 | --- end of INSTALL -- |