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