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