[feeb99a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[feeb99a] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[fce275e] | 7 | <!ENTITY lesstif-download-http "&sourceforge-repo;/lesstif/lesstif-&lesstif-version;.tar.bz2">
|
---|
[67f79cec] | 8 | <!ENTITY lesstif-download-ftp " ">
|
---|
[70d93337] | 9 | <!ENTITY lesstif-md5sum "754187dbac09fcf5d18296437e72a32f">
|
---|
[e290b228] | 10 | <!ENTITY lesstif-size "2.4 MB">
|
---|
[78768d2] | 11 | <!ENTITY lesstif-buildsize "160 MB (includes building and running the test suite)">
|
---|
[34abe1c] | 12 | <!ENTITY lesstif-time "4.1 SBU (includes building the test suite)">
|
---|
[feeb99a] | 13 | ]>
|
---|
| 14 |
|
---|
[46bca118] | 15 | <sect1 id="lesstif" xreflabel="LessTif-&lesstif-version;">
|
---|
[31eff503] | 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 |
|
---|
[70d93337] | 35 | &lfs65_checked;
|
---|
| 36 |
|
---|
[31eff503] | 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'>
|
---|
[34abe1c] | 61 | <listitem>
|
---|
| 62 | <para>Required patch: <ulink
|
---|
| 63 | url="&patch-root;/lesstif-&lesstif-version;-testsuite_fix-1.patch"/></para>
|
---|
| 64 | </listitem>
|
---|
[31eff503] | 65 | </itemizedlist>
|
---|
| 66 |
|
---|
| 67 | <bridgehead renderas="sect3">LessTif Dependencies</bridgehead>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[f862e8ef] | 70 | <para role="required"><xref linkend="xorg7-lib"/></para>
|
---|
[31eff503] | 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[76a39aa] | 73 | <para role="optional"><xref linkend="lynx"/> or <xref linkend="Links"/>
|
---|
| 74 | (used to generate the <filename>INSTALL</filename> documentation file) and
|
---|
[31eff503] | 75 | <ulink url="http://dmalloc.com">Dmalloc</ulink></para>
|
---|
| 76 |
|
---|
[c5c2654] | 77 | <para condition="html" role="usernotes">User Notes:
|
---|
| 78 | <ulink url="&blfs-wiki;/lesstif"/></para>
|
---|
| 79 |
|
---|
[31eff503] | 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="installation">
|
---|
| 83 | <title>Installation of LessTif</title>
|
---|
| 84 |
|
---|
[22cfe82] | 85 | <para>First, rename a man page file that conflicts with
|
---|
| 86 | <application>perl</application>:</para>
|
---|
| 87 |
|
---|
| 88 | <screen><userinput>pushd doc/lessdox/widgets &&
|
---|
| 89 | sed -i -e 's/\tShell.3/\tshell.3/' Makefile.in &&
|
---|
| 90 | mv Shell.3 shell.3 &&
|
---|
| 91 | popd</userinput></screen>
|
---|
| 92 |
|
---|
[31eff503] | 93 | <para>Install <application>LessTif</application> by running the following
|
---|
| 94 | commands:</para>
|
---|
| 95 |
|
---|
[70d93337] | 96 | <screen><userinput>patch -Np1 -i ../lesstif-&lesstif-version;-testsuite_fix-1.patch &&
|
---|
[34abe1c] | 97 | ./configure --prefix=/usr \
|
---|
[f67fa9df] | 98 | --sysconfdir=/etc/X11 \
|
---|
[34abe1c] | 99 | --disable-debug \
|
---|
| 100 | --enable-production \
|
---|
[9baa713] | 101 | --with-xdnd \
|
---|
| 102 | --x-includes=$XORG_PREFIX/include \
|
---|
| 103 | --x-libraries=$XORG_PREFIX/lib &&
|
---|
[f67fa9df] | 104 | sed -i "s@libdir)/X11/mwm@sysconfdir)/mwm@" clients/Motif-2.1/mwm/Makefile &&
|
---|
[31eff503] | 105 | make rootdir=/usr/share/doc/lesstif-&lesstif-version;</userinput></screen>
|
---|
[78768d2] | 106 |
|
---|
[34abe1c] | 107 | <para>This package requires that it is installed before the test suite is
|
---|
[3a73354f] | 108 | run. The commands to run the tests are located a bit later in the
|
---|
| 109 | instructions.</para>
|
---|
| 110 |
|
---|
[31eff503] | 111 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[78768d2] | 112 |
|
---|
[34abe1c] | 113 | <screen role="root"><userinput>make rootdir=/usr/share/doc/lesstif-&lesstif-version; install &&
|
---|
[3a73354f] | 114 | ldconfig</userinput></screen>
|
---|
| 115 |
|
---|
[f67fa9df] | 116 | <para>Applicatons that utilize Xorg libraries often, and incorrectly,
|
---|
[410e228b] | 117 | expect to find configuration files in
|
---|
[f67fa9df] | 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>
|
---|
[3a73354f] | 121 |
|
---|
[f67fa9df] | 122 | <screen role="root"><userinput>ln -v -sf /etc/X11/mwm $XORG_PREFIX/lib/X11</userinput></screen>
|
---|
[feeb99a] | 123 |
|
---|
[31eff503] | 124 | </sect2>
|
---|
[feeb99a] | 125 |
|
---|
[31eff503] | 126 | <sect2 role="commands">
|
---|
| 127 | <title>Command Explanations</title>
|
---|
[feeb99a] | 128 |
|
---|
[31eff503] | 129 | <para><parameter>--disable-debug</parameter>: Do not generate debugging
|
---|
| 130 | information.</para>
|
---|
[feeb99a] | 131 |
|
---|
[31eff503] | 132 | <para><parameter>--enable-production</parameter>: Build the release version
|
---|
| 133 | of the <application>LessTif</application> libraries.</para>
|
---|
[feeb99a] | 134 |
|
---|
[31eff503] | 135 | <para><parameter>--with-xdnd</parameter>: Enable XDND GNOME compatibility
|
---|
| 136 | support.</para>
|
---|
[feeb99a] | 137 |
|
---|
[31eff503] | 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>
|
---|
[feeb99a] | 142 |
|
---|
[9baa713] | 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 |
|
---|
[410e228b] | 147 | <para><command>sed -i "s@libdir)/X11/mwm@sysconfdir)/mwm@"
|
---|
[f67fa9df] | 148 | clients/Motif-2.1/mwm/Makefile</command>: This corrects the installation
|
---|
| 149 | prefix for the mwm directory for FHS compliance.</para>
|
---|
[feeb99a] | 150 |
|
---|
[31eff503] | 151 | </sect2>
|
---|
[feeb99a] | 152 |
|
---|
[4f2f35c6] | 153 | <sect2 role="testing">
|
---|
[31eff503] | 154 | <title>Testing LessTif</title>
|
---|
[e290b228] | 155 |
|
---|
[31eff503] | 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>
|
---|
[feeb99a] | 160 |
|
---|
[31eff503] | 161 | <screen><userinput>cd test &&
|
---|
[feeb99a] | 162 | ./configure &&
|
---|
[31eff503] | 163 | make</userinput></screen>
|
---|
| 164 |
|
---|
| 165 | <para>To run the tests, issue the following commands:</para>
|
---|
| 166 |
|
---|
| 167 | <screen><userinput>cd Xm &&
|
---|
| 168 | ./testall *</userinput></screen>
|
---|
| 169 |
|
---|
[34abe1c] | 170 | <para>You may need to manually close four of the test windows. The first
|
---|
[31eff503] | 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
|
---|
[34abe1c] | 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>
|
---|
[31eff503] | 180 |
|
---|
[70d93337] | 181 | <!-- Last test run: 86 failed out of 605. -->
|
---|
| 182 |
|
---|
[34abe1c] | 183 | <para>As many as 101 tests are known to fail. The patch applied at the
|
---|
[31eff503] | 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>
|
---|
[f45b1953] | 325 |
|
---|
| 326 | </sect1>
|
---|