[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 |
|
---|
[a8d5ef7] | 7 | <!ENTITY qt-download-http "&trinity-repo-http;/qt3-3.3.8.d.tar.gz">
|
---|
| 8 | <!ENTITY qt-download-ftp "&trinity-repo-ftp;/qt3-3.3.8.d.tar.gz ">
|
---|
| 9 | <!ENTITY qt-md5sum "78dc675e84aed595375449818cbb589a">
|
---|
| 10 | <!ENTITY qt-size "16.8 MB">
|
---|
| 11 | <!ENTITY qt-buildsize "801 MB">
|
---|
| 12 | <!ENTITY qt-time "8.6 SBU">
|
---|
[feeb99a] | 13 | ]>
|
---|
| 14 |
|
---|
[46bca118] | 15 | <sect1 id="qt" xreflabel="Qt-&qt-version;">
|
---|
[f82c9c69] | 16 | <?dbhtml filename="qt.html" ?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Qt-&qt-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="qt">
|
---|
| 26 | <primary sortas="a-qt">Qt</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
[4e82a189] | 29 | <sect2 role="package">
|
---|
[f82c9c69] | 30 | <title>Introduction to Qt</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>Qt</application> package contains a
|
---|
| 33 | <application>C++</application> GUI library. This is useful for creating
|
---|
| 34 | graphical applications or executing graphical applications that are
|
---|
[b6a2a0e] | 35 | dynamically linked to the <application>Qt</application> library. Two of
|
---|
| 36 | the major users of <application>Qt</application> are
|
---|
[0d7900a] | 37 | <application>KDE</application> and its follow on project,
|
---|
[b6a2a0e] | 38 | <application>Trinity</application>.</para>
|
---|
[f82c9c69] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&qt-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&qt-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &qt-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &qt-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &qt-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &qt-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
[a8d5ef7] | 62 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 63 | <itemizedlist spacing='compact'>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Required Patch: <ulink
|
---|
[09eebec] | 66 | url="&patch-root;/qt-3.3.8.d-libpng15-1.patch"/>
|
---|
[a8d5ef7] | 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
[b6a2a0e] | 70 |
|
---|
[f82c9c69] | 71 | <bridgehead renderas="sect3">Qt Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e77976f] | 74 | <para role="required"><xref linkend="x-window-system"/></para>
|
---|
[f82c9c69] | 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[a8d5ef7] | 77 | <para role="recommended">
|
---|
| 78 | <xref linkend="libjpeg"/> and
|
---|
| 79 | <xref linkend="libmng"/>
|
---|
| 80 | </para>
|
---|
[f82c9c69] | 81 |
|
---|
[751e96f] | 82 | <para>Note: if for whatever reason you do not have the recommended
|
---|
| 83 | libraries installed on your system, you must remove the corresponding
|
---|
[c5c2654] | 84 | <parameter>-system-<replaceable><library></replaceable></parameter> and
|
---|
| 85 | <parameter>-plugin-imgfmt-<replaceable><library></replaceable></parameter>
|
---|
[751e96f] | 86 | parameters from the <command>configure</command> commands shown in the
|
---|
| 87 | instructions below.</para>
|
---|
[d9c80e1] | 88 |
|
---|
[f82c9c69] | 89 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[6122386] | 90 | <para role="optional">
|
---|
[a8d5ef7] | 91 | <xref linkend="cups"/>,
|
---|
| 92 | <xref linkend="mysql"/>,
|
---|
| 93 | <xref linkend="postgresql"/>,
|
---|
| 94 | <xref linkend="unixodbc"/>,
|
---|
| 95 | <xref linkend="sqlite"/>, and
|
---|
| 96 | <ulink url="http://firebird.sourceforge.net/">Firebird</ulink>
|
---|
| 97 | </para>
|
---|
[f82c9c69] | 98 |
|
---|
[58c6057] | 99 | <para condition="html" role="usernotes">User Notes:
|
---|
| 100 | <ulink url="&blfs-wiki;/qt"/></para>
|
---|
| 101 |
|
---|
[f82c9c69] | 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2 role="installation">
|
---|
| 105 | <title>Installation of Qt</title>
|
---|
| 106 |
|
---|
[e05cd03f] | 107 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[71cd2a5a] | 108 | href="../../xincludes/X11R6_symlink.xml"/>
|
---|
| 109 |
|
---|
[f82c9c69] | 110 | <para>There are several ways to install a complicated package such as
|
---|
| 111 | <application>Qt</application>. The files are not completely position
|
---|
| 112 | independent. Installation procedures execute the program
|
---|
| 113 | <command>pkg-config</command> to determine the location of package
|
---|
| 114 | executables, libraries, headers, and other files. For
|
---|
| 115 | <application>Qt</application>, <command>pkg-config</command> will look
|
---|
| 116 | for the file <filename>lib/pkgconfig/qt-mt.pc</filename> which must be
|
---|
| 117 | modified if relocating the package. This file is set up correctly by
|
---|
| 118 | the build process.</para>
|
---|
| 119 |
|
---|
| 120 | <para>The default installation places the files in
|
---|
| 121 | <filename class='directory'>/usr/local/qt/</filename>. Many commercial
|
---|
| 122 | distributions place the files in the system's
|
---|
| 123 | <filename class='directory'>/usr</filename> hierarchy. The package can
|
---|
| 124 | also be installed in an arbitrary directory.</para>
|
---|
| 125 |
|
---|
| 126 | <para>This section will demonstrate two different methods.</para>
|
---|
| 127 |
|
---|
[4b48ee50] | 128 | <warning>
|
---|
| 129 | <para>Building <application>Qt</application> in a
|
---|
| 130 | <command>chroot</command> environment may fail.</para>
|
---|
| 131 | </warning>
|
---|
| 132 |
|
---|
[f82c9c69] | 133 | <note>
|
---|
| 134 | <para>The build time for <application>Qt</application> is quite long. If
|
---|
| 135 | you want to save some time and don't want the tutorials and examples,
|
---|
[751e96f] | 136 | change the first <command>make</command> command to:</para>
|
---|
[f82c9c69] | 137 |
|
---|
| 138 | <screen><userinput>make sub-tools</userinput></screen>
|
---|
| 139 |
|
---|
| 140 | </note>
|
---|
| 141 |
|
---|
| 142 | <sect3>
|
---|
| 143 | <title>Method 1 - Installing in the '/usr' Hierarchy</title>
|
---|
| 144 |
|
---|
| 145 | <para>The advantage of this method is that no updates to the
|
---|
| 146 | <filename>/etc/ld.so.conf</filename> or
|
---|
[58c6057] | 147 | <filename>/etc/man_db.conf</filename> files are required. The package
|
---|
[f82c9c69] | 148 | files are distributed within several subdirectories of the
|
---|
| 149 | <filename class='directory'>/usr</filename> hierarchy.
|
---|
| 150 | This is the method that most commercial distributions use.</para>
|
---|
| 151 |
|
---|
[033c86d] | 152 | <note>
|
---|
| 153 | <para>If <application>Qt</application> is being reinstalled, run the
|
---|
| 154 | following commands from a console or non-Qt based window manager.
|
---|
| 155 | It overwrites <application>Qt</application> libraries that should not
|
---|
| 156 | be in use during the install process.</para>
|
---|
| 157 | </note>
|
---|
[f82c9c69] | 158 |
|
---|
[1afe6c26] | 159 | <screen><userinput>sed -i '/QMAKE_RPATH/d' mkspecs/linux*/qmake.conf &&
|
---|
[751e96f] | 160 |
|
---|
[972150e7] | 161 | bash
|
---|
[a8d5ef7] | 162 | export PATH=$PWD/bin:$PATH &&
|
---|
[2dae8b3d] | 163 | export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH &&
|
---|
[751e96f] | 164 |
|
---|
[09eebec] | 165 | patch -Np1 -i ../qt-3.3.8.d-libpng15-1.patch &&
|
---|
[a8d5ef7] | 166 |
|
---|
| 167 | ./configure -prefix /usr \
|
---|
| 168 | -docdir /usr/share/doc/qt \
|
---|
| 169 | -headerdir /usr/include/qt \
|
---|
| 170 | -plugindir /usr/lib/qt/plugins \
|
---|
| 171 | -datadir /usr/share/qt \
|
---|
| 172 | -sysconfdir /etc/qt \
|
---|
[751e96f] | 173 | -translationdir /usr/share/qt/translations \
|
---|
[a8d5ef7] | 174 | -qt-gif \
|
---|
| 175 | -system-zlib \
|
---|
| 176 | -system-libpng \
|
---|
| 177 | -system-libjpeg \
|
---|
| 178 | -system-libmng \
|
---|
| 179 | -plugin-imgfmt-png \
|
---|
| 180 | -plugin-imgfmt-jpeg \
|
---|
| 181 | -plugin-imgfmt-mng \
|
---|
| 182 | -no-exceptions \
|
---|
| 183 | -thread \
|
---|
[751e96f] | 184 | -tablet &&
|
---|
| 185 |
|
---|
[c52af0c] | 186 | make &&
|
---|
| 187 | exit</userinput></screen>
|
---|
[14db7cc] | 188 |
|
---|
[751e96f] | 189 | <para>This package does not come with a test suite.</para>
|
---|
| 190 |
|
---|
[f82c9c69] | 191 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 192 | user:</para>
|
---|
[14db7cc] | 193 |
|
---|
[f82c9c69] | 194 | <screen role="root"><userinput>make install &&
|
---|
| 195 | ln -v -sf libqt-mt.so /usr/lib/libqt.so &&
|
---|
[1afe6c26] | 196 | ln -v -snf ../../bin /usr/share/qt/bin &&
|
---|
| 197 | ln -v -snf ../../include/qt /usr/share/qt/include &&
|
---|
| 198 | ln -v -snf ../../lib /usr/share/qt/lib &&
|
---|
[f82c9c69] | 199 | cp -v -r doc/man /usr/share &&
|
---|
| 200 | cp -v -r examples /usr/share/doc/qt</userinput></screen>
|
---|
[14db7cc] | 201 |
|
---|
[f82c9c69] | 202 | </sect3>
|
---|
[972150e7] | 203 |
|
---|
[f82c9c69] | 204 | <sect3>
|
---|
| 205 | <title>Method 2 - Installing in '/opt'</title>
|
---|
[972150e7] | 206 |
|
---|
[f82c9c69] | 207 | <para>This is the method recommended by the <application>Qt</application>
|
---|
| 208 | developers. It has the advantage of keeping all the package files
|
---|
| 209 | consolidated in a dedicated directory hierarchy. By using this method,
|
---|
| 210 | an update can be made without overwriting a previous installation and
|
---|
[884db0e3] | 211 | users can easily revert to a previous version by changing one symbolic
|
---|
| 212 | link.</para>
|
---|
[972150e7] | 213 |
|
---|
[f82c9c69] | 214 | <para>The <application>Qt</application> developers use a default location
|
---|
| 215 | of <filename class='directory'>/usr/local/qt/</filename>, however this
|
---|
| 216 | procedure puts the files in <filename
|
---|
| 217 | class='directory'>/opt/qt-&qt-version;/</filename>
|
---|
| 218 | and then creates a symbolic link to <filename>/opt/qt/</filename>.</para>
|
---|
| 219 |
|
---|
| 220 | <screen><userinput>bash
|
---|
[a8d5ef7] | 221 | export QTDIR=$PWD &&
|
---|
[2dae8b3d] | 222 | export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH &&
|
---|
[a8d5ef7] | 223 | export PATH=$PWD/bin:$PATH &&
|
---|
| 224 |
|
---|
[09eebec] | 225 | patch -Np1 -i ../qt-3.3.8.d-libpng15-1.patch &&
|
---|
[751e96f] | 226 |
|
---|
| 227 | ./configure -prefix /opt/qt-&qt-version; \
|
---|
[a8d5ef7] | 228 | -sysconfdir /etc/qt \
|
---|
| 229 | -qt-gif \
|
---|
| 230 | -system-zlib \
|
---|
| 231 | -system-libpng \
|
---|
| 232 | -system-libjpeg \
|
---|
| 233 | -system-libmng \
|
---|
| 234 | -plugin-imgfmt-png \
|
---|
| 235 | -plugin-imgfmt-jpeg \
|
---|
| 236 | -plugin-imgfmt-mng \
|
---|
| 237 | -no-exceptions \
|
---|
| 238 | -thread \
|
---|
[751e96f] | 239 | -tablet &&
|
---|
| 240 |
|
---|
[033c86d] | 241 | make &&
|
---|
| 242 | exit</userinput></screen>
|
---|
[f82c9c69] | 243 |
|
---|
[751e96f] | 244 | <para>This package does not come with a test suite.</para>
|
---|
| 245 |
|
---|
[f82c9c69] | 246 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 247 | user:</para>
|
---|
| 248 |
|
---|
| 249 | <screen role="root"><userinput>make install &&
|
---|
| 250 | ln -v -sfn qt-&qt-version; /opt/qt &&
|
---|
| 251 | ln -v -s libqt-mt.so /opt/qt/lib/libqt.so &&
|
---|
[d8e2f89b] | 252 | cp -v -r doc/man examples /opt/qt/doc</userinput></screen>
|
---|
[f82c9c69] | 253 |
|
---|
| 254 | </sect3>
|
---|
[972150e7] | 255 |
|
---|
[f82c9c69] | 256 | </sect2>
|
---|
[78d0e3c] | 257 |
|
---|
[f82c9c69] | 258 | <sect2 role="commands">
|
---|
| 259 | <title>Command Explanations</title>
|
---|
[972150e7] | 260 |
|
---|
[1afe6c26] | 261 | <para><command>sed -i '/QMAKE_RPATH/d' mkspecs/linux*/qmake.conf</command>:
|
---|
| 262 | In Method 1, <application>Qt</application> is being installed into
|
---|
| 263 | the standard system directories. The runtime library search path does not
|
---|
| 264 | need to be set in this case.</para>
|
---|
[972150e7] | 265 |
|
---|
[f82c9c69] | 266 | <para><command>bash</command>: This command enters a sub-shell to isolate
|
---|
| 267 | environment changes.</para>
|
---|
[972150e7] | 268 |
|
---|
[f82c9c69] | 269 | <para><command>export QTDIR=$PWD</command>: This command defines where
|
---|
| 270 | the root of the <application>Qt</application> directory is located.</para>
|
---|
[972150e7] | 271 |
|
---|
[f82c9c69] | 272 | <para><command>export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH</command>:
|
---|
| 273 | This command allows the not yet installed <application>Qt</application>
|
---|
| 274 | libraries to be used by the not yet installed <application>Qt</application>
|
---|
| 275 | programs.</para>
|
---|
[972150e7] | 276 |
|
---|
[f82c9c69] | 277 | <para><command>export PATH=$PWD/bin:$PATH</command>: This command
|
---|
| 278 | allows the build process to find supporting executables.</para>
|
---|
[972150e7] | 279 |
|
---|
[f82c9c69] | 280 | <para><parameter>-qt-gif</parameter>: This switch adds support for
|
---|
| 281 | <filename>gif</filename> files to the libraries.</para>
|
---|
[972150e7] | 282 |
|
---|
[751e96f] | 283 | <para><parameter>-system-zlib -system-libpng -system-libjpeg
|
---|
| 284 | -system-mng</parameter>: These switches force the build instructions to use
|
---|
| 285 | the shared libraries that are on your system instead of creating a custom
|
---|
| 286 | set of support libraries for these functions.</para>
|
---|
[972150e7] | 287 |
|
---|
[751e96f] | 288 | <para><parameter>-plugin-imgfmt-png -plugin-imgfmt-jpeg
|
---|
| 289 | -plugin-imgfmt-mng</parameter>: These switches enable run-time linking of
|
---|
| 290 | the referenced libraries.</para>
|
---|
[972150e7] | 291 |
|
---|
[b276c41] | 292 | <para>If you pass the
|
---|
| 293 | <option>-plugin-sql-<replaceable><driver></replaceable></option> or
|
---|
| 294 | <option>-qt-sql-<replaceable><driver></replaceable></option> switch
|
---|
| 295 | to the <command>configure</command> command, you must also pass
|
---|
| 296 | <option>-I<replaceable></path/to/sql/headers></replaceable></option>
|
---|
| 297 | so <command>make</command> can find the appropriate header files. For
|
---|
| 298 | instance, building in <application>MySQL</application> support (as opposed
|
---|
| 299 | to building the plugin) will need to use <option>-I/usr/include/mysql
|
---|
| 300 | -qt-sql-mysql</option>.</para>
|
---|
[cc25f73] | 301 |
|
---|
[b276c41] | 302 | <note>
|
---|
[cc25f73] | 303 | <para>To check if <application>mysql</application> is autotetected
|
---|
| 304 | properly, examine the output of <command>./configure -I/usr/include/mysql
|
---|
| 305 | -help</command>. Other database support will require similar
|
---|
| 306 | <command>configure</command> parameters.</para>
|
---|
| 307 | </note>
|
---|
| 308 |
|
---|
[f82c9c69] | 309 | <para><parameter>-no-exceptions</parameter>: This switch disables
|
---|
| 310 | the exceptions coding generated by the <application>C++</application>
|
---|
| 311 | compiler.</para>
|
---|
[fac11e8] | 312 |
|
---|
[f82c9c69] | 313 | <para><parameter>-thread</parameter>: This switch adds
|
---|
| 314 | support for multi-threading.</para>
|
---|
[972150e7] | 315 |
|
---|
[1afe6c26] | 316 | <para><command>ln -v -sf libqt-mt.so /usr/lib/libqt.so</command>: This
|
---|
[f82c9c69] | 317 | command allows <command>configure</command> scripts to find a working
|
---|
| 318 | <application>Qt</application> installation.</para>
|
---|
[972150e7] | 319 |
|
---|
[1afe6c26] | 320 | <para><command>ln -v -snf ../../bin /usr/share/qt/bin</command>: This
|
---|
| 321 | command and the following two allow the
|
---|
| 322 | <filename class="directory">/usr</filename> style installation to mimic
|
---|
| 323 | the <filename class="directory">/opt</filename> style installation by
|
---|
| 324 | making all binaries, headers and libraries available from a single
|
---|
| 325 | directory, <filename class="directory">/usr/share/qt</filename>.</para>
|
---|
| 326 |
|
---|
[d8e2f89b] | 327 | <para><command>cp -v -r doc/man examples /usr/share (or
|
---|
| 328 | /opt/qt/doc)</command>:
|
---|
| 329 | This command installs the man pages and examples which are missed by
|
---|
[f82c9c69] | 330 | <command>make install</command>.</para>
|
---|
[972150e7] | 331 |
|
---|
[f82c9c69] | 332 | <para><command>exit</command>: This command returns to the parent shell
|
---|
[d8e2f89b] | 333 | and eliminates the environment variables set earlier.</para>
|
---|
[972150e7] | 334 |
|
---|
[f82c9c69] | 335 | </sect2>
|
---|
[972150e7] | 336 |
|
---|
[f82c9c69] | 337 | <sect2 role="configuration">
|
---|
| 338 | <title>Configuring Qt</title>
|
---|
[78d0e3c] | 339 |
|
---|
[f82c9c69] | 340 | <sect3 id='qt-config'>
|
---|
| 341 | <title>Configuration Information</title>
|
---|
[972150e7] | 342 |
|
---|
[f82c9c69] | 343 | <para>The <envar>QTDIR</envar> environment variable needs to be set when
|
---|
| 344 | building packages that depend on <application>Qt</application>. Add the
|
---|
| 345 | following to the <filename>.bash_profile</filename> initialization script
|
---|
| 346 | for each user that builds packages using the <application>Qt</application>
|
---|
| 347 | libraries. Alternatively, the variable can be set in the system wide
|
---|
| 348 | <filename>/etc/profile</filename> file.</para>
|
---|
[14db7cc] | 349 |
|
---|
[c52af0c] | 350 | <para>For Method 1 (This is optional, only set this if an application is
|
---|
[1afe6c26] | 351 | unable to find the installed libraries or headers):</para>
|
---|
[14db7cc] | 352 |
|
---|
[1afe6c26] | 353 | <screen><literal>export QTDIR=/usr/share/qt</literal></screen>
|
---|
[14db7cc] | 354 |
|
---|
[f82c9c69] | 355 | <para>or for Method 2:</para>
|
---|
[14db7cc] | 356 |
|
---|
[f82c9c69] | 357 | <screen><literal>export QTDIR=/opt/qt</literal></screen>
|
---|
[78d0e3c] | 358 |
|
---|
[f82c9c69] | 359 | <para>If you installed <application>Qt</application> using Method 2,
|
---|
| 360 | you also need to update the following configuration files so that
|
---|
| 361 | <application>Qt</application> is correctly found by other packages
|
---|
| 362 | and system processes.</para>
|
---|
[78d0e3c] | 363 |
|
---|
[f82c9c69] | 364 | <para>Update the <filename>/etc/ld.so.conf</filename> and
|
---|
[58c6057] | 365 | <filename>/etc/man_db.conf</filename> files:</para>
|
---|
[f82c9c69] | 366 |
|
---|
| 367 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF" &&
|
---|
| 368 | <literal># Begin qt addition to /etc/ld.so.conf
|
---|
[78d0e3c] | 369 |
|
---|
| 370 | /opt/qt/lib
|
---|
| 371 |
|
---|
[f82c9c69] | 372 | # End qt addition</literal>
|
---|
[78d0e3c] | 373 | EOF
|
---|
[f82c9c69] | 374 | ldconfig &&
|
---|
[58c6057] | 375 | cat >> /etc/man_db.conf << "EOF"
|
---|
| 376 | <literal># Begin qt addition to man_db.conf
|
---|
[78d0e3c] | 377 |
|
---|
[c5c2654] | 378 | MANDATORY_MANPATH /opt/qt/doc/man
|
---|
[b01be2c] | 379 | MANPATH_MAP /opt/qt/bin /opt/qt/doc/man
|
---|
| 380 | MANDB_MAP /opt/qt/doc/man /var/cache/man/qt
|
---|
[78d0e3c] | 381 |
|
---|
[58c6057] | 382 | # End qt addition to man_db.conf</literal>
|
---|
[f82c9c69] | 383 | EOF</userinput></screen>
|
---|
| 384 |
|
---|
| 385 | <indexterm zone="qt qt-config">
|
---|
| 386 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 387 | </indexterm>
|
---|
| 388 |
|
---|
| 389 | <indexterm zone="qt qt-config">
|
---|
[58c6057] | 390 | <primary sortas="e-etc-man_db.conf">/etc/man_db.conf</primary>
|
---|
[f82c9c69] | 391 | </indexterm>
|
---|
| 392 |
|
---|
| 393 | <indexterm zone="qt qt-config">
|
---|
| 394 | <primary sortas="e-etc-profile">/etc/profile</primary>
|
---|
| 395 | </indexterm>
|
---|
| 396 |
|
---|
| 397 | <indexterm zone="qt qt-config">
|
---|
| 398 | <primary sortas="e-AA.bash_profile">~/.bash_profile</primary>
|
---|
| 399 | </indexterm>
|
---|
| 400 |
|
---|
| 401 | <para>Update the <envar>PKG_CONFIG_PATH</envar> environment variable
|
---|
| 402 | in your <filename>~/.bash_profile</filename> or
|
---|
| 403 | <filename>/etc/profile</filename> with the following:</para>
|
---|
| 404 |
|
---|
| 405 | <screen><literal>PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/qt/lib/pkgconfig</literal></screen>
|
---|
| 406 |
|
---|
| 407 | <para>If you want the <application>Qt</application> executables in your
|
---|
| 408 | shell search path, update the <envar>PATH</envar> environment variable
|
---|
| 409 | in your <filename>~/.bash_profile</filename> or
|
---|
| 410 | <filename>/etc/profile</filename> to include
|
---|
| 411 | <filename class='directory'>/opt/qt/bin</filename>.</para>
|
---|
| 412 |
|
---|
[a8d5ef7] | 413 | <tip><para>The PATH, MANPATH, and PKG_CONFIG_PATH can be updated in
|
---|
| 414 | the extrapaths.sh (or other script) in the /etc/profile.d directory
|
---|
[0d7900a] | 415 | if you set up the startup files as recommended in
|
---|
[a8d5ef7] | 416 | <xref linkend='postlfs-config-profile'/>.</para></tip>
|
---|
| 417 |
|
---|
[f82c9c69] | 418 | <para>As with most libraries, there is no explicit configuration to do.
|
---|
| 419 | After updating <filename>/etc/ld.so.conf</filename> as explained above,
|
---|
| 420 | run <command>/sbin/ldconfig</command> so that <command>ldd</command>
|
---|
| 421 | can find the shared libraries.</para>
|
---|
| 422 |
|
---|
| 423 | </sect3>
|
---|
| 424 |
|
---|
| 425 | </sect2>
|
---|
| 426 |
|
---|
| 427 | <sect2 role="content">
|
---|
| 428 | <title>Contents</title>
|
---|
| 429 |
|
---|
| 430 | <segmentedlist>
|
---|
| 431 | <segtitle>Installed Programs</segtitle>
|
---|
| 432 | <segtitle>Installed Libraries</segtitle>
|
---|
| 433 | <segtitle>Installed Directories</segtitle>
|
---|
| 434 |
|
---|
| 435 | <seglistitem>
|
---|
| 436 | <seg>assistant, designer, linguist, lrelease, lupdate, moc,
|
---|
| 437 | qm2ts, qmake, qtconfig, and uic</seg>
|
---|
| 438 | <seg>libqt-mt.so, libqt.so libqui.so, libdesignercore.a,
|
---|
| 439 | libeditor.a, and libqassistantclient.a</seg>
|
---|
| 440 | <seg>/opt/qt-&qt-version; or /usr/lib/qt, /usr/share/qt,
|
---|
| 441 | /usr/share/doc/qt, /usr/include/qt, and /etc/qt</seg>
|
---|
| 442 | </seglistitem>
|
---|
| 443 | </segmentedlist>
|
---|
| 444 |
|
---|
| 445 | <variablelist>
|
---|
| 446 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 447 | <?dbfo list-presentation="list"?>
|
---|
| 448 | <?dbhtml list-presentation="table"?>
|
---|
| 449 |
|
---|
| 450 | <varlistentry id="assistant">
|
---|
| 451 | <term><command>assistant</command></term>
|
---|
| 452 | <listitem>
|
---|
| 453 | <para>is a tool for presenting on-line documentation.</para>
|
---|
| 454 | <indexterm zone="qt assistant">
|
---|
| 455 | <primary sortas="b-assistant">assistant</primary>
|
---|
| 456 | </indexterm>
|
---|
| 457 | </listitem>
|
---|
| 458 | </varlistentry>
|
---|
| 459 |
|
---|
| 460 | <varlistentry id="designer">
|
---|
| 461 | <term><command>designer</command></term>
|
---|
| 462 | <listitem>
|
---|
| 463 | <para>is a full-fledged GUI builder. It includes
|
---|
| 464 | powerful features such as preview mode, automatic widget
|
---|
| 465 | layout, support for custom widgets, and an advanced
|
---|
| 466 | property editor.</para>
|
---|
| 467 | <indexterm zone="qt designer">
|
---|
| 468 | <primary sortas="b-designer">designer</primary>
|
---|
| 469 | </indexterm>
|
---|
| 470 | </listitem>
|
---|
| 471 | </varlistentry>
|
---|
| 472 |
|
---|
| 473 | <varlistentry id="linguist">
|
---|
| 474 | <term><command>linguist</command></term>
|
---|
| 475 | <listitem>
|
---|
| 476 | <para>provides support for translating applications into
|
---|
| 477 | local languages. </para>
|
---|
| 478 | <indexterm zone="qt linguist">
|
---|
| 479 | <primary sortas="b-linguist">linguist</primary>
|
---|
| 480 | </indexterm>
|
---|
| 481 | </listitem>
|
---|
| 482 | </varlistentry>
|
---|
| 483 |
|
---|
| 484 | <varlistentry id="lrelease">
|
---|
| 485 | <term><command>lrelease</command></term>
|
---|
| 486 | <listitem>
|
---|
| 487 | <para>is a simple command line tool. It reads a Qt project
|
---|
| 488 | file and produces message files used by the application.</para>
|
---|
| 489 | <indexterm zone="qt lrelease">
|
---|
| 490 | <primary sortas="b-lrelease">lrelease</primary>
|
---|
| 491 | </indexterm>
|
---|
| 492 | </listitem>
|
---|
| 493 | </varlistentry>
|
---|
| 494 |
|
---|
| 495 | <varlistentry id="lupdate">
|
---|
| 496 | <term><command>lupdate</command></term>
|
---|
| 497 | <listitem>
|
---|
| 498 | <para>reads a Qt project file, finds the translatable
|
---|
| 499 | strings in the specified source, header and Qt Designer
|
---|
| 500 | interface files, and produces or updates the translation
|
---|
| 501 | files listed in the project file.</para>
|
---|
| 502 | <indexterm zone="qt lupdate">
|
---|
| 503 | <primary sortas="b-lupdate">lupdate</primary>
|
---|
| 504 | </indexterm>
|
---|
| 505 | </listitem>
|
---|
| 506 | </varlistentry>
|
---|
| 507 |
|
---|
| 508 | <varlistentry id="moc">
|
---|
| 509 | <term><command>moc</command></term>
|
---|
| 510 | <listitem>
|
---|
| 511 | <para>generates Qt meta object support code.</para>
|
---|
| 512 | <indexterm zone="qt moc">
|
---|
| 513 | <primary sortas="b-moc">moc</primary>
|
---|
| 514 | </indexterm>
|
---|
| 515 | </listitem>
|
---|
| 516 | </varlistentry>
|
---|
| 517 |
|
---|
| 518 | <varlistentry id="qm2ts">
|
---|
| 519 | <term><command>qm2ts</command></term>
|
---|
| 520 | <listitem>
|
---|
| 521 | <para>is a tool for converting Qt message file formats.</para>
|
---|
| 522 | <indexterm zone="qt qm2ts">
|
---|
| 523 | <primary sortas="b-qm2ts">qm2ts</primary>
|
---|
| 524 | </indexterm>
|
---|
| 525 | </listitem>
|
---|
| 526 | </varlistentry>
|
---|
| 527 |
|
---|
| 528 | <varlistentry id="qmake">
|
---|
| 529 | <term><command>qmake</command></term>
|
---|
| 530 | <listitem>
|
---|
| 531 | <para>qmake uses information stored in project files to
|
---|
| 532 | determine what should go in the makefiles it generates.</para>
|
---|
| 533 | <indexterm zone="qt qmake">
|
---|
| 534 | <primary sortas="b-qmake">qmake</primary>
|
---|
| 535 | </indexterm>
|
---|
| 536 | </listitem>
|
---|
| 537 | </varlistentry>
|
---|
| 538 |
|
---|
| 539 | <varlistentry id="qtconfig">
|
---|
| 540 | <term><command>qtconfig</command></term>
|
---|
| 541 | <listitem>
|
---|
| 542 | <para>is used to customize the appearance of Qt applications.</para>
|
---|
| 543 | <indexterm zone="qt qtconfig">
|
---|
| 544 | <primary sortas="b-qtconfig">qtconfig</primary>
|
---|
| 545 | </indexterm>
|
---|
| 546 | </listitem>
|
---|
| 547 | </varlistentry>
|
---|
| 548 |
|
---|
| 549 | <varlistentry id="uic">
|
---|
| 550 | <term><command>uic</command></term>
|
---|
| 551 | <listitem>
|
---|
| 552 | <para>is a Qt user interface compiler.</para>
|
---|
| 553 | <indexterm zone="qt uic">
|
---|
| 554 | <primary sortas="b-uic">uic</primary>
|
---|
| 555 | </indexterm>
|
---|
| 556 | </listitem>
|
---|
| 557 | </varlistentry>
|
---|
| 558 |
|
---|
| 559 | </variablelist>
|
---|
| 560 |
|
---|
| 561 | </sect2>
|
---|
| 562 |
|
---|
[972150e7] | 563 | </sect1>
|
---|