source: x/lib/lesstif.xml@ 1b0e20e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 1b0e20e was 1b0e20e, checked in by Randy McMurchy <randy@…>, 17 years ago

Added a sed command to the LessTif instructions to fix a broken header file

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6898 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 "http://downloads.sourceforge.net/lesstif/lesstif-&lesstif-version;.tar.bz2">
8 <!ENTITY lesstif-download-ftp " ">
9 <!ENTITY lesstif-md5sum "ab895165c149d7f95843c7584b1c7ad4">
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 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>Download (HTTP): <ulink url="&lesstif-download-http;"/></para>
39 </listitem>
40 <listitem>
41 <para>Download (FTP): <ulink url="&lesstif-download-ftp;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download MD5 sum: &lesstif-md5sum;</para>
45 </listitem>
46 <listitem>
47 <para>Download size: &lesstif-size;</para>
48 </listitem>
49 <listitem>
50 <para>Estimated disk space required: &lesstif-buildsize;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated build time: &lesstif-time;</para>
54 </listitem>
55 </itemizedlist>
56
57 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
58 <itemizedlist spacing='compact'>
59 <listitem>
60 <para>Required patch: <ulink
61 url="&patch-root;/lesstif-&lesstif-version;-testsuite_fix-1.patch"/></para>
62 </listitem>
63 </itemizedlist>
64
65 <bridgehead renderas="sect3">LessTif Dependencies</bridgehead>
66
67 <bridgehead renderas="sect4">Required</bridgehead>
68 <para role="required"><xref linkend="x-window-system"/></para>
69
70 <bridgehead renderas="sect4">Optional</bridgehead>
71 <para role="optional"><xref linkend="lynx"/> or <xref linkend="Links"/>
72 (used to generate the <filename>INSTALL</filename> documentation file) and
73 <ulink url="http://dmalloc.com">Dmalloc</ulink></para>
74
75 <para condition="html" role="usernotes">User Notes:
76 <ulink url="&blfs-wiki;/lesstif"/></para>
77
78 </sect2>
79
80 <sect2 role="installation">
81 <title>Installation of LessTif</title>
82
83 <para>Install <application>LessTif</application> by running the following
84 commands:</para>
85
86<screen><userinput>sed -i -e '/ShellP/d' \
87 -e '/XMLIBEXPORT extern Cardinal/i#include &lt;X11/ShellP.h&gt;\n' \
88 include/Motif-2.1/Xm/VendorSP.h &amp;&amp;
89
90patch -Np1 -i ../lesstif-&lesstif-version;-testsuite_fix-1.patch &amp;&amp;
91./configure --prefix=/usr \
92 --disable-debug \
93 --enable-production \
94 --with-xdnd &amp;&amp;
95make rootdir=/usr/share/doc/lesstif-&lesstif-version;</userinput></screen>
96
97 <para>This package requires that it is installed before the test suite is
98 run. The commands to run the tests are located a bit later in the
99 instructions.</para>
100
101 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
102
103<screen role="root"><userinput>make rootdir=/usr/share/doc/lesstif-&lesstif-version; install &amp;&amp;
104ldconfig</userinput></screen>
105
106 <para>You will need to change the <application>X</application> prefix in
107 the command below if your X Window System is installed anywhere other than
108 <filename class='directory'>/usr/X11R6</filename>.</para>
109
110<screen role="root"><userinput>ln -v -s <replaceable>/usr/X11R6</replaceable>/lib/X11/mwm /etc/X11</userinput></screen>
111
112 </sect2>
113
114 <sect2 role="commands">
115 <title>Command Explanations</title>
116
117 <para><command>sed -i -e '...'
118 -e '...' include/Motif-2.1/Xm/VendorSP.h</command>:
119 This command moves one line in the header file to avoid C++ compilation
120 problems.</para>
121
122 <para><parameter>--disable-debug</parameter>: Do not generate debugging
123 information.</para>
124
125 <para><parameter>--enable-production</parameter>: Build the release version
126 of the <application>LessTif</application> libraries.</para>
127
128 <para><parameter>--with-xdnd</parameter>: Enable XDND GNOME compatibility
129 support.</para>
130
131 <para><parameter>rootdir=/usr/share/doc/lesstif-&lesstif-version;</parameter>:
132 This installs the documentation into an appropriate directory instead of the
133 non-FHS compliant <filename class="directory">/usr/LessTif</filename>
134 directory.</para>
135
136 <para><command>ln -v -s
137 <replaceable>/usr/X11R6</replaceable>/lib/X11/mwm /etc/X11</command>:
138 Configuration directories located in the <application>X</application>
139 installation prefix heirarchy typically have a symlink in the
140 <filename class='directory'>/etc/X11</filename> directory pointing back to
141 it. This command creates that symlink.</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 <para>As many as 101 tests are known to fail. The patch applied at the
174 beginning of the installation created a file used to compare known failures
175 to the failures from the test run. This file was created from an
176 installation using the current LFS book and should be a fairly accurate
177 representation of the failures you'll encounter. You could see some minor
178 variances, however.</para>
179
180 </sect2>
181
182 <sect2 role="configuration">
183 <title>Configuring LessTif</title>
184
185 <sect3 id="lesstif-config">
186 <title>Config Files</title>
187
188 <para><filename>/etc/X11/mwm/system.mwmrc</filename> and
189 <filename>~/.mwmrc</filename></para>
190
191 <indexterm zone="lesstif lesstif-config">
192 <primary sortas="e-AA.mwmrc">~/.mwmrc</primary>
193 </indexterm>
194
195 <indexterm zone="lesstif lesstif-config">
196 <primary
197 sortas="e-etc-X11-mwm-system.mwmrc">/etc/X11/mwm/system.mwmrc</primary>
198 </indexterm>
199
200 </sect3>
201
202 <sect3>
203 <title>Configuration Information</title>
204
205 <para>The config files are used to customize the behavior of the
206 <command>mwm</command> window manager. Information about customizing
207 these files can be found in the <filename>mwmrc(5)</filename> man
208 page.</para>
209
210 </sect3>
211
212 </sect2>
213
214 <sect2 role="content">
215 <title>Contents</title>
216
217 <segmentedlist>
218 <segtitle>Installed Programs</segtitle>
219 <segtitle>Installed Libraries</segtitle>
220 <segtitle>Installed Directories</segtitle>
221
222 <seglistitem>
223 <seg>motif-config, mwm, mxmkmf, uil, and xmbind</seg>
224 <seg>libDtPrints.so, libMrm.so, libUil.so, and libXm.so</seg>
225 <seg>/etc/X11/mwm, /usr/include/Xm, /usr/include/Mrm,
226 /usr/include/uil, /usr/include/Dt, /usr/lib/LessTif, and
227 /usr/share/doc/lesstif-&lesstif-version;</seg>
228 </seglistitem>
229 </segmentedlist>
230
231 <variablelist>
232 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
233 <?dbfo list-presentation="list"?>
234 <?dbhtml list-presentation="table"?>
235
236 <varlistentry id="motif-config">
237 <term><command>motif-config</command></term>
238 <listitem>
239 <para>is used to find out configuration information for packages
240 needing to link to the <application>LessTif</application>
241 libraries.</para>
242 <indexterm zone="lesstif motif-config">
243 <primary sortas="b-motif-config">motif-config</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="mwm">
249 <term><command>mwm</command></term>
250 <listitem>
251 <para>is a window manager that adheres largely to the
252 <application>Motif</application> <command>mwm</command>
253 specification.</para>
254 <indexterm zone="lesstif mwm">
255 <primary sortas="b-mwm">mwm</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="mxmkmf">
261 <term><command>mxmkmf</command></term>
262 <listitem>
263 <para>is the <application>LessTif</application> version of
264 <command>xmkmf</command> which creates a
265 <filename>Makefile</filename> from an
266 <filename>Imakefile</filename>.</para>
267 <indexterm zone="lesstif mxmkmf">
268 <primary sortas="b-mxmkmf">mxmkmf</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="uil">
274 <term><command>uil</command></term>
275 <listitem>
276 <para>is a user interface language compiler which translates a
277 plain text description of the user interface of a
278 <application>Motif</application> application into a
279 machine-readable form.</para>
280 <indexterm zone="lesstif uil">
281 <primary sortas="b-uil">uil</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="xmbind">
287 <term><command>xmbind</command></term>
288 <listitem>
289 <para> configures the virtual key bindings of
290 <application>LessTif</application> applications.</para>
291 <indexterm zone="lesstif xmbind">
292 <primary sortas="b-xmbind">xmbind</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="libXm">
298 <term><filename class='libraryfile'>libXm.so</filename></term>
299 <listitem>
300 <para>is an <application>OSF/Motif®</application> source code
301 compatible library for the <application>X Window
302 System</application>. You can download an excellent reference
303 guide (mainly for programmers) for the Motif-2.1 specification
304 from <ulink
305 url="http://unc.dl.sourceforge.net/lesstif/6B_book.pdf"/>.</para>
306 <indexterm zone="lesstif libXm">
307 <primary sortas="c-libXm">libXm.so</primary>
308 </indexterm>
309 </listitem>
310 </varlistentry>
311
312 </variablelist>
313
314 </sect2>
315
316</sect1>
Note: See TracBrowser for help on using the repository browser.