Some stubs includes removed from wxMotif; wxNotebook sample hack to make it display;
[wxWidgets.git] / docs / motif / install.txt
1 wxWindows 2.0 for Motif installation
2 ------------------------------------
3
4 - Prerequisites: Motif 1.2 or above, or
5   Lesstif (not yet tested).
6
7 - Download the files wx200gen.zip and wx200mot.zip, and
8   documentation in a preferred format, such as wx200htm.zip
9   or wx200pdf.zip.
10
11 - Make a directory such as ~/wx and unzip the files into this
12   directory. Use the -a option if available to convert the ASCII
13   files to Unix format. Don't worry about files being
14   overwritten: they should be identical anyway.
15
16 - Edit src/make.env to change options according to your local
17   environment. In particular, change WXDIR to where wxWindows is
18   found on your system, or set the WXWIN environment variable
19   before compilation, e.g.:
20
21     export WXWIN=/home/jacs/wx2
22
23   Later, there will be a better makefile system
24   and/or alternate make.env files as per wxWindows 1.68.
25   Please feel free to contribute settings files for your environment.
26
27 - Change directory to src/motif and type:
28
29     make -f makefile.unx motif
30
31   This should make the library libwx_motif.a in the lib
32   directory.
33
34 - Make a sample, such as the minimal sample:
35
36     cd samples/minimal
37     make -f makefile.unx motif
38
39   and run the resulting minimal_motif binary.
40
41 Notes:
42 ------
43
44 - Better installation and makefile systems are
45   required. I didn't use the wxGTK system because I couldn't
46   understand it or make it work with wxMotif. Also I think
47   we should use something that can be made to work easily
48   with applications outside the wxWindows hierarchy.
49
50 - Debugging mode is switched on by default. To compile in non-debug
51   mode, remove the -D__WXDEBUG__ switch in make.env.
52
53 - Some classes can be switched off in include/wx/motif/setup.h,
54   if you are having trouble with a particular file. However,
55   I'd prefer you to fix the problem and send the fix to me :-) or at
56   least let me know about it.
57
58 - If you run into problems with a missing X11/Xpm.h header, you
59   need to install the XPM package. It can be obtained from:
60
61   ftp://ftp.x.org/contrib/libraries/xpm-3.4k.tar.gz
62
63   Alternatively, edit include/motif/setup.h, set wxUSE_XPM
64   to 0, and recompile. You will not be able to load any XPMs,
65   though (currently the only supported colour bitmap format).
66
67 - Please send bug reports with a description of your environment,
68   compiler and the error message(s) to the wxwin-users mailing list at:
69
70     wxwin-users@wx.dent.med.uni-muenchen.de
71
72
73 Julian Smart, November 1998.
74 julian.smart@ukonline.co.uk