Added script to help make wxMotif via configure; nativdlg sample works again;
[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 install/unix/config.sub
27   install/unix/setup/general/* \
28     install/unix/config.guess install/unix/setup/shared/*
29   cd install/unix
30   autoconf && ./configure --with-shared --with-motif --with-debug_flag \
31    --with-debug_info --without-threads
32   cd ../..
33   make makefiles
34   make
35
36 COMPILING USING MAKEFILES
37
38 - Choose a .env file from src/makeenvs that matches your
39   environment, and copy it to src/make.env. These are the
40   settings read by wxWindows for Motif makefiles.
41
42 - Edit src/make.env to change options according to your local
43   environment. In particular, change WXDIR to where wxWindows is
44   found on your system, or set the WXWIN environment variable
45   before compilation, e.g.:
46
47     export WXWIN=/home/jacs/wx2
48
49   Later, there will be a better makefile system
50   and/or alternate make.env files as per wxWindows 1.68.
51   Please feel free to contribute settings files for your environment.
52
53 - Change directory to src/motif and type:
54
55     make -f makefile.unx motif
56
57   This should make the library libwx_motif.a in the lib
58   directory.
59
60 - Make a sample, such as the minimal sample:
61
62     cd samples/minimal
63     make -f makefile.unx motif
64
65   and run the resulting minimal_motif binary.
66
67 Notes:
68 ------
69
70 - Better installation and makefile systems are
71   required. Although the wxGTK config system can be used to make
72   wxMotif and samples, it can't easily be made to work
73   with applications outside the wxWindows hierarchy. Hence the
74   simple makefile system.
75
76 - Debugging mode is switched on by default. To compile in non-debug
77   mode, remove the -D__WXDEBUG__ switch in make.env.
78
79 - Some classes can be switched off in include/wx/motif/setup.h,
80   if you are having trouble with a particular file. However,
81   I'd prefer you to fix the problem and send the fix to me :-) or at
82   least let me know about it.
83
84 - If you run into problems with a missing X11/Xpm.h header, you
85   need to install the XPM package. It can be obtained from:
86
87   ftp://ftp.x.org/contrib/libraries/xpm-3.4k.tar.gz
88   http://sunfreeware.com
89
90   You may need to modify make.env to add -I and -L options pointing to where Xpm
91   is installed and possibly change bitmap.cpp to
92   include <xpm.h> instead of <X11/xpm.h>
93
94   Alternatively, edit include/motif/setup.h, set wxUSE_XPM
95   to 0, and recompile. You will not be able to load any XPMs,
96   though (currently the only supported colour bitmap format).
97
98 - Please send bug reports with a description of your environment,
99   compiler and the error message(s) to the wxwin-users mailing list at:
100
101     wxwin-users@wx.dent.med.uni-muenchen.de
102
103
104 Julian Smart, December 1998.
105 julian.smart@ukonline.co.uk