source: x/lib/lesstif.xml@ de53c9be

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since de53c9be was 9baa713, checked in by DJ Lucas <dj@…>, 14 years ago

Modified LessTif instructions to account for alternate Xorg prefix.

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

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