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