Added dde sample; added docs/index.htm
[wxWidgets.git] / docs / motif / install.txt
1 wxWindows 2.0 for Motif installation
2 ------------------------------------
3
4 - Prerequisites: Motif 1.2 or above, or Lesstif
5   (not yet tested). Motif 2.0 and above may also be suitable.
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 COMPILING USING CONFIGURE
17
18 - You can use the wxGTK configure system to make wxMotif, or
19   you can follow the following steps to use the simpler (but
20   less automatic) makefile system. If using configure, the
21   following script should make the library and samples, when
22   run from the top-level wxWindows directory (see also 'makewx'
23   in this directory):
24
25   # Make wxMotif using the configure system
26   chmod a+x configure config.sub setup/general/* config.guess setup/shared/*
27   ./configure --with-shared --with-motif --with-debug_flag \
28    --with-debug_info --without-threads
29   make
30
31 COMPILING USING MAKEFILES
32
33 - Choose a .env file from src/makeenvs that matches your
34   environment, and copy it to src/make.env. These are the
35   settings read by wxWindows for Motif makefiles.
36
37 - Edit src/make.env to change options according to your local
38   environment. In particular, change WXDIR to where wxWindows is
39   found on your system, or set the WXWIN environment variable
40   before compilation, e.g.:
41
42     export WXWIN=/home/jacs/wx2
43
44   Later, there will be a better makefile system
45   and/or alternate make.env files as per wxWindows 1.68.
46   Please feel free to contribute settings files for your environment.
47
48 - Change directory to src/motif and type:
49
50     make -f makefile.unx motif
51
52   This should make the library libwx_motif.a in the lib
53   directory.
54
55 - Make a sample, such as the minimal sample:
56
57     cd samples/minimal
58     make -f makefile.unx motif
59
60   and run the resulting minimal_motif binary.
61
62 Notes:
63 ------
64
65 - Better installation and makefile systems are
66   required. Although the wxGTK config system can be used to make
67   wxMotif and samples, it can't easily be made to work
68   with applications outside the wxWindows hierarchy. Hence the
69   simple makefile system.
70
71 - Debugging mode is switched on by default. To compile in non-debug
72   mode, remove the -D__WXDEBUG__ switch in make.env.
73
74 - Some classes can be switched off in include/wx/motif/setup.h,
75   if you are having trouble with a particular file. However,
76   I'd prefer you to fix the problem and send the fix to me :-) or at
77   least let me know about it.
78
79 - Thread support is switched off by default in setup.h (wxUSE_THREADS)
80   because standard Unices often do not have the necessary thread library
81   installed. Please see ../docs/gtk/install.txt for more details on this.
82   For Linux, the problem is expected to go away with future
83   distributions of the operating system.
84
85 - If you have trouble compiling the file y_tab.c, or have strange
86   linking errors, check whether you're using a C or C++ compiler for this file.
87   You should specify a C compiler in the CCLEX variable in src/make.env.
88
89 - If you run into problems with a missing X11/Xpm.h header, you
90   need to install the XPM package. It can be obtained from:
91
92   ftp://ftp.x.org/contrib/libraries/xpm-3.4k.tar.gz
93   http://sunfreeware.com
94
95   You may need to modify make.env to add -I and -L options pointing to where Xpm
96   is installed and possibly change bitmap.cpp to
97   include <xpm.h> instead of <X11/xpm.h>
98
99   Alternatively, edit include/motif/setup.h, set wxUSE_XPM
100   to 0, and recompile. You will not be able to load any XPMs,
101   though (currently the only supported colour bitmap format).
102
103 - Please send bug reports with a description of your environment,
104   compiler and the error message(s) to the wxwin-users mailing list at:
105
106     wxwin-users@wx.dent.med.uni-muenchen.de
107
108
109 Julian Smart, December 1998.
110 julian.smart@ukonline.co.uk