155
|
1 Building and Installing XEmacs
|
|
2 on Windows NT
|
|
3
|
|
4 David Hobley <david_hobley@optusvision.com.au>
|
|
5 <davidh@wr.com.au>
|
|
6 Marc Paquette <marcpa@cam.org>
|
|
7
|
|
8 You need a compiler package to build and install XEmacs on NT or Win95.
|
|
9 Microsoft Visual C++ 4.2 has been successfuly used to build it on NT: we
|
|
10 recommend this specific version (VC++ 4.1 has trouble with some macro
|
|
11 definitions in XEmacs sources).
|
|
12
|
|
13 This is an extremely early release. Any help we can provide we will do
|
|
14 so. Note however that, as of XEmacs 20.3 beta4, only X is supported
|
|
15 and some things might not work well at first.
|
|
16
|
|
17 Two methods to try it: jumpstart with pre-compiled X libraries (NT4
|
|
18 for Intel) or the long route with X11R6.3 re-compiled from scratch.
|
|
19 The jumpstart method is not in place yet, but the files will probably
|
|
20 appear somewhere at ftp.xemacs.org. Here are some instructions for
|
|
21 recompiling X:
|
|
22
|
|
23 1. Get X11R6.3 (Note: you need *a lots* of free space on your drive).
|
|
24 Modify its Win32.cf and site.def configuration files
|
|
25 to use the single-threaded, statically linked C run-time library
|
|
26 (libc.lib instead of msvcrt.dll). Samples Win32.cf and site.def are
|
|
27 provided in the XEmacs nt/ directory.
|
|
28 2. Build X11R6.3 and install it.
|
|
29 3. Apply the following patch to include/X11/Xmd.h in the installed
|
|
30 directory. Note: this could conceivably be better done before
|
|
31 compiling X, but this is the order I (marcpa) used.
|
|
32
|
|
33 --- Xmd.h~ Thu Jun 08 23:20:40 1995
|
|
34 +++ Xmd.h Sun Mar 16 13:09:10 1997
|
|
35 @@ -150,8 +150,9 @@
|
|
36 typedef CARD16 BITS16;
|
|
37 typedef CARD8 BYTE;
|
|
38
|
|
39 +#ifndef WIN32
|
|
40 typedef CARD8 BOOL;
|
|
41 -
|
|
42 +#endif
|
|
43
|
|
44
|
|
45 4. Edit the xemacs.mak Makefile and ensure variables point to the
|
|
46 correct place.
|
|
47 5. copy the files ad2c.sed, config.h, paths.h and xemacs.mak from nt/
|
|
48 into src/.
|
|
49 6. Run nmake using xemacs.mak (nmake -f xemacs.mak) while in src/.
|
|
50 7. Manually run the resulting temacs executable to create xemacs:
|
|
51 temacs.exe -batch -l loadup.el dump
|
|
52 8. You should be able to use MSDEV to run and debug temacs.exe: open a
|
|
53 workspace by specifying "Executable files", select "temacs.exe", set
|
|
54 the debug "Program arguments" settings (Build->Settings->Debug) to "-batch -l
|
|
55 loadup.el run-temacs" and run it. You should be able to open any
|
|
56 source file and set a breakpoint in it.
|
|
57
|
|
58 Problems:
|
|
59 - Haven't got rid of some symbol problems which may be causing problems.
|
|
60 - Still seems to use fork, which fails without /force option on link. I am
|
|
61 trying to work out where it should be removed.
|
|
62 - To make it work on X, usage of XtAppAddInput had to be commented out.
|
|
63 This is expected to break some parts of XEmacs, so beware.
|
|
64
|
|
65 Any problems/questions, mail us:
|
|
66
|
|
67 David Hobley
|
|
68 david_hobley@optusvision.com.au -- work email.
|
|
69 davidh@wr.com.au -- home account.
|
|
70
|
|
71 Marc Paquette
|
|
72 marcpa@cam.org -- home account.
|