source: archive/lesstif.xml@ 227b44ff

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 227b44ff was e3167158, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Cleanup VI. X + Window Managers

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10192 af4574ff-66df-0310-9fd7-8a98e5e911e0

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