1 wxWindows 2.0 for Motif installation
2 ------------------------------------
4 - Prerequisites: Motif 1.2 or above, or Lesstif
5 (not yet tested). Motif 2.0 and above may also be suitable.
7 - Download the files wx200gen.zip and wx200mot.zip, and
8 documentation in a preferred format, such as wx200htm.zip
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.
16 COMPILING USING CONFIGURE
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'
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/*
30 autoconf && ./configure --with-shared --with-motif --with-debug_flag \
31 --with-debug_info --without-threads
36 COMPILING USING MAKEFILES
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.
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.:
47 export WXWIN=/home/jacs/wx2
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.
53 - Change directory to src/motif and type:
55 make -f makefile.unx motif
57 This should make the library libwx_motif.a in the lib
60 - Make a sample, such as the minimal sample:
63 make -f makefile.unx motif
65 and run the resulting minimal_motif binary.
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.
76 - Debugging mode is switched on by default. To compile in non-debug
77 mode, remove the -D__WXDEBUG__ switch in make.env.
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.
84 - Thread support is switched off by default in setup.h (wxUSE_THREADS)
85 because standard Unices often do not have the necessary thread library
86 installed. Please see ../docs/gtk/install.txt for more details on this.
87 For Linux, the problem is expected to go away with future
88 distributions of the operating system.
90 - If you have trouble compiling the file y_tab.c, or have strange
91 linking errors, check whether you're using a C or C++ compiler for this file.
92 You should specify a C compiler in the CCLEX variable in src/make.env.
94 - If you run into problems with a missing X11/Xpm.h header, you
95 need to install the XPM package. It can be obtained from:
97 ftp://ftp.x.org/contrib/libraries/xpm-3.4k.tar.gz
98 http://sunfreeware.com
100 You may need to modify make.env to add -I and -L options pointing to where Xpm
101 is installed and possibly change bitmap.cpp to
102 include <xpm.h> instead of <X11/xpm.h>
104 Alternatively, edit include/motif/setup.h, set wxUSE_XPM
105 to 0, and recompile. You will not be able to load any XPMs,
106 though (currently the only supported colour bitmap format).
108 - Please send bug reports with a description of your environment,
109 compiler and the error message(s) to the wxwin-users mailing list at:
111 wxwin-users@wx.dent.med.uni-muenchen.de
114 Julian Smart, December 1998.
115 julian.smart@ukonline.co.uk