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 'makewxmotif'
23 in this directory). Make this script executable with the command
24 chmod a+x makewxmotif.
26 -------:x-----Cut here-----:x-----
28 # Sets permissions (in case we extracted wxMotif from zip files)
30 # Call from top-level wxWindows directory.
31 # Note that this uses standard (but commonly-used) configure options;
32 # if you're feeling brave, you may wish to compile with threads.
34 chmod a+x configure config.sub config.guess setup/general/* setup/shared/*
35 ./configure --with-shared --with-motif --without-gtk --with-debug_flag --with-debug_info --without-threads
38 -------:x-----Cut here-----:x-----
40 This script will build wxMotif using shared libraries.
42 - Change directory to a sample e.g. samples/minimal, and type make.
43 The binary will end up under the Linux (or other appropriate) subdirectory.
45 - To build an application outside the wxWindows hierarchy, you can
46 use `wx-config --cflags` when compiling source files and `wx-config --libs`
47 when linking, where wx-config is in the wxWindows root directory.
48 These invocations return the appropriate flags for the compiler.
50 - When compiling certain utilities such as Dialog Editor, you may find
51 that the makefile refers to wx-config as above. Unless you have used
52 "make install" to install wxWindows, wx-config won't be found, so
53 either edit the makefile to hard-wire the flags, or place wx-config
54 where it will be found by the makefile.
56 COMPILING USING MAKEFILES
58 - Choose a .env file from src/makeenvs that matches your
59 environment, and copy it to src/make.env. These are the
60 settings read by wxWindows for Motif makefiles.
62 - Edit src/make.env to change options according to your local
63 environment. In particular, change WXDIR to where wxWindows is
64 found on your system, or set the WXWIN environment variable
65 before compilation, e.g.:
67 export WXWIN=/home/jacs/wx2
69 Please feel free to contribute settings files for your environment.
71 - Change directory to src/motif and type:
73 make -f makefile.unx motif
75 This should make the library libwx_motif.a in the lib
76 directory. Note that this makefile system does not build shared
77 libraries, only static ones (that is, the wxWindows library will be
78 linked statically; to see remaining dependencies on shared libraries,
79 type e.g. ldd minimal_motif).
81 - Make a sample, such as the minimal sample:
84 make -f makefile.unx motif
86 and run the resulting minimal_motif binary.
91 - Better installation and makefile systems are
92 required. A revised configure system is in preparation.
94 - Debugging mode is switched on by default. To compile in non-debug
95 mode, remove the -D__WXDEBUG__ switch in make.env (or if using the
96 configure system, change --with-debug_flag to --without_debug_flag
97 and --with-debug_info to --without-debug_info in the makewxmotif
100 - Some classes can be switched off in include/wx/motif/setup.h,
101 if you are having trouble with a particular file. However,
102 I'd prefer you to fix the problem and send the fix to me :-) or at
103 least let me know about it.
105 - Thread support is switched off by default in setup.h (wxUSE_THREADS)
106 because standard Unices often do not have the necessary thread library
107 installed. Please see ../docs/gtk/install.txt for more details on this.
108 For Linux, the problem is expected to go away with future
109 distributions of the operating system.
111 - If you have trouble compiling the file y_tab.c, or have strange
112 linking errors, check whether you're using a C or C++ compiler for this file.
113 You should specify a C compiler in the CCLEX variable in src/make.env.
115 - If you run into problems with a missing X11/Xpm.h header, you
116 need to install the XPM package. It can be obtained from:
118 ftp://ftp.x.org/contrib/libraries/xpm-3.4k.tar.gz
119 http://sunfreeware.com
121 You may need to modify make.env to add -I and -L options pointing to where Xpm
122 is installed and possibly change bitmap.cpp to
123 include <xpm.h> instead of <X11/xpm.h>
125 Alternatively, edit include/motif/setup.h, set wxUSE_XPM
126 to 0, and recompile. You will not be able to load any XPMs,
127 though (currently the only supported colour bitmap format).
129 - Please send bug reports with a description of your environment,
130 compiler and the error message(s) to the wxwin-users mailing list at:
132 wxwin-users@wx.dent.med.uni-muenchen.de
135 Julian Smart, January 1999.
136 julian.smart@ukonline.co.uk