1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY lesstif-download-http "&sourceforge-repo;/lesstif/lesstif-&lesstif-version;.tar.bz2">
|
---|
8 | <!ENTITY lesstif-download-ftp " ">
|
---|
9 | <!ENTITY lesstif-md5sum "754187dbac09fcf5d18296437e72a32f">
|
---|
10 | <!ENTITY lesstif-size "2.4 MB">
|
---|
11 | <!ENTITY lesstif-buildsize "160 MB (includes building and running the test suite)">
|
---|
12 | <!ENTITY lesstif-time "4.1 SBU (includes building the test suite)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="lesstif" xreflabel="LessTif-&lesstif-version;">
|
---|
16 | <?dbhtml filename="lesstif.html" ?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>LessTif-&lesstif-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="lesstif">
|
---|
22 | <primary sortas="a-LessTif">LessTif</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to LessTif</title>
|
---|
27 |
|
---|
28 | <para>The <application>LessTif</application> package contains an Open
|
---|
29 | Source version of <application>OSF/Motif</application>.</para>
|
---|
30 |
|
---|
31 | &lfs65_checked;
|
---|
32 |
|
---|
33 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
34 | <itemizedlist spacing="compact">
|
---|
35 | <listitem>
|
---|
36 | <para>Download (HTTP): <ulink url="&lesstif-download-http;"/></para>
|
---|
37 | </listitem>
|
---|
38 | <listitem>
|
---|
39 | <para>Download (FTP): <ulink url="&lesstif-download-ftp;"/></para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para>Download MD5 sum: &lesstif-md5sum;</para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download size: &lesstif-size;</para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Estimated disk space required: &lesstif-buildsize;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Estimated build time: &lesstif-time;</para>
|
---|
52 | </listitem>
|
---|
53 | </itemizedlist>
|
---|
54 |
|
---|
55 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
56 | <itemizedlist spacing='compact'>
|
---|
57 | <listitem>
|
---|
58 | <para>Required patch: <ulink
|
---|
59 | url="&patch-root;/lesstif-&lesstif-version;-testsuite_fix-1.patch"/></para>
|
---|
60 | </listitem>
|
---|
61 | </itemizedlist>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect3">LessTif Dependencies</bridgehead>
|
---|
64 |
|
---|
65 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
66 | <para role="required"><xref linkend="xorg7-lib"/></para>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
69 | <para role="optional"><xref linkend="lynx"/> or <xref linkend="Links"/>
|
---|
70 | (used to generate the <filename>INSTALL</filename> documentation file) and
|
---|
71 | <ulink url="http://dmalloc.com">Dmalloc</ulink></para>
|
---|
72 |
|
---|
73 | <para condition="html" role="usernotes">User Notes:
|
---|
74 | <ulink url="&blfs-wiki;/lesstif"/></para>
|
---|
75 |
|
---|
76 | </sect2>
|
---|
77 |
|
---|
78 | <sect2 role="installation">
|
---|
79 | <title>Installation of LessTif</title>
|
---|
80 |
|
---|
81 | <para>First, rename a man page file that conflicts with
|
---|
82 | <application>perl</application>:</para>
|
---|
83 |
|
---|
84 | <screen><userinput>pushd doc/lessdox/widgets &&
|
---|
85 | sed -i -e 's/\tShell.3/\tshell.3/' Makefile.in &&
|
---|
86 | mv Shell.3 shell.3 &&
|
---|
87 | popd</userinput></screen>
|
---|
88 |
|
---|
89 | <para>Install <application>LessTif</application> by running the following
|
---|
90 | commands:</para>
|
---|
91 |
|
---|
92 | <screen><userinput>patch -Np1 -i ../lesstif-&lesstif-version;-testsuite_fix-1.patch &&
|
---|
93 | ./configure --prefix=/usr \
|
---|
94 | --sysconfdir=/etc/X11 \
|
---|
95 | --disable-debug \
|
---|
96 | --enable-production \
|
---|
97 | --with-xdnd \
|
---|
98 | --x-includes=$XORG_PREFIX/include \
|
---|
99 | --x-libraries=$XORG_PREFIX/lib &&
|
---|
100 | sed -i "s@libdir)/X11/mwm@sysconfdir)/mwm@" clients/Motif-2.1/mwm/Makefile &&
|
---|
101 | make rootdir=/usr/share/doc/lesstif-&lesstif-version;</userinput></screen>
|
---|
102 |
|
---|
103 | <para>This package requires that it is installed before the test suite is
|
---|
104 | run. The commands to run the tests are located a bit later in the
|
---|
105 | instructions.</para>
|
---|
106 |
|
---|
107 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
108 |
|
---|
109 | <screen role="root"><userinput>make rootdir=/usr/share/doc/lesstif-&lesstif-version; install &&
|
---|
110 | ldconfig</userinput></screen>
|
---|
111 |
|
---|
112 | <para>Applicatons that utilize Xorg libraries often, and incorrectly,
|
---|
113 | expect to find configuration files in
|
---|
114 | <filename class="directory">$XORG_PREFIX/lib/X11</filename>. While still
|
---|
115 | the <systemitem class="username">root</systemitem> user, create a
|
---|
116 | compatibility symlink with the following command:</para>
|
---|
117 |
|
---|
118 | <screen role="root"><userinput>ln -v -sf /etc/X11/mwm $XORG_PREFIX/lib/X11</userinput></screen>
|
---|
119 |
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | <sect2 role="commands">
|
---|
123 | <title>Command Explanations</title>
|
---|
124 |
|
---|
125 | <para><parameter>--disable-debug</parameter>: Do not generate debugging
|
---|
126 | information.</para>
|
---|
127 |
|
---|
128 | <para><parameter>--enable-production</parameter>: Build the release version
|
---|
129 | of the <application>LessTif</application> libraries.</para>
|
---|
130 |
|
---|
131 | <para><parameter>--with-xdnd</parameter>: Enable XDND GNOME compatibility
|
---|
132 | support.</para>
|
---|
133 |
|
---|
134 | <para><parameter>rootdir=/usr/share/doc/lesstif-&lesstif-version;</parameter>:
|
---|
135 | This installs the documentation into an appropriate directory instead of the
|
---|
136 | non-FHS compliant <filename class="directory">/usr/LessTif</filename>
|
---|
137 | directory.</para>
|
---|
138 |
|
---|
139 | <para><parameter>--x-includes</parameter> and
|
---|
140 | <parameter>--x-libraries</parameter>: tells the build system where to find
|
---|
141 | the Xorg headers and libraries.</para>
|
---|
142 |
|
---|
143 | <para><command>sed -i "s@libdir)/X11/mwm@sysconfdir)/mwm@"
|
---|
144 | clients/Motif-2.1/mwm/Makefile</command>: This corrects the installation
|
---|
145 | prefix for the mwm directory for FHS compliance.</para>
|
---|
146 |
|
---|
147 | </sect2>
|
---|
148 |
|
---|
149 | <sect2 role="testing">
|
---|
150 | <title>Testing LessTif</title>
|
---|
151 |
|
---|
152 | <para>It is advisable to test the installation of
|
---|
153 | <application>LessTif</application> using the included test suite. It is
|
---|
154 | not required to install any of the resulting binaries to validate the
|
---|
155 | installation. Issue the following commands to build the test suite:</para>
|
---|
156 |
|
---|
157 | <screen><userinput>cd test &&
|
---|
158 | ./configure &&
|
---|
159 | make</userinput></screen>
|
---|
160 |
|
---|
161 | <para>To run the tests, issue the following commands:</para>
|
---|
162 |
|
---|
163 | <screen><userinput>cd Xm &&
|
---|
164 | ./testall *</userinput></screen>
|
---|
165 |
|
---|
166 | <para>You may need to manually close four of the test windows. The first
|
---|
167 | one is from <command>test28</command> in the
|
---|
168 | <filename class='directory'>list</filename> directory. The second one is
|
---|
169 | from <command>test10</command> in the
|
---|
170 | <filename class='directory'>menushell</filename> directory. You should
|
---|
171 | click on the button in the window and choose <quote>exit</quote> (do it
|
---|
172 | twice) to finish the test. The third test is from <command>test20</command>
|
---|
173 | in the <filename class='directory'>PushButton</filename> and the last one
|
---|
174 | is from <command>test24</command> in the
|
---|
175 | <filename class='directory'>scrolledwindow</filename> directory.</para>
|
---|
176 |
|
---|
177 | <!-- Last test run: 86 failed out of 605. -->
|
---|
178 |
|
---|
179 | <para>As many as 101 tests are known to fail. The patch applied at the
|
---|
180 | beginning of the installation created a file used to compare known failures
|
---|
181 | to the failures from the test run. This file was created from an
|
---|
182 | installation using the current LFS book and should be a fairly accurate
|
---|
183 | representation of the failures you'll encounter. You could see some minor
|
---|
184 | variances, however.</para>
|
---|
185 |
|
---|
186 | </sect2>
|
---|
187 |
|
---|
188 | <sect2 role="configuration">
|
---|
189 | <title>Configuring LessTif</title>
|
---|
190 |
|
---|
191 | <sect3 id="lesstif-config">
|
---|
192 | <title>Config Files</title>
|
---|
193 |
|
---|
194 | <para><filename>/etc/X11/mwm/system.mwmrc</filename> and
|
---|
195 | <filename>~/.mwmrc</filename></para>
|
---|
196 |
|
---|
197 | <indexterm zone="lesstif lesstif-config">
|
---|
198 | <primary sortas="e-AA.mwmrc">~/.mwmrc</primary>
|
---|
199 | </indexterm>
|
---|
200 |
|
---|
201 | <indexterm zone="lesstif lesstif-config">
|
---|
202 | <primary
|
---|
203 | sortas="e-etc-X11-mwm-system.mwmrc">/etc/X11/mwm/system.mwmrc</primary>
|
---|
204 | </indexterm>
|
---|
205 |
|
---|
206 | </sect3>
|
---|
207 |
|
---|
208 | <sect3>
|
---|
209 | <title>Configuration Information</title>
|
---|
210 |
|
---|
211 | <para>The config files are used to customize the behavior of the
|
---|
212 | <command>mwm</command> window manager. Information about customizing
|
---|
213 | these files can be found in the <filename>mwmrc(5)</filename> man
|
---|
214 | page.</para>
|
---|
215 |
|
---|
216 | </sect3>
|
---|
217 |
|
---|
218 | </sect2>
|
---|
219 |
|
---|
220 | <sect2 role="content">
|
---|
221 | <title>Contents</title>
|
---|
222 |
|
---|
223 | <segmentedlist>
|
---|
224 | <segtitle>Installed Programs</segtitle>
|
---|
225 | <segtitle>Installed Libraries</segtitle>
|
---|
226 | <segtitle>Installed Directories</segtitle>
|
---|
227 |
|
---|
228 | <seglistitem>
|
---|
229 | <seg>motif-config, mwm, mxmkmf, uil, and xmbind</seg>
|
---|
230 | <seg>libDtPrints.so, libMrm.so, libUil.so, and libXm.so</seg>
|
---|
231 | <seg>/etc/X11/mwm, /usr/include/Xm, /usr/include/Mrm,
|
---|
232 | /usr/include/uil, /usr/include/Dt, /usr/lib/LessTif, and
|
---|
233 | /usr/share/doc/lesstif-&lesstif-version;</seg>
|
---|
234 | </seglistitem>
|
---|
235 | </segmentedlist>
|
---|
236 |
|
---|
237 | <variablelist>
|
---|
238 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
239 | <?dbfo list-presentation="list"?>
|
---|
240 | <?dbhtml list-presentation="table"?>
|
---|
241 |
|
---|
242 | <varlistentry id="motif-config">
|
---|
243 | <term><command>motif-config</command></term>
|
---|
244 | <listitem>
|
---|
245 | <para>is used to find out configuration information for packages
|
---|
246 | needing to link to the <application>LessTif</application>
|
---|
247 | libraries.</para>
|
---|
248 | <indexterm zone="lesstif motif-config">
|
---|
249 | <primary sortas="b-motif-config">motif-config</primary>
|
---|
250 | </indexterm>
|
---|
251 | </listitem>
|
---|
252 | </varlistentry>
|
---|
253 |
|
---|
254 | <varlistentry id="mwm">
|
---|
255 | <term><command>mwm</command></term>
|
---|
256 | <listitem>
|
---|
257 | <para>is a window manager that adheres largely to the
|
---|
258 | <application>Motif</application> <command>mwm</command>
|
---|
259 | specification.</para>
|
---|
260 | <indexterm zone="lesstif mwm">
|
---|
261 | <primary sortas="b-mwm">mwm</primary>
|
---|
262 | </indexterm>
|
---|
263 | </listitem>
|
---|
264 | </varlistentry>
|
---|
265 |
|
---|
266 | <varlistentry id="mxmkmf">
|
---|
267 | <term><command>mxmkmf</command></term>
|
---|
268 | <listitem>
|
---|
269 | <para>is the <application>LessTif</application> version of
|
---|
270 | <command>xmkmf</command> which creates a
|
---|
271 | <filename>Makefile</filename> from an
|
---|
272 | <filename>Imakefile</filename>.</para>
|
---|
273 | <indexterm zone="lesstif mxmkmf">
|
---|
274 | <primary sortas="b-mxmkmf">mxmkmf</primary>
|
---|
275 | </indexterm>
|
---|
276 | </listitem>
|
---|
277 | </varlistentry>
|
---|
278 |
|
---|
279 | <varlistentry id="uil">
|
---|
280 | <term><command>uil</command></term>
|
---|
281 | <listitem>
|
---|
282 | <para>is a user interface language compiler which translates a
|
---|
283 | plain text description of the user interface of a
|
---|
284 | <application>Motif</application> application into a
|
---|
285 | machine-readable form.</para>
|
---|
286 | <indexterm zone="lesstif uil">
|
---|
287 | <primary sortas="b-uil">uil</primary>
|
---|
288 | </indexterm>
|
---|
289 | </listitem>
|
---|
290 | </varlistentry>
|
---|
291 |
|
---|
292 | <varlistentry id="xmbind">
|
---|
293 | <term><command>xmbind</command></term>
|
---|
294 | <listitem>
|
---|
295 | <para> configures the virtual key bindings of
|
---|
296 | <application>LessTif</application> applications.</para>
|
---|
297 | <indexterm zone="lesstif xmbind">
|
---|
298 | <primary sortas="b-xmbind">xmbind</primary>
|
---|
299 | </indexterm>
|
---|
300 | </listitem>
|
---|
301 | </varlistentry>
|
---|
302 |
|
---|
303 | <varlistentry id="libXm">
|
---|
304 | <term><filename class='libraryfile'>libXm.so</filename></term>
|
---|
305 | <listitem>
|
---|
306 | <para>is an <application>OSF/Motif</application> source code
|
---|
307 | compatible library for the <application>X Window
|
---|
308 | System</application>. You can download an excellent reference
|
---|
309 | guide (mainly for programmers) for the Motif-2.1 specification
|
---|
310 | from <ulink
|
---|
311 | url="http://unc.dl.sourceforge.net/lesstif/6B_book.pdf"/>.</para>
|
---|
312 | <indexterm zone="lesstif libXm">
|
---|
313 | <primary sortas="c-libXm">libXm.so</primary>
|
---|
314 | </indexterm>
|
---|
315 | </listitem>
|
---|
316 | </varlistentry>
|
---|
317 |
|
---|
318 | </variablelist>
|
---|
319 |
|
---|
320 | </sect2>
|
---|
321 |
|
---|
322 | </sect1>
|
---|