[7af92fe5] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[1de3dce9] | 7 | <!ENTITY qt4-download-http
|
---|
[a6c6923] | 8 | "http://download.qt-project.org/official_releases/qt/4.8/&qt4-version;/qt-everywhere-opensource-src-&qt4-version;.tar.gz">
|
---|
[7af92fe5] | 9 | <!ENTITY qt4-download-ftp " ">
|
---|
[1de3dce9] | 10 | <!ENTITY qt4-md5sum "1864987bdbb2f58f8ae8b350dfdbe133">
|
---|
| 11 | <!ENTITY qt4-size "231 MB">
|
---|
[7af92fe5] | 12 | <!ENTITY qt4-buildsize "1.9 GB">
|
---|
[1de3dce9] | 13 | <!ENTITY qt4-time "41 SBU">
|
---|
[7af92fe5] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="qt4" xreflabel="Qt-&qt4-version;">
|
---|
| 17 | <?dbhtml filename="qt4.html" ?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>Qt-&qt4-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="qt4">
|
---|
| 27 | <primary sortas="a-Qt">Qt</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to Qt</title>
|
---|
| 32 |
|
---|
| 33 | <para>
|
---|
| 34 | <application>Qt</application> is a cross-platform application
|
---|
| 35 | framework that is widely used for developing application software
|
---|
| 36 | with a graphical user interface (GUI) (in which cases Qt is classified
|
---|
| 37 | as a widget toolkit), and also used for developing non-GUI programs such
|
---|
| 38 | as command-line tools and consoles for servers. One of the major users
|
---|
| 39 | of <application>Qt</application> is <application>KDE</application>.
|
---|
| 40 | </para>
|
---|
| 41 |
|
---|
[54e9eea] | 42 | &lfs74_checked;
|
---|
[7af92fe5] | 43 |
|
---|
| 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&qt4-download-http;"/>
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download (FTP): <ulink url="&qt4-download-ftp;"/>
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download MD5 sum: &qt4-md5sum;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Download size: &qt4-size;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated disk space required: &qt4-buildsize;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
| 72 | <para>
|
---|
| 73 | Estimated build time: &qt4-time;
|
---|
| 74 | </para>
|
---|
| 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect3">Qt Dependencies</bridgehead>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 81 | <para role="required">
|
---|
[a7eaa89] | 82 | <xref linkend="alsa-lib"/>,
|
---|
| 83 | <xref linkend="mesalib"/> and
|
---|
| 84 | <xref linkend="qtchooser"/>
|
---|
[7af92fe5] | 85 | </para>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 88 | <para role="recommended">
|
---|
| 89 | <xref linkend="cacerts"/>,
|
---|
| 90 | <xref linkend="dbus"/>,
|
---|
| 91 | <xref linkend="glib2"/>,
|
---|
| 92 | <xref linkend="icu"/> (unicode support),
|
---|
| 93 | <xref linkend="libjpeg"/>,
|
---|
| 94 | <xref linkend="libmng"/>,
|
---|
| 95 | <xref linkend="libpng"/>,
|
---|
| 96 | <xref linkend="libtiff"/>,
|
---|
[a7eaa89] | 97 | <xref linkend="openssl"/> and
|
---|
[7af92fe5] | 98 | <xref linkend="sqlite"/>
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
| 101 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 102 | <para role="optional">
|
---|
| 103 | <xref linkend="cups"/>,
|
---|
| 104 | <xref linkend="gtk2"/> (GTK+ 2 theme support),
|
---|
| 105 | <xref linkend="gst-plugins-base"/> (For QtWebKit HTML5 Video),
|
---|
| 106 | <xref linkend="mysql"/>,
|
---|
| 107 | <xref linkend="postgresql"/>,
|
---|
[a7eaa89] | 108 | <xref linkend="pulseaudio"/> and
|
---|
[7af92fe5] | 109 | <xref linkend="unixodbc"/>
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <para condition="html" role="usernotes">User Notes:
|
---|
| 113 | <ulink url="&blfs-wiki;/qt4"/>
|
---|
| 114 | </para>
|
---|
| 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="installation">
|
---|
| 118 | <title>Installation of Qt</title>
|
---|
| 119 |
|
---|
[54e9eea] | 120 | <para>
|
---|
| 121 | There are several ways to install a complicated package such as
|
---|
| 122 | <application>Qt</application>. The files are not completely position
|
---|
| 123 | independent. Installation procedures execute the program
|
---|
| 124 | <command>pkg-config</command> to determine the location of package
|
---|
| 125 | executables, libraries, headers, and other files. For
|
---|
| 126 | <application>Qt</application>, <command>pkg-config</command> will look
|
---|
| 127 | for the appropriate <filename>lib/pkgconfig/Qt*.pc</filename> files
|
---|
| 128 | which must be modified if relocating the package. These files are set up
|
---|
| 129 | correctly by the build process.
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
| 132 | <para>
|
---|
| 133 | The default installation places the files in <filename
|
---|
| 134 | class="directory">/usr/local/qt</filename>. Many commercial
|
---|
| 135 | distributions place the files in the system's <filename
|
---|
| 136 | class="directory">/usr</filename> hierarchy. The package can also be
|
---|
| 137 | installed in an arbitrary directory.
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
| 140 | <para>
|
---|
| 141 | The advantage of installing in <filename
|
---|
| 142 | class="directory">/usr</filename> is that no updates to the
|
---|
| 143 | <filename>/etc/ld.so.conf</filename> or
|
---|
| 144 | <filename>/etc/man_db.conf</filename> files are required. The package
|
---|
| 145 | files are distributed within several subdirectories of the <filename
|
---|
| 146 | class="directory">/usr</filename> hierarchy. This is the method that
|
---|
| 147 | most commercial distributions use. It is also supported by the
|
---|
| 148 | <application>qtchooser</application> application.
|
---|
| 149 | </para>
|
---|
| 150 |
|
---|
| 151 | <para>
|
---|
| 152 | The advantage of installing <application>Qt</application> in a custom
|
---|
| 153 | directory such as <filename
|
---|
| 154 | class="directory">/opt/qt-&qt4-version;</filename> is that it keeps all
|
---|
| 155 | the package files consolidated in a dedicated directory hierarchy. By
|
---|
| 156 | using this method, an update can be made without overwriting a previous
|
---|
| 157 | installation and users can easily revert to a previous version by
|
---|
| 158 | changing one symbolic link or merely changing the PATH variable. It
|
---|
| 159 | also allows a developer to maintain multiple versions of
|
---|
| 160 | <application>Qt</application> for testing.
|
---|
| 161 | </para>
|
---|
| 162 |
|
---|
| 163 | <warning>
|
---|
[8d4b121] | 164 | <para>
|
---|
| 165 | If you did not install some of the recommended dependencies, examine
|
---|
| 166 | <command>./configure --help</command> output to check how to disable
|
---|
| 167 | them or use internal versions bundled in the source tarball.
|
---|
| 168 | </para>
|
---|
| 169 | </warning>
|
---|
| 170 |
|
---|
[7af92fe5] | 171 | <caution>
|
---|
| 172 | <para>
|
---|
[54e9eea] | 173 | If <application>Qt</application> is being reinstalled into the
|
---|
| 174 | same directory as an existing instance, run the
|
---|
[7af92fe5] | 175 | following commands from a console or non-Qt based window manager.
|
---|
| 176 | It overwrites <application>Qt</application> libraries that should
|
---|
| 177 | not be in use during the install process.
|
---|
| 178 | </para>
|
---|
| 179 | </caution>
|
---|
| 180 |
|
---|
| 181 | <note>
|
---|
| 182 | <para>
|
---|
| 183 | The build time and space required for the full
|
---|
| 184 | <application>Qt</application> is quite long. The instructions below
|
---|
| 185 | do not build the tutorials and examples. Removing the
|
---|
| 186 | <parameter>-nomake</parameter> lines will create a complete build.
|
---|
| 187 | </para>
|
---|
| 188 | </note>
|
---|
| 189 |
|
---|
[54e9eea] | 190 | <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>
|
---|
| 191 |
|
---|
[7af92fe5] | 192 | <para>
|
---|
| 193 | Install <application>Qt</application> by running the
|
---|
| 194 | following commands:
|
---|
| 195 | </para>
|
---|
| 196 |
|
---|
[a6c6923] | 197 | <screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
|
---|
| 198 | config.tests/unix/libmng/libmng.cpp &&
|
---|
| 199 |
|
---|
[a7eaa89] | 200 | ./configure -confirm-license \
|
---|
| 201 | -opensource \
|
---|
| 202 | -release \
|
---|
| 203 | -prefix /usr \
|
---|
| 204 | -bindir /usr/lib/qt4/bin \
|
---|
| 205 | -headerdir /usr/include/qt4 \
|
---|
| 206 | -datadir /usr/share/qt4 \
|
---|
| 207 | -plugindir /usr/lib/qt4/plugins \
|
---|
| 208 | -importdir /usr/lib/qt4/imports \
|
---|
[7af92fe5] | 209 | -translationdir /usr/share/qt4/translations \
|
---|
[a7eaa89] | 210 | -sysconfdir /etc/xdg \
|
---|
| 211 | -docdir /usr/share/doc/qt4 \
|
---|
| 212 | -demosdir /usr/share/doc/qt4/demos \
|
---|
| 213 | -examplesdir /usr/share/doc/qt4/examples \
|
---|
| 214 | -dbus-linked \
|
---|
| 215 | -openssl-linked \
|
---|
| 216 | -system-sqlite \
|
---|
| 217 | -no-phonon \
|
---|
[7af92fe5] | 218 | -no-phonon-backend \
|
---|
[a7eaa89] | 219 | -no-nis \
|
---|
| 220 | -no-openvg \
|
---|
| 221 | -nomake demos \
|
---|
| 222 | -nomake examples \
|
---|
| 223 | -optimized-qmake &&
|
---|
[7af92fe5] | 224 | make</userinput></screen>
|
---|
| 225 |
|
---|
| 226 | <para>
|
---|
| 227 | This package does not come with a test suite.
|
---|
| 228 | </para>
|
---|
| 229 |
|
---|
| 230 | <para>
|
---|
| 231 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 232 | </para>
|
---|
| 233 |
|
---|
| 234 | <screen role="root"><userinput>make install &&
|
---|
| 235 | rm -rf /usr/tests &&
|
---|
| 236 | install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
---|
[a7eaa89] | 237 | /usr/share/pixmaps/qt4logo.png &&
|
---|
[7af92fe5] | 238 | install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \
|
---|
| 239 | /usr/share/pixmaps/assistant-qt4.png &&
|
---|
| 240 | install -v -Dm644 tools/designer/src/designer/images/designer.png \
|
---|
[a7eaa89] | 241 | /usr/share/pixmaps/designer-qt4.png &&
|
---|
[7af92fe5] | 242 | install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
[a7eaa89] | 243 | /usr/share/pixmaps/linguist-qt4.png &&
|
---|
[7af92fe5] | 244 | install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
| 245 | /usr/share/pixmaps/qdbusviewer-qt4.png</userinput></screen>
|
---|
| 246 |
|
---|
| 247 | <para>
|
---|
| 248 | Remove references to the build directory from installed files by
|
---|
| 249 | running the following command as the
|
---|
| 250 | <systemitem class="username">root</systemitem> user:
|
---|
| 251 | </para>
|
---|
| 252 |
|
---|
[a6c6923] | 253 | <screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \
|
---|
| 254 | Designer Gui Help Multimedia Network OpenGL Script \
|
---|
| 255 | ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml
|
---|
| 256 | do
|
---|
| 257 | sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' \
|
---|
| 258 | /usr/lib/libQt${file}.prl
|
---|
| 259 | perl -pi -e "s, -L$PWD/?\S+,,g" /usr/lib/pkgconfig/Qt${file}.pc
|
---|
| 260 | done
|
---|
| 261 | unset file</userinput></screen>
|
---|
[7af92fe5] | 262 |
|
---|
| 263 | <para>
|
---|
| 264 | Symlink the <application>Qt</application> executables into
|
---|
| 265 | <filename class="directory">/usr/bin</filename> by running the
|
---|
| 266 | following commands as the
|
---|
| 267 | <systemitem class="username">root</systemitem> user:
|
---|
| 268 | </para>
|
---|
| 269 |
|
---|
| 270 | <screen role="root"><userinput>for file in /usr/lib/qt4/bin/*
|
---|
| 271 | do
|
---|
| 272 | ln -sfv ../lib/qt4/bin/$(basename $file) /usr/bin/$(basename $file)-qt4
|
---|
| 273 | done</userinput></screen>
|
---|
| 274 |
|
---|
[54e9eea] | 275 | <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt4-version;</bridgehead>
|
---|
| 276 |
|
---|
| 277 | <para>
|
---|
| 278 | Install <application>Qt</application> in /opt/qt-&qt4-version;
|
---|
| 279 | by running the following commands:
|
---|
| 280 | </para>
|
---|
| 281 |
|
---|
| 282 | <screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
|
---|
| 283 | config.tests/unix/libmng/libmng.cpp &&
|
---|
| 284 |
|
---|
| 285 | export QTDIR=/opt/qt-&qt4-version;
|
---|
| 286 |
|
---|
| 287 | ./configure -prefix $QTDIR \
|
---|
| 288 | -sysconfdir /etc/xdg \
|
---|
| 289 | -confirm-license \
|
---|
| 290 | -opensource \
|
---|
| 291 | -release \
|
---|
| 292 | -dbus-linked \
|
---|
| 293 | -openssl-linked \
|
---|
| 294 | -system-sqlite \
|
---|
| 295 | -plugin-sql-sqlite \
|
---|
| 296 | -no-phonon \
|
---|
| 297 | -no-phonon-backend \
|
---|
| 298 | -no-nis \
|
---|
| 299 | -no-openvg \
|
---|
| 300 | -nomake demos \
|
---|
| 301 | -nomake examples \
|
---|
| 302 | -optimized-qmake &&
|
---|
| 303 |
|
---|
| 304 | make</userinput></screen>
|
---|
| 305 |
|
---|
| 306 | <para>
|
---|
| 307 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 308 | </para>
|
---|
| 309 |
|
---|
| 310 | <screen role="root"><userinput>make install &&
|
---|
| 311 | ln -svfn qt-$VERSION /opt/qt &&
|
---|
| 312 |
|
---|
| 313 | install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
---|
| 314 | /usr/share/pixmaps/qt4logo.png &&
|
---|
| 315 | install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \
|
---|
| 316 | /usr/share/pixmaps/assistant-qt4.png &&
|
---|
| 317 | install -v -Dm644 tools/designer/src/designer/images/designer.png \
|
---|
| 318 | /usr/share/pixmaps/designer-qt4.png &&
|
---|
| 319 | install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
| 320 | /usr/share/pixmaps/linguist-qt4.png &&
|
---|
| 321 | install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
| 322 | /usr/share/pixmaps/qdbusviewer-qt4.png</userinput></screen>
|
---|
| 323 |
|
---|
| 324 | <para>
|
---|
| 325 | Remove references to the build directory from installed files by
|
---|
| 326 | running the following command as the
|
---|
| 327 | <systemitem class="username">root</systemitem> user:
|
---|
| 328 | </para>
|
---|
| 329 |
|
---|
| 330 | <screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \
|
---|
| 331 | Designer Gui Help Multimedia Network OpenGL Script \
|
---|
| 332 | ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml; do
|
---|
| 333 | sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' \
|
---|
| 334 | $QTDIR/lib/libQt${file}.prl
|
---|
| 335 | perl -pi -e "s, -L$PWD/?\S+,,g" $QTDIR/lib/pkgconfig/Qt${file}.pc
|
---|
| 336 | done
|
---|
| 337 |
|
---|
| 338 | unset file</userinput></screen>
|
---|
| 339 |
|
---|
[7af92fe5] | 340 | </sect2>
|
---|
| 341 |
|
---|
| 342 | <sect2 role="commands">
|
---|
| 343 | <title>Command Explanations</title>
|
---|
| 344 |
|
---|
[a6c6923] | 345 | <para>
|
---|
| 346 | <command>sed -i "..." ...</command>: This command fixes
|
---|
| 347 | detection of <application>libmng</application> 2.0.
|
---|
| 348 | </para>
|
---|
| 349 |
|
---|
[7af92fe5] | 350 | <para>
|
---|
| 351 | <parameter>-confirm-license</parameter>: Accept license
|
---|
| 352 | without prompting user during configuration.
|
---|
| 353 | </para>
|
---|
| 354 |
|
---|
| 355 | <para>
|
---|
| 356 | <parameter>-opensource</parameter>: Install the opensource
|
---|
| 357 | version of <application>Qt</application>.
|
---|
| 358 | </para>
|
---|
| 359 |
|
---|
[8d4b121] | 360 | <para>
|
---|
| 361 | <parameter>-release</parameter>: This switch disables
|
---|
| 362 | building with debugging symbols.
|
---|
| 363 | </para>
|
---|
[7af92fe5] | 364 |
|
---|
| 365 | <para>
|
---|
| 366 | <parameter>-nomake examples -nomake demos</parameter>:
|
---|
| 367 | These switches disable building programs that are only of
|
---|
| 368 | interest to a <application>Qt</application> developer.
|
---|
| 369 | </para>
|
---|
| 370 |
|
---|
| 371 | <para>
|
---|
| 372 | <parameter>-system-sqlite</parameter>: This switch enables use
|
---|
| 373 | the system version of <application>SQLite</application>.
|
---|
| 374 | </para>
|
---|
| 375 |
|
---|
| 376 | <para>
|
---|
| 377 | <parameter>-no-nis</parameter>: This switch disables support
|
---|
| 378 | for Network Information Service (NIS) which has been
|
---|
| 379 | deprecated in recent versions of <application>Glibc</application>.
|
---|
| 380 | </para>
|
---|
| 381 |
|
---|
| 382 | <para>
|
---|
| 383 | <parameter>-no-phonon -no-phonon-backend</parameter>: These
|
---|
| 384 | switches disable building of the bundled
|
---|
| 385 | <application>Phonon</application> library. Better version
|
---|
| 386 | is provided by <xref linkend="phonon"/> package.
|
---|
| 387 | </para>
|
---|
| 388 |
|
---|
| 389 | <para>
|
---|
| 390 | <parameter>-dbus-linkend -openssl-linkend</parameter>: These
|
---|
| 391 | switches enable explicit linking of the
|
---|
| 392 | <application>D-Bus</application> and
|
---|
| 393 | <application>OpenSSL</application> libraries into
|
---|
| 394 | <application>Qt</application> libraries instead of
|
---|
| 395 | <command>dlopen()</command>-ing them.
|
---|
| 396 | </para>
|
---|
| 397 |
|
---|
| 398 | <para>
|
---|
| 399 | <parameter>-no-openvg</parameter>: This switch disables
|
---|
| 400 | <application>OpenVG</application> support in
|
---|
| 401 | <application>Qt</application>.
|
---|
| 402 | </para>
|
---|
| 403 |
|
---|
[8d4b121] | 404 | <para>
|
---|
| 405 | <parameter>-optimized-qmake</parameter>: This switch enables
|
---|
| 406 | building of the optimized <command>qmake</command> program.
|
---|
| 407 | </para>
|
---|
| 408 |
|
---|
[7af92fe5] | 409 | </sect2>
|
---|
| 410 |
|
---|
| 411 | <sect2 role="configuration">
|
---|
| 412 | <title>Configuring Qt</title>
|
---|
| 413 |
|
---|
| 414 | <sect3 id="qt4-config">
|
---|
| 415 | <title>Configuration Information</title>
|
---|
| 416 |
|
---|
| 417 | <para>
|
---|
[54e9eea] | 418 | If you installed <application>Qt</application> in
|
---|
| 419 | <filename class="directory">/usr</filename>, create
|
---|
| 420 | an environment variable needed by certain packages.
|
---|
[7af92fe5] | 421 | As the <systemitem class="username">root</systemitem> user:
|
---|
| 422 | </para>
|
---|
| 423 |
|
---|
| 424 | <screen role="root"><userinput>cat > /etc/profile.d/qt.sh << EOF
|
---|
| 425 | <literal># Begin /etc/profile.d/qt.sh
|
---|
| 426 |
|
---|
| 427 | QTDIR=/usr
|
---|
| 428 |
|
---|
| 429 | export QTDIR
|
---|
| 430 |
|
---|
| 431 | # End /etc/profile.d/qt.sh</literal>
|
---|
| 432 | EOF</userinput></screen>
|
---|
| 433 |
|
---|
[54e9eea] | 434 | <para>
|
---|
| 435 | If you installed <application>Qt</application> in a location other
|
---|
| 436 | than <filename class="directory">/usr</filename>, you need to update
|
---|
| 437 | the following configuration files so that <application>Qt</application>
|
---|
| 438 | is correctly found by other packages and system processes.
|
---|
| 439 | </para>
|
---|
| 440 |
|
---|
| 441 | <para>
|
---|
| 442 | As the <systemitem class="username">root</systemitem> user, update
|
---|
| 443 | the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
---|
| 444 | run-time cache file:
|
---|
| 445 | </para>
|
---|
| 446 |
|
---|
| 447 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
| 448 | <literal># Begin Qt addition
|
---|
| 449 |
|
---|
| 450 | /opt/qt/lib
|
---|
| 451 |
|
---|
| 452 | # End Qt addition</literal>
|
---|
| 453 | EOF
|
---|
| 454 |
|
---|
| 455 | ldconfig</userinput></screen>
|
---|
| 456 |
|
---|
| 457 | <para>
|
---|
| 458 | As the <systemitem class="username">root</systemitem> user, create
|
---|
| 459 | the <filename>/etc/profile.d/qt.sh</filename> file:
|
---|
| 460 | </para>
|
---|
| 461 |
|
---|
| 462 | <screen role="root"><userinput>cat > /etc/profile.d/qt.sh << EOF
|
---|
| 463 | <literal># Begin /etc/profile.d/qt.sh
|
---|
| 464 |
|
---|
| 465 | QTDIR=/opt/qt
|
---|
| 466 |
|
---|
| 467 | pathappend /opt/qt/bin PATH
|
---|
| 468 | pathappend /opt/qt/lib/pkgconfig PKG_CONFIG_PATH
|
---|
| 469 |
|
---|
| 470 | export QTDIR
|
---|
| 471 |
|
---|
| 472 | # End /etc/profile.d/qt.sh</literal>
|
---|
| 473 | EOF</userinput></screen>
|
---|
| 474 |
|
---|
| 475 | <indexterm zone="qt4 qtconfig-qt4">
|
---|
| 476 | <primary sortas="e-etc-profile.d-qt.sh">/etc/profile.d/qt.sh</primary>
|
---|
| 477 | </indexterm>
|
---|
| 478 |
|
---|
[7af92fe5] | 479 | <para>
|
---|
[54e9eea] | 480 | For all methods, Create the menu entries for installed applications.
|
---|
[7af92fe5] | 481 | As the <systemitem class="username">root</systemitem> user:
|
---|
| 482 | </para>
|
---|
| 483 |
|
---|
[8d4b121] | 484 | <screen role="root"><userinput>install -dm755 /usr/share/applications
|
---|
[54e9eea] | 485 |
|
---|
[8d4b121] | 486 | cat > /usr/share/applications/qtconfig-qt4.desktop << "EOF"
|
---|
[7af92fe5] | 487 | <literal>[Desktop Entry]
|
---|
| 488 | Name=Qt4 Config
|
---|
| 489 | Comment=Configure Qt4 behavior, styles, fonts
|
---|
| 490 | Exec=qtconfig-qt4
|
---|
| 491 | Icon=qt4logo
|
---|
| 492 | Terminal=false
|
---|
| 493 | Encoding=UTF-8
|
---|
| 494 | Type=Application
|
---|
| 495 | Categories=Qt;Settings;</literal>
|
---|
| 496 | EOF
|
---|
[54e9eea] | 497 |
|
---|
[7af92fe5] | 498 | cat > /usr/share/applications/assistant-qt4.desktop << "EOF"
|
---|
| 499 | <literal>[Desktop Entry]
|
---|
| 500 | Name=Qt4 Assistant
|
---|
| 501 | Comment=Shows Qt4 documentation and examples
|
---|
| 502 | Exec=assistant-qt4
|
---|
| 503 | Icon=assistant-qt4
|
---|
| 504 | Terminal=false
|
---|
| 505 | Encoding=UTF-8
|
---|
| 506 | Type=Application
|
---|
| 507 | Categories=Qt;Development;Documentation;</literal>
|
---|
| 508 | EOF
|
---|
[54e9eea] | 509 |
|
---|
[7af92fe5] | 510 | cat > /usr/share/applications/designer-qt4.desktop << "EOF"
|
---|
| 511 | <literal>[Desktop Entry]
|
---|
| 512 | Name=Qt4 Designer
|
---|
| 513 | Comment=Design GUIs for Qt4 applications
|
---|
| 514 | Exec=designer-qt4
|
---|
| 515 | Icon=designer-qt4
|
---|
| 516 | MimeType=application/x-designer;
|
---|
| 517 | Terminal=false
|
---|
| 518 | Encoding=UTF-8
|
---|
| 519 | Type=Application
|
---|
| 520 | Categories=Qt;Development;</literal>
|
---|
| 521 | EOF
|
---|
[54e9eea] | 522 |
|
---|
[7af92fe5] | 523 | cat > /usr/share/applications/linguist-qt4.desktop << "EOF"
|
---|
| 524 | <literal>[Desktop Entry]
|
---|
| 525 | Name=Qt4 Linguist
|
---|
| 526 | Comment=Add translations to Qt4 applications
|
---|
| 527 | Exec=linguist-qt4
|
---|
| 528 | Icon=linguist-qt4
|
---|
| 529 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
| 530 | Terminal=false
|
---|
| 531 | Encoding=UTF-8
|
---|
| 532 | Type=Application
|
---|
| 533 | Categories=Qt;Development;</literal>
|
---|
[8d4b121] | 534 | EOF
|
---|
[54e9eea] | 535 |
|
---|
[8d4b121] | 536 | cat > /usr/share/applications/qdbusviewer-qt4.desktop << "EOF"
|
---|
[7af92fe5] | 537 | <literal>[Desktop Entry]
|
---|
| 538 | Name=Qt4 QDbusViewer
|
---|
| 539 | GenericName=D-Bus Debugger
|
---|
| 540 | Comment=Debug D-Bus applications
|
---|
| 541 | Exec=qdbusviewer-qt4
|
---|
| 542 | Icon=qdbusviewer-qt4
|
---|
| 543 | Terminal=false
|
---|
| 544 | Encoding=UTF-8
|
---|
| 545 | Type=Application
|
---|
| 546 | Categories=Qt;Development;Debugger;</literal>
|
---|
| 547 | EOF</userinput></screen>
|
---|
| 548 |
|
---|
| 549 | </sect3>
|
---|
| 550 |
|
---|
| 551 | </sect2>
|
---|
| 552 |
|
---|
| 553 | <sect2 role="content">
|
---|
| 554 | <title>Contents</title>
|
---|
| 555 |
|
---|
| 556 | <segmentedlist>
|
---|
| 557 | <segtitle>Installed Programs</segtitle>
|
---|
| 558 | <segtitle>Installed Libraries</segtitle>
|
---|
| 559 | <segtitle>Installed Directories</segtitle>
|
---|
| 560 |
|
---|
| 561 | <seglistitem>
|
---|
| 562 | <seg>
|
---|
[8d4b121] | 563 | assistant-qt4, designer-qt4, lconvert-qt4, linguist-qt4,
|
---|
| 564 | lrelease-qt4, lupdate-qt4, moc-qt4, pixeltool-qt4,
|
---|
| 565 | qcollectiongenerator-qt4, qdbuscpp2xml-qt4, qdbus-qt4,
|
---|
| 566 | qdbusviewer-qt4, qdbusxml2cpp-qt4, qdoc3-qt4, qhelpconverter-qt4,
|
---|
| 567 | qhelpgenerator-qt4, qmake-qt4, qmlplugindump-qt4, qmlviewer-qt4,
|
---|
| 568 | qt3to4-qt4, qtconfig-qt4, qttracereplay-qt4, rcc-qt4, uic3-qt4,
|
---|
| 569 | uic-qt4, xmlpatterns-qt4 and xmlpatternsvalidator-qt4
|
---|
[7af92fe5] | 570 | </seg>
|
---|
| 571 | <seg>
|
---|
| 572 | libQt3Support.so, libQtCLucene.so, libQtCore.so, libQtDBus.so,
|
---|
[8d4b121] | 573 | libQtDeclarative.so, libQtDesignerComponents.so,
|
---|
| 574 | libQtDesigner.so, libQtGui.so, libQtHelp.so, libQtMultimedia.so,
|
---|
| 575 | libQtNetwork.so, libQtOpenGL.so, libQtScript.so, libQtScriptTools.so,
|
---|
| 576 | libQtSql.so, libQtSvg.so, libQtTest.so, libQtWebKit.so,
|
---|
| 577 | libQtXmlPatterns.so and libQtXml.so
|
---|
[7af92fe5] | 578 | </seg>
|
---|
| 579 | <seg>
|
---|
| 580 | /usr/include/qt4,
|
---|
| 581 | /usr/lib/qt4,
|
---|
[54e9eea] | 582 | /usr/share/doc/qt4, and
|
---|
[a7eaa89] | 583 | /usr/share/qt4
|
---|
[54e9eea] | 584 | (OR $QTDIR)
|
---|
[7af92fe5] | 585 | </seg>
|
---|
| 586 | </seglistitem>
|
---|
| 587 | </segmentedlist>
|
---|
| 588 |
|
---|
| 589 | <variablelist>
|
---|
| 590 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 591 | <?dbfo list-presentation="list"?>
|
---|
| 592 | <?dbhtml list-presentation="table"?>
|
---|
| 593 |
|
---|
[8d4b121] | 594 | <varlistentry id="assistant-qt4">
|
---|
| 595 | <term><command>assistant-qt4</command></term>
|
---|
[7af92fe5] | 596 | <listitem>
|
---|
| 597 | <para>
|
---|
| 598 | is a tool for presenting on-line documentation.
|
---|
| 599 | </para>
|
---|
[8d4b121] | 600 | <indexterm zone="qt4 assistant-qt4">
|
---|
| 601 | <primary sortas="b-assistant-qt4">assistant-qt4</primary>
|
---|
[7af92fe5] | 602 | </indexterm>
|
---|
| 603 | </listitem>
|
---|
| 604 | </varlistentry>
|
---|
| 605 |
|
---|
[8d4b121] | 606 | <varlistentry id="designer-qt4">
|
---|
| 607 | <term><command>designer-qt4</command></term>
|
---|
[7af92fe5] | 608 | <listitem>
|
---|
| 609 | <para>
|
---|
| 610 | is a full-fledged GUI builder. It includes
|
---|
| 611 | powerful features such as preview mode, automatic widget
|
---|
| 612 | layout, support for custom widgets, and an advanced
|
---|
| 613 | property editor.
|
---|
| 614 | </para>
|
---|
[8d4b121] | 615 | <indexterm zone="qt4 designer-qt4">
|
---|
| 616 | <primary sortas="b-designer-qt4">designer-qt4</primary>
|
---|
[7af92fe5] | 617 | </indexterm>
|
---|
| 618 | </listitem>
|
---|
| 619 | </varlistentry>
|
---|
| 620 |
|
---|
[8d4b121] | 621 | <varlistentry id="linguist-qt4">
|
---|
| 622 | <term><command>linguist-qt4</command></term>
|
---|
[7af92fe5] | 623 | <listitem>
|
---|
| 624 | <para>
|
---|
| 625 | provides support for translating applications into
|
---|
| 626 | local languages.
|
---|
| 627 | </para>
|
---|
[8d4b121] | 628 | <indexterm zone="qt4 linguist-qt4">
|
---|
| 629 | <primary sortas="b-linguist-qt4">linguist-qt4</primary>
|
---|
[7af92fe5] | 630 | </indexterm>
|
---|
| 631 | </listitem>
|
---|
| 632 | </varlistentry>
|
---|
| 633 |
|
---|
[8d4b121] | 634 | <varlistentry id="lrelease-qt4">
|
---|
| 635 | <term><command>lrelease-qt4</command></term>
|
---|
[7af92fe5] | 636 | <listitem>
|
---|
| 637 | <para>
|
---|
| 638 | is a simple command line tool. It reads a Qt project
|
---|
| 639 | file and produces message files used by the application.
|
---|
| 640 | </para>
|
---|
[8d4b121] | 641 | <indexterm zone="qt4 lrelease-qt4">
|
---|
| 642 | <primary sortas="b-lrelease-qt4">lrelease-qt4</primary>
|
---|
[7af92fe5] | 643 | </indexterm>
|
---|
| 644 | </listitem>
|
---|
| 645 | </varlistentry>
|
---|
| 646 |
|
---|
[8d4b121] | 647 | <varlistentry id="lupdate-qt4">
|
---|
| 648 | <term><command>lupdate-qt4</command></term>
|
---|
[7af92fe5] | 649 | <listitem>
|
---|
| 650 | <para>
|
---|
| 651 | reads a Qt project file, finds the translatable
|
---|
| 652 | strings in the specified source, header and Qt Designer
|
---|
| 653 | interface files, and produces or updates the translation
|
---|
| 654 | files listed in the project file.
|
---|
| 655 | </para>
|
---|
[8d4b121] | 656 | <indexterm zone="qt4 lupdate-qt4">
|
---|
| 657 | <primary sortas="b-lupdate-qt4">lupdate-qt4</primary>
|
---|
[7af92fe5] | 658 | </indexterm>
|
---|
| 659 | </listitem>
|
---|
| 660 | </varlistentry>
|
---|
| 661 |
|
---|
[8d4b121] | 662 | <varlistentry id="moc-qt4">
|
---|
| 663 | <term><command>moc-qt4</command></term>
|
---|
[7af92fe5] | 664 | <listitem>
|
---|
| 665 | <para>
|
---|
| 666 | generates Qt meta object support code.
|
---|
| 667 | </para>
|
---|
[8d4b121] | 668 | <indexterm zone="qt4 moc-qt4">
|
---|
| 669 | <primary sortas="b-moc-qt4">moc-qt4</primary>
|
---|
[7af92fe5] | 670 | </indexterm>
|
---|
| 671 | </listitem>
|
---|
| 672 | </varlistentry>
|
---|
| 673 |
|
---|
[8d4b121] | 674 | <varlistentry id="pixeltool-qt4">
|
---|
| 675 | <term><command>pixeltool-qt4</command></term>
|
---|
[7af92fe5] | 676 | <listitem>
|
---|
| 677 | <para>
|
---|
| 678 | is a desktop magnifier and as you move your mouse around
|
---|
| 679 | the screen it will show the magnified contents in its window.
|
---|
| 680 | </para>
|
---|
[8d4b121] | 681 | <indexterm zone="qt4 pixeltool-qt4">
|
---|
| 682 | <primary sortas="b-pixeltool-qt4">pixeltool-qt4</primary>
|
---|
[7af92fe5] | 683 | </indexterm>
|
---|
| 684 | </listitem>
|
---|
| 685 | </varlistentry>
|
---|
| 686 |
|
---|
[8d4b121] | 687 | <varlistentry id="qmake-qt4">
|
---|
| 688 | <term><command>qmake-qt4</command></term>
|
---|
[7af92fe5] | 689 | <listitem>
|
---|
| 690 | <para>
|
---|
| 691 | uses information stored in project files to
|
---|
| 692 | determine what should go in the makefiles it
|
---|
| 693 | generates.
|
---|
| 694 | </para>
|
---|
[8d4b121] | 695 | <indexterm zone="qt4 qmake-qt4">
|
---|
| 696 | <primary sortas="b-qmake-qt4">qmake-qt4</primary>
|
---|
[7af92fe5] | 697 | </indexterm>
|
---|
| 698 | </listitem>
|
---|
| 699 | </varlistentry>
|
---|
| 700 |
|
---|
[8d4b121] | 701 | <varlistentry id="qt3to4-qt4">
|
---|
| 702 | <term><command>qt3to4-qt4</command></term>
|
---|
[7af92fe5] | 703 | <listitem>
|
---|
| 704 | <para>
|
---|
| 705 | qt3to4 is a tool to help update Qt3 code to Qt4.
|
---|
| 706 | </para>
|
---|
[8d4b121] | 707 | <indexterm zone="qt4 qt3to4-qt4">
|
---|
| 708 | <primary sortas="b-qt3to4-qt4">qt3to4-qt4</primary>
|
---|
[7af92fe5] | 709 | </indexterm>
|
---|
| 710 | </listitem>
|
---|
| 711 | </varlistentry>
|
---|
| 712 |
|
---|
[8d4b121] | 713 | <varlistentry id="qtconfig-qt4">
|
---|
| 714 | <term><command>qtconfig-qt4</command></term>
|
---|
[7af92fe5] | 715 | <listitem>
|
---|
| 716 | <para>
|
---|
| 717 | is used to customize the appearance of Qt applications.
|
---|
| 718 | </para>
|
---|
[8d4b121] | 719 | <indexterm zone="qt4 qtconfig-qt4">
|
---|
| 720 | <primary sortas="b-qtconfig-qt4">qtconfig-qt4</primary>
|
---|
[7af92fe5] | 721 | </indexterm>
|
---|
| 722 | </listitem>
|
---|
| 723 | </varlistentry>
|
---|
| 724 |
|
---|
[8d4b121] | 725 | <varlistentry id="rcc-qt4">
|
---|
| 726 | <term><command>rcc-qt4</command></term>
|
---|
[7af92fe5] | 727 | <listitem>
|
---|
| 728 | <para>
|
---|
| 729 | is a resource compiler used in conjunction with designer.
|
---|
| 730 | </para>
|
---|
[8d4b121] | 731 | <indexterm zone="qt4 rcc-qt4">
|
---|
| 732 | <primary sortas="b-rcc-qt4">rcc-qt4</primary>
|
---|
[7af92fe5] | 733 | </indexterm>
|
---|
| 734 | </listitem>
|
---|
| 735 | </varlistentry>
|
---|
| 736 |
|
---|
[8d4b121] | 737 | <varlistentry id="uic-qt4">
|
---|
| 738 | <term><command>uic-qt4</command></term>
|
---|
[7af92fe5] | 739 | <listitem>
|
---|
| 740 | <para>
|
---|
| 741 | is a Qt user interface compiler.
|
---|
| 742 | </para>
|
---|
[8d4b121] | 743 | <indexterm zone="qt4 uic-qt4">
|
---|
| 744 | <primary sortas="b-uic-qt4">uic-qt4</primary>
|
---|
[7af92fe5] | 745 | </indexterm>
|
---|
| 746 | </listitem>
|
---|
| 747 | </varlistentry>
|
---|
| 748 |
|
---|
[8d4b121] | 749 | <varlistentry id="uic3-qt4">
|
---|
| 750 | <term><command>uic3-qt4</command></term>
|
---|
[7af92fe5] | 751 | <listitem>
|
---|
| 752 | <para>
|
---|
| 753 | is a tool to generate Qt4 code out of
|
---|
| 754 | user interface files generated by the Qt3
|
---|
| 755 | version of designer.
|
---|
| 756 | </para>
|
---|
[8d4b121] | 757 | <indexterm zone="qt4 uic3-qt4">
|
---|
| 758 | <primary sortas="b-uic3-qt4">uic3-qt4</primary>
|
---|
[7af92fe5] | 759 | </indexterm>
|
---|
| 760 | </listitem>
|
---|
| 761 | </varlistentry>
|
---|
| 762 |
|
---|
| 763 | </variablelist>
|
---|
| 764 |
|
---|
| 765 | </sect2>
|
---|
| 766 |
|
---|
| 767 | </sect1>
|
---|