Mercurial > emacs
comparison nt/INSTALL @ 90185:5b029ff3b08d
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-55
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 320-323)
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 26 May 2005 05:42:19 +0000 |
parents | 0fe073a08cef 850c9d934e12 |
children | a1b34dec1104 |
comparison
equal
deleted
inserted
replaced
90184:9e5e2f01c7ab | 90185:5b029ff3b08d |
---|---|
1 Building and Installing Emacs | 1 Building and Installing Emacs |
2 on Windows NT/2K/XP and Windows 95/98/ME | 2 on Windows NT/2K/XP and Windows 95/98/ME |
3 | 3 |
4 Copyright (c) 2001,2004 Free Software Foundation, Inc. | 4 Copyright (c) 2001,2004,2005 Free Software Foundation, Inc. |
5 See the end of the file for copying permissions. | 5 See the end of the file for copying permissions. |
6 | 6 |
7 If you used WinZip to unpack the distribution, we suggest to | 7 If you used WinZip to unpack the distribution, we suggest to |
8 remove the files and unpack again with a different program! | 8 remove the files and unpack again with a different program! |
9 WinZip is known to create some subtle and hard to debug problems, | 9 WinZip is known to create some subtle and hard to debug problems, |
19 In addition to this file, you should also read INSTALL.CVS in the | 19 In addition to this file, you should also read INSTALL.CVS in the |
20 parent directory, and make sure that you have a version of "touch.exe" | 20 parent directory, and make sure that you have a version of "touch.exe" |
21 in your path, and that it will create files that do not yet exist. | 21 in your path, and that it will create files that do not yet exist. |
22 | 22 |
23 To compile Emacs, you will need either Microsoft Visual C++ 2.0 or | 23 To compile Emacs, you will need either Microsoft Visual C++ 2.0 or |
24 later and nmake, or a Windows port of GCC 2.95 or later with Mingw | 24 later and nmake, or a Windows port of GCC 2.95 or later with MinGW |
25 and W32 API support and a port of GNU make. You can use the Cygwin | 25 and W32 API support and a port of GNU make. You can use the Cygwin |
26 ports of GCC, but Emacs requires the Mingw headers and libraries to | 26 ports of GCC, but Emacs requires the MinGW headers and libraries to |
27 build (latest versions of the Cygwin toolkit, at least since v1.3.3, | 27 build (latest versions of the Cygwin toolkit, at least since v1.3.3, |
28 include the MinGW headers and libraries as an integral part). | 28 include the MinGW headers and libraries as an integral part). |
29 | 29 |
30 Other compilers may work, but specific reports from people that have | 30 Other compilers may work, but specific reports from people that have |
31 tried suggest that the Intel C compiler (for example) may produce an | 31 tried suggest that the Intel C compiler (for example) may produce an |
32 Emacs executable with strange filename completion behaviour. Unless | 32 Emacs executable with strange filename completion behaviour. Unless |
33 you would like to assist by finding and fixing the cause of any bugs | 33 you would like to assist by finding and fixing the cause of any bugs |
34 like this, we recommend the use of the supported compilers mentioned | 34 like this, we recommend the use of the supported compilers mentioned |
35 in the previous paragraph. | 35 in the previous paragraph. |
36 | 36 |
37 You will also need a copy of the Posix cp, rm and mv programs. These | 37 You will also need a copy of the Posix cp, rm and mv programs. These |
38 and other useful Posix utilities can be obtained from the Mingw or | 38 and other useful Posix utilities can be obtained from one of several |
39 Cygwin projects. | 39 projects: |
40 | |
41 * http://www.mingw.org/ ( MinGW ) | |
42 * http://www.cygwin.com/ ( Cygwin ) | |
43 * http://unxutils.sourceforge.net/ ( UnxUtils ) | |
44 * http://gnuwin32.sourceforge.net/ ( GnuWin32 ) | |
40 | 45 |
41 If you build Emacs on Windows 9X or ME, not on Windows 2K/XP or | 46 If you build Emacs on Windows 9X or ME, not on Windows 2K/XP or |
42 Windows NT, we suggest to install the Cygwin port of Bash. | 47 Windows NT, we suggest to install the Cygwin port of Bash. |
43 | 48 |
44 Please see http://www.mingw.org for pointers to GCC/Mingw and binaries. | 49 Additional instructions and help for building Emacs on Windows can be |
50 found at the Emacs Wiki: | |
51 | |
52 http://www.emacswiki.org/cgi-bin/wiki/WThirtyTwoInstallationKit | |
45 | 53 |
46 For reference, here is a list of which builds of GNU make are known | 54 For reference, here is a list of which builds of GNU make are known |
47 to work or not, and whether they work in the presence and/or absence | 55 to work or not, and whether they work in the presence and/or absence |
48 of sh.exe, the Cygwin port of Bash. Note that any version of make | 56 of sh.exe, the Cygwin port of Bash. Note that any version of make |
49 that is compiled with Cygwin will only work with Cygwin tools, due to | 57 that is compiled with Cygwin will only work with Cygwin tools, due to |
107 variables, or by specifying --cflags -I... options on the command-line | 115 variables, or by specifying --cflags -I... options on the command-line |
108 to configure.bat. The configure script will report whether it was | 116 to configure.bat. The configure script will report whether it was |
109 able to detect the headers. | 117 able to detect the headers. |
110 | 118 |
111 To use the external image support, the DLLs implementing the | 119 To use the external image support, the DLLs implementing the |
112 functionality must be found when Emacs is started, either on the PATH, | 120 functionality must be found when Emacs first needs them, either on the |
113 or in the same directory as emacs.exe. Failure to find a library is | 121 PATH, or in the same directory as emacs.exe. Failure to find a |
114 not an error; the associated image format will simply be unavailable. | 122 library is not an error; the associated image format will simply be |
123 unavailable. Note that once Emacs has determined that a library can | |
124 not be found, there's no way to force it to try again, other than | |
125 restarting. See the variable `image-library-alist' to configure the | |
126 expected names of the libraries. | |
115 | 127 |
116 Some image libraries have dependencies on one another, or on zlib. | 128 Some image libraries have dependencies on one another, or on zlib. |
117 For example, tiff support depends on the jpeg library. If you did not | 129 For example, tiff support depends on the jpeg library. If you did not |
118 compile the libraries yourself, you must make sure that any dependency | 130 compile the libraries yourself, you must make sure that any dependency |
119 is in the PATH or otherwise accesible and that the binaries are | 131 is in the PATH or otherwise accesible and that the binaries are |
120 compatible (for example, that they were built with the same compiler). | 132 compatible (for example, that they were built with the same compiler). |
121 | 133 |
122 Binaries for the image libraries (among many others) can be found at | 134 Binaries for the image libraries (among many others) can be found at |
123 GnuWin32 (http://gnuwin32.sourceforge.net). These are built with | 135 the GnuWin32 project. These are built with MinGW, but they can be |
124 MinGW, and so are very compatible with GCC/MinGW builds of Emacs (like | 136 used with both GCC/MinGW and MSVC builds of Emacs. |
125 the official binary tarballs for Windows). Compatibility with MSVC, | |
126 on the other hand, is still weak and should not be trusted in | |
127 production environments; if you really need an MSVC-compiled Emacs | |
128 with image support, you should try to build the required libraries | |
129 with the same compiler (though it can be extremely non-trivial, and | |
130 we'll be interested on hearing of any such effort). | |
131 | 137 |
132 * Building | 138 * Building |
133 | 139 |
134 After running configure, simply run the appropriate `make' program for | 140 After running configure, simply run the appropriate `make' program for |
135 your compiler to build Emacs. For MSVC, this is nmake; for GCC, it is | 141 your compiler to build Emacs. For MSVC, this is nmake; for GCC, it is |
160 to create a Start menu icon for Emacs. | 166 to create a Start menu icon for Emacs. |
161 | 167 |
162 * Trouble-shooting | 168 * Trouble-shooting |
163 | 169 |
164 The main problems that are likely to be encountered when building | 170 The main problems that are likely to be encountered when building |
165 Emacs stem from using an old version of GCC, or old Mingw or W32 API | 171 Emacs stem from using an old version of GCC, or old MinGW or W32 API |
166 headers. Additionally, cygwin ports of GNU make may require the Emacs | 172 headers. Additionally, cygwin ports of GNU make may require the Emacs |
167 source tree to be mounted with text!=binary, because the makefiles | 173 source tree to be mounted with text!=binary, because the makefiles |
168 generated by configure.bat necessarily use DOS line endings. Also, | 174 generated by configure.bat necessarily use DOS line endings. Also, |
169 cygwin ports of make must run in UNIX mode, either by specifying | 175 cygwin ports of make must run in UNIX mode, either by specifying |
170 --unix on the command line, or MAKE_MODE=UNIX in the environment. | 176 --unix on the command line, or MAKE_MODE=UNIX in the environment. |