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