]> git.saurik.com Git - wxWidgets.git/blame - docs/motif/install.txt
Fixed nasty bug wxFont
[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
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
36COMPILING 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
5de9c45c 42- Edit src/make.env to change options according to your local
ea57084d 43 environment. In particular, change WXDIR to where wxWindows is
5dcf05ae
JS
44 found on your system, or set the WXWIN environment variable
45 before compilation, e.g.:
46
47 export WXWIN=/home/jacs/wx2
48
ea57084d 49 Later, there will be a better makefile system
5de9c45c
JS
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
67Notes:
68------
69
70- Better installation and makefile systems are
44c4a334
JS
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.
5de9c45c 75
ea57084d
JS
76- Debugging mode is switched on by default. To compile in non-debug
77 mode, remove the -D__WXDEBUG__ switch in make.env.
78
5de9c45c
JS
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
cd2df130
JS
84- If you have trouble compiling the file y_tab.c, or have strange
85 linking errors, check whether you're using a C or C++ compiler for this file.
86 You should specify a C compiler in the CCLEX variable in src/make.env.
87
2243eed5
JS
88- If you run into problems with a missing X11/Xpm.h header, you
89 need to install the XPM package. It can be obtained from:
90
91 ftp://ftp.x.org/contrib/libraries/xpm-3.4k.tar.gz
44c4a334
JS
92 http://sunfreeware.com
93
94 You may need to modify make.env to add -I and -L options pointing to where Xpm
95 is installed and possibly change bitmap.cpp to
96 include <xpm.h> instead of <X11/xpm.h>
2243eed5
JS
97
98 Alternatively, edit include/motif/setup.h, set wxUSE_XPM
99 to 0, and recompile. You will not be able to load any XPMs,
100 though (currently the only supported colour bitmap format).
101
5de9c45c 102- Please send bug reports with a description of your environment,
ea57084d 103 compiler and the error message(s) to the wxwin-users mailing list at:
5de9c45c 104
ea57084d 105 wxwin-users@wx.dent.med.uni-muenchen.de
5de9c45c 106
5de9c45c 107
44c4a334 108Julian Smart, December 1998.
ea57084d 109julian.smart@ukonline.co.uk