]> git.saurik.com Git - wxWidgets.git/blame - docs/motif/install.txt
* Some more on streams.
[wxWidgets.git] / docs / motif / install.txt
CommitLineData
5de9c45c
JS
1wxWindows 2.0 for Motif installation
2------------------------------------
3
44c4a334
JS
4- Prerequisites: Motif 1.2 or above, or Lesstif
5 (not yet tested). Motif 2.0 and above may also be suitable.
5de9c45c
JS
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
44c4a334
JS
16COMPILING 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
7921cf2b
JS
26 chmod a+x configure config.sub setup/general/* config.guess setup/shared/*
27 ./configure --with-shared --with-motif --with-debug_flag \
44c4a334 28 --with-debug_info --without-threads
44c4a334
JS
29 make
30
31COMPILING 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
5de9c45c 37- Edit src/make.env to change options according to your local
ea57084d 38 environment. In particular, change WXDIR to where wxWindows is
5dcf05ae
JS
39 found on your system, or set the WXWIN environment variable
40 before compilation, e.g.:
41
42 export WXWIN=/home/jacs/wx2
43
ea57084d 44 Later, there will be a better makefile system
5de9c45c
JS
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
62Notes:
63------
64
65- Better installation and makefile systems are
44c4a334
JS
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.
5de9c45c 70
ea57084d
JS
71- Debugging mode is switched on by default. To compile in non-debug
72 mode, remove the -D__WXDEBUG__ switch in make.env.
73
5de9c45c
JS
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.
b412f9be
JS
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.
5de9c45c 84
cd2df130
JS
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
2243eed5
JS
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
44c4a334
JS
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>
2243eed5
JS
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
5de9c45c 103- Please send bug reports with a description of your environment,
ea57084d 104 compiler and the error message(s) to the wxwin-users mailing list at:
5de9c45c 105
ea57084d 106 wxwin-users@wx.dent.med.uni-muenchen.de
5de9c45c 107
5de9c45c 108
44c4a334 109Julian Smart, December 1998.
ea57084d 110julian.smart@ukonline.co.uk