Werner Lemberg | eae29d9 | 2017-01-13 10:33:09 +0100 | [diff] [blame] | 1 | Please follow the instructions in INSTALL.UNIX to install FreeType on |
Werner Lemberg | 4ea0a7f | 2007-01-05 09:03:31 +0000 | [diff] [blame] | 2 | Mac OS X. |
Werner Lemberg | 6164a9d | 2007-01-13 23:01:36 +0000 | [diff] [blame] | 3 | |
Werner Lemberg | eae29d9 | 2017-01-13 10:33:09 +0100 | [diff] [blame] | 4 | Currently FreeType2 functions based on some deprecated Carbon APIs |
| 5 | return `FT_Err_Unimplemented_Feature' always, even if FreeType2 is |
| 6 | configured and built on the system that deprecated Carbon APIs are |
| 7 | available. To enable deprecated FreeType2 functions as far as |
| 8 | possible, replace `src/base/ftmac.c' by `builds/mac/ftmac.c'. |
Suzuki, Toshiya (鈴木俊哉) | 60e83a1 | 2008-02-14 02:55:16 +0000 | [diff] [blame] | 9 | |
Werner Lemberg | eae29d9 | 2017-01-13 10:33:09 +0100 | [diff] [blame] | 10 | Starting with Mac OS X 10.5, gcc defaults the deployment target to |
| 11 | 10.5. In previous versions of Mac OS X, this defaulted to 10.1. If |
| 12 | you want your built binaries to run only on 10.5, this change does not |
| 13 | concern you. If you want them to also run on older versions of Mac |
| 14 | OS X, then you must either set the MACOSX_DEPLOYMENT_TARGET |
| 15 | environment variable or pass `-mmacosx-version-min' to gcc. You |
| 16 | should specify the oldest version of Mac OS you want the code to run |
| 17 | on. For example, if you use Bourne shell: |
Suzuki, Toshiya (鈴木俊哉) | 00518ca | 2007-11-16 15:48:58 +0000 | [diff] [blame] | 18 | |
Werner Lemberg | eae29d9 | 2017-01-13 10:33:09 +0100 | [diff] [blame] | 19 | export MACOSX_DEPLOYMENT_TARGET=10.2 |
Suzuki, Toshiya (鈴木俊哉) | 00518ca | 2007-11-16 15:48:58 +0000 | [diff] [blame] | 20 | |
Suzuki, Toshiya (鈴木俊哉) | 05f5c58 | 2007-12-06 05:43:36 +0000 | [diff] [blame] | 21 | or, if you use C shell: |
Suzuki, Toshiya (鈴木俊哉) | 00518ca | 2007-11-16 15:48:58 +0000 | [diff] [blame] | 22 | |
Werner Lemberg | eae29d9 | 2017-01-13 10:33:09 +0100 | [diff] [blame] | 23 | setenv MACOSX_DEPLOYMENT_TARGET 10.2 |
Suzuki, Toshiya (鈴木俊哉) | 00518ca | 2007-11-16 15:48:58 +0000 | [diff] [blame] | 24 | |
Werner Lemberg | eae29d9 | 2017-01-13 10:33:09 +0100 | [diff] [blame] | 25 | Alternatively, you could pass `-mmacosx-version-min=10.2' to gcc. |
Suzuki, Toshiya (鈴木俊哉) | 00518ca | 2007-11-16 15:48:58 +0000 | [diff] [blame] | 26 | |
Werner Lemberg | eae29d9 | 2017-01-13 10:33:09 +0100 | [diff] [blame] | 27 | Here the number 10.2 is the lowest version that the built binaries can |
| 28 | run on. In the above cases, the built binaries will run on Mac OS X |
| 29 | 10.2 and later, but _not_ earlier. If you want to run on earlier, you |
| 30 | have to set lower version, e.g., 10.0. |
Suzuki, Toshiya (鈴木俊哉) | 00518ca | 2007-11-16 15:48:58 +0000 | [diff] [blame] | 31 | |
Werner Lemberg | 6164a9d | 2007-01-13 23:01:36 +0000 | [diff] [blame] | 32 | For classic Mac OS (Mac OS 7, 8, 9) please refer to builds/mac/README. |