1 |
Building and Installing Emacs |
Building and Installing Emacs |
2 |
on Windows NT/2000 and Windows 95/98/ME |
on Windows NT/2K/XP and Windows 95/98/ME |
3 |
|
|
4 |
Copyright (c) 2001 Free Software Foundation, Inc. |
Copyright (c) 2001,2004 Free Software Foundation, Inc. |
5 |
See the end of the file for copying permissions. |
See the end of the file for copying permissions. |
6 |
|
|
7 |
If you used WinZip to unpack the distribution, we suggest to |
If you used WinZip to unpack the distribution, we suggest to |
31 |
like this, we recommend the use of the supported compilers mentioned |
like this, we recommend the use of the supported compilers mentioned |
32 |
in the previous paragraph. |
in the previous paragraph. |
33 |
|
|
34 |
If you build Emacs on Windows 9X or ME, not on Windows 2000 or |
If you build Emacs on Windows 9X or ME, not on Windows 2K/XP or |
35 |
Windows NT, we suggest to install the Cygwin port of Bash. |
Windows NT, we suggest to install the Cygwin port of Bash. |
36 |
|
|
37 |
Please see http://www.mingw.org for pointers to GCC/Mingw binaries. |
Please see http://www.mingw.org for pointers to GCC/Mingw binaries. |
90 |
|
|
91 |
* Optional image library support |
* Optional image library support |
92 |
|
|
93 |
To build Emacs with support for PNG images, the libpng and zlib |
In addition to its "native" image formats (pbm and xbm), Emacs can |
94 |
headers must be in the include path when the configure script is |
handle other image types: xpm, tiff, gif, png and jpeg (postscript is |
95 |
run. This can be setup using environment variables, or by |
currently unsupported on Windows). To build Emacs with support for |
96 |
specifying --cflags -I... options on the command-line to |
them, the corresponding headers must be in the include path when the |
97 |
configure.bat. Similarly, the jpeg-6b, libXpm, tiff and libungif |
configure script is run. This can be setup using environment |
98 |
headers need to be in the include path for support for those image |
variables, or by specifying --cflags -I... options on the command-line |
99 |
formats to work. The configure script will report whether it was |
to configure.bat. The configure script will report whether it was |
100 |
able to detect the headers. |
able to detect the headers. |
101 |
|
|
102 |
To use the PNG support, zlib.dll (or zlibd.dll) and libpng.dll (or |
To use the external image support, the DLLs implementing the |
103 |
libpng13.dll, or libpng13d.dll) must be on the PATH or in the same |
functionality must be found when Emacs is started, either on the PATH, |
104 |
directory as emacs.exe when Emacs is started. Similar instructions |
or in the same directory as emacs.exe. Failure to find a library is |
105 |
apply for other image libraries. Note that tiff support depends on |
not an error; the associated image format will simply be unavailable. |
106 |
the jpeg library. If you did not compile the libraries yourself, you |
|
107 |
must make sure that the jpeg library you install is the same one |
Some image libraries have dependencies on one another, or on zlib. |
108 |
that the tiff library was compiled against. |
For example, tiff support depends on the jpeg library. If you did not |
109 |
|
compile the libraries yourself, you must make sure that any dependency |
110 |
|
is in the PATH or otherwise accesible and that the binaries are |
111 |
|
compatible (for example, that they were built with the same compiler). |
112 |
|
|
113 |
|
Binaries for the image libraries (among many others) can be found at |
114 |
|
GnuWin32 (http://gnuwin32.sourceforge.net). These are built with |
115 |
|
MinGW and work better with GCC/MinGW builds of Emacs, like the |
116 |
|
official binary tarballs for Windows. Compatibility with MSVC is |
117 |
|
still weak and should not be trusted in production environments; if |
118 |
|
you really need an MSVC-compiled Emacs with image support, you should |
119 |
|
try to build the required libraries with the same compiler (though it |
120 |
|
can be extremely non-trivial, and we'll be interested on hearing of |
121 |
|
any such effort). |
122 |
|
|
123 |
* Building |
* Building |
124 |
|
|