annotate nt/README @ 406:b8cc9ab3f761 r21-2-33

Import from CVS: tag r21-2-33
author cvs
date Mon, 13 Aug 2007 11:17:09 +0200
parents a86b2b5e0111
children 697ef44129c6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
1 Building and Installing XEmacs on Windows 95/98/NT -*- mode:outline -*-
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 100
diff changeset
2
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 155
diff changeset
3 David Hobley
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
4 Marc Paquette
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
5 Jonathan Harris
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
6 Ben Wing
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 100
diff changeset
7
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
8 This is a port of XEmacs to Windows 95/98/NT. If you are looking for a port
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
9 of GNU Emacs, see http://www.cs.washington.edu/homes/voelker/ntemacs.html.
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 155
diff changeset
10
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
11
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
12 * Required tools and sources
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
13 ============================
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 100
diff changeset
14
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
15 1. You will need Visual C++ V4.0 or later to compile everything. Personally
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
16 we have tested V4.0, V4.2, V5.0 and v6.0.
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
17
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
18 Note that Visual C++ assumes that the environment variables INCLUDE and
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
19 LIB are set to specify the location of the includes and libraries.
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
20 Your PATH environment variable also needs to include the DevStudio
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
21 vc\bin and sharedide\bin directories.
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
22
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
23 Visual C++ V5.0 installs a batch file called vcvars32.bat in
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
24 c:\Program Files\DevStudio\VC\bin\ (or wherever you installed it) that you
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
25 can run before building to set up all of these environment variables.
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 276
diff changeset
26
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
27 2. Grab the latest XEmacs source from
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
28
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
29 ftp://ftp.xemacs.org/pub/xemacs/
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
30
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
31 or one of its mirrors listed at http://www.xemacs.org/Download/index.html .
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
32
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
33 You'll also need the packages. You probably want to get the unified
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
34 packages bundle from
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
35
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
36 ftp://ftp.xemacs.org/pub/xemacs/packages/xemacs-sumo.tar.gz
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
37
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
38 Although we don't recommend it, you can also retrieve just the packages
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
39 you really need if you have an extremely slow net connection or are very
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
40 short on disk space. You can find the various packages in
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
41 ftp://ftp.xemacs.org/pub/xemacs/packages/. You will need the
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
42 xemacs-base package. You'll also need the texinfo package unless you
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
43 have a copy of makeinfo.exe on your machine. If you want to download
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
44 additional or updated packages from within XEmacs you'll need the efs,
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
45 dired and vm packages. You'll probably also want at least the
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
46 edit-utils, text-modes, fsf-compat, cc-mode, prog-modes and xemacs-devel
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
47 packages.
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
48
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
49 Unpack the packages into "x:\your\choice\XEmacs\xemacs-packages",
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
50 for example "c:\Program Files\XEmacs\xemacs-packages".
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 276
diff changeset
51
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
52 3. At this point you can choose to build for X and/or for Win32 native GUI.
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
53 If you only want to build for the Win32 native GUI then skip the next
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
54 section.
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
55
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
56
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
57 ** Extra tools and sources required for X
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
58
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
59 If you want support for X you will also need:
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
60
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
61 1. An X server. MI/X is available on the Internet as trialware; it is
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
62 available from: http://www.microimages.com/www/html/mix/
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
63
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
64 2. Source for the MIT X11R6.3 libraries, available from: ftp.x.org
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 215
diff changeset
65
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
66 3. You'll need to compile the MIT libraries without multi-thread support.
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
67 To do this, there is an example Win32.cf and site.def provided which set
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
68 the relevant flags. You will also need to apply the patch in nt/X11.patch
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
69 in the xc/lib/X11 directory which will fix the DLL definition file.
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
70
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
71 Once compiled and installed, you will need to apply the patch in
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
72 nt/Xmd.patch. This is messy and better solutions would be appreciated.
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
73
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
74 4. Goto step 2 under 'Optional libraries' below.
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
75
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
76
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
77 * Optional libraries
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
78 ====================
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 215
diff changeset
79
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
80 1. You really want the XPM library. Grab the latest version of the
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
81 xpm sources (xpm-3.4k.tar.gz at time of writing) from
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
82 ftp://ftp.xemacs.org/pub/xemacs/aux/ and unpack them somewhere.
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 276
diff changeset
83 Copy nt\xpm.mak from the xemacs sources to the lib subdirectory of the
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
84 xpm sources, cd to that directory and build xpm with 'nmake -f xpm.mak'.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
85
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
86 2. You probably also want PNG image support. Grab the latest versions of zlib
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
87 and libpng (zlib-1.1.3 and libpng-1.0.2 at time of writing) from
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
88 ftp://ftp.xemacs.org/pub/xemacs/aux/, unpack them somewhere and read
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
89 the respective READMEs for details on how to build them. The following
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
90 build procedure works for zlib-1.1.3 and libpng-1.0.2:
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
91
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
92 cd to the zlib directory, type 'copy msdos\makefile.w32 Makefile' and
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
93 then type 'nmake'.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
94
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
95 cd to the libpng directory, rename or move the zlib directory to ..\zlib
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
96 and type 'nmake -f scripts\makefile.w32'.
314
341dac730539 Import from CVS: tag r21-0b55
cvs
parents: 308
diff changeset
97
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
98 3. If you want TIFF support, grap the latest version of libtiff (tiff-v3.4
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
99 at time of writing) from ftp://ftp.xemacs.org/pub/xemacs/aux/ and unpack
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
100 it somewhere. Copy nt\tiff.mak from the xemacs sources to the
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
101 contrib\winnt subdirectory of the tiff sources, cd to that directory and
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
102 build libtiff with 'nmake -f tiff.mak'. Note: tiff.mak has only been
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
103 verified to work under WinNT, not Win95 or 98. However, the lastest
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
104 distribution of libtiff includes a contrib\win95\makefile.w95; that might
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
105 work.
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
106
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
107 4. If you want JPEG support grab the latest version of jpegsrc (jpeg-6b at
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
108 time of writing) from ftp://ftp.xemacs.org/pub/xemacs/aux/ and read the
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
109 README for details on how to build it.
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
110
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
111 5. If you want X-Face support, grab the compface distribution from
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
112 ftp://ftp.xemacs.org/pub/xemacs/aux/ and unpack it somewhere.
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
113 Copy nt\compface.mak from xemacs sources to the compface directory.
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
114 cd to that directory and build libcompface with 'nmake -f compface.mak'.
394
7d59cb494b73 Import from CVS: tag r21-2-12
cvs
parents: 384
diff changeset
115
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
116
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
117 * Building
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
118 ==========
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
119
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
120 1. cd to the nt subdirectory of the xemacs distribution and copy the file
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
121 config.inc.samp to config.inc. Make any necessary modifications. This
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
122 file controls the options that XEmacs is built with:
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
123
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
124 -- If you're building with XPM support, modify the appropriate lines in
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
125 config.inc as follows:
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
126
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
127 HAVE_XPM=1
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
128 XPM_DIR="x:\location\of\your\xpm\sources"
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
129
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
130 and similarly for JPEG and TIFF support.
314
341dac730539 Import from CVS: tag r21-0b55
cvs
parents: 308
diff changeset
131
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
132 -- If you're building with PNG support, modify the appropriate lines in
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
133 config.inc as follows:
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
134
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
135 HAVE_PNG=1
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
136 PNG_DIR="x:\location\of\your\png\sources"
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
137 ZLIB_DIR="x:\location\of\your\zlib\sources"
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
138
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
139 -- If you're building with GIF support, modify the appropriate lines in
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
140 config.inc as follows:
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
141
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
142 HAVE_GIF=1
318
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents: 314
diff changeset
143
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
144 -- If you're building with X-Face support, modify the appropriate lines in
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
145 config.inc as follows:
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
146
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
147 HAVE_XFACE=1
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
148 COMPFACE_DIR="x:\location\of\your\compface\sources"
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
149
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
150 -- If you're building for X, modify the appropriate lines in config.inc
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
151 as follows:
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
152
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
153 HAVE_X_WINDOWS=1
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
154 X11_DIR=x:\root\directory\of\your\X11\installation
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
155
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
156 -- By default, XEmacs will expect to find its packages in the
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
157 subdirectories "site-packages", "mule-packages" and "xemacs-packages"
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
158 under the directory "c:\Program Files\XEmacs". If you want it to look
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
159 for these subdirectories elsewhere, modify the appropriate lines in
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
160 config.inc as follows:
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
161
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
162 PACKAGE_PREFIX="x:\your\package\directory"
394
7d59cb494b73 Import from CVS: tag r21-2-12
cvs
parents: 384
diff changeset
163
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
164 Make sure that the directory pointed to by PACKAGE_PREFIX contains
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
165 the xemacs-packages directory into which you installed the packages.
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
166
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
167 -- XEmacs can build its info files more quickly if you have a copy of the
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
168 makeinfo program. If you have a copy, modify the appropriate lines in
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
169 config.inc as follows:
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
170
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
171 MAKEINFO="x:\location\of\makeinfo.exe"
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
172
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
173 If you don't have a copy of makeinfo then you'll need to have installed
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
174 the XEmacs texinfo package.
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
175
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
176 2. If you want to install XEmacs when you build it, modify the appropriate
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
177 lines in config.inc as follows (you can also run XEmacs from its build
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
178 directory):
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
179
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
180 INSTALL_DIR="x:\your\installation\directory"
314
341dac730539 Import from CVS: tag r21-0b55
cvs
parents: 308
diff changeset
181
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
182 (By default, XEmacs will be installed in directories under the directory
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
183 "c:\Program Files\XEmacs\XEmacs-21.2".)
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
184
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
185 2. If you want to build xemacs on the command line, use
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
186 `nmake install -f xemacs.mak', or just `nmake -f xemacs.mak' if you want
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
187 to run XEmacs from its build directory. nmake will build temacs, the DOC
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
188 file, update the elc's, dump xemacs and (optionally) install the relevant
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
189 files in the directories under the installation directory.
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
190
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
191 If you chose to install XEmacs, the file that you should run to start
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
192 XEmacs will be installed (by default) as
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
193 "c:\Program Files\XEmacs\XEmacs-21.2\i586-pc-win32\xemacs.exe".
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
194
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
195 To run from the build directory, run the file "nt\xemacs.exe" off of the
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
196 root of the build directory.
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 276
diff changeset
197
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
198 You may want to create a shortcut to the file from your Desktop or
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
199 Start Menu.
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
200
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
201 3. To build using MS Developer Studio, you can use the workspace file
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
202 `nt/xemacs.dsw'. This was prepared for Visual C++ 5.0; if you have
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
203 a different version and this file doesn't work, just open up
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
204 `nt/xemacs.mak' from within MS Developer Studio and it will offer to
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
205 wrap this Makefile in a workspace file, from which you can build.
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
206 Assuming you want to run from the build directory (which you will
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
207 want to do if you are planning on doing any development work on XEmacs),
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
208 use the following settings in Project/Settings...:
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
209
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
210 Under the General tab:
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
211
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
212 Build command line: NMAKE /f xemacs.mak
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
213 Output file name: ..\src\xemacs.exe
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
214 Browse info file name: ..\src\temacs.bsc
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
215
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
216 Under the Debug tab:
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
217
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
218 Executable for debug session: ..\src\xemacs.exe
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
219
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
220
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
221 If you want to install XEmacs when it's built, change the build command
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
222 line to "NMAKE install /f xemacs.mak". (You will have to make the same
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
223 change even if you use the provided workspace nt/xemacs.dsw.)
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 276
diff changeset
224
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
225
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
226 * Debugging under MS Developer Studio
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
227 =====================================
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
228
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
229 The build process always creates debugging and "Source Browser" information
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
230 in the source tree for use with DevStudio. However that information is not
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
231 very useful unless you build a debug version of XEmacs:
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 276
diff changeset
232
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
233 1. Set DEBUG_XEMACS=1 and DEPEND=1 in config.inc and rebuild.
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
234
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
235 2. See instructions above for obtaining a workspace file for use with
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
236 MS Developer Studio. Build and debug your XEmacs this way.
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
237
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
238 3. To display the contents of a lisp variable, type Shift-F9 (or use the
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
239 menu) to bring up the QuickWatch window, type debug_print(variable) and
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
240 click Recalculate. The output will appear in a console window, as well
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
241 as in the Debug window in MS Developer Studio.
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents: 195
diff changeset
242
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
243 4. To view Lisp variables in the "Watch" window wrap the variable in one of
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
244 the helper functions from the file src\console-msw.c, for example type
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
245 DSTRING(variable) in the "Watch" window to inspect a Lisp string.
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
246
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 100
diff changeset
247
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
248 * Known Problems
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
249 ================
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 394
diff changeset
250
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
251 Please look at the PROBLEMS file for known problems. Any other problems you
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
252 need clarified, please email us and we will endeavour to provide any
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
253 assistance we can:
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 100
diff changeset
254
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents: 195
diff changeset
255 The XEmacs NT Mailing List: xemacs-nt@xemacs.org
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents: 195
diff changeset
256 Subscribe address: xemacs-nt-request@xemacs.org
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 100
diff changeset
257
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents: 195
diff changeset
258 David Hobley
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents: 195
diff changeset
259 Marc Paquette
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents: 195
diff changeset
260 August Hill
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
261 Jonathan Harris
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 400
diff changeset
262 Ben Wing
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 100
diff changeset
263
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents: 195
diff changeset
264 and others.