[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 " ">
|
---|
[ec47993] | 10 | <!ENTITY qt4-md5sum "d990ee66bf7ab0c785589776f35ba6ad">
|
---|
| 11 | <!ENTITY qt4-size "230 MB">
|
---|
| 12 | <!ENTITY qt4-buildsize "2.3 GB">
|
---|
[9ae6ea1] | 13 | <!ENTITY qt4-time "12 SBU, using parallelism=4">
|
---|
[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 |
|
---|
[17468d93] | 42 | &lfs77_checked; &gcc5_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">
|
---|
[e4a1f8a9] | 82 | <xref linkend="xorg7-lib"/>
|
---|
[7af92fe5] | 83 | </para>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 86 | <para role="recommended">
|
---|
[e4a1f8a9] | 87 | <xref linkend="alsa-lib"/>,
|
---|
| 88 | <xref linkend="mesalib"/>,
|
---|
[7af92fe5] | 89 | <xref linkend="cacerts"/>,
|
---|
[54666831] | 90 | <xref linkend="dbus"/>,
|
---|
[7af92fe5] | 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"/>,
|
---|
[a8ece039] | 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),
|
---|
[5e0662d] | 106 | <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
|
---|
[7af92fe5] | 107 | <xref linkend="postgresql"/>,
|
---|
[ec7940be] | 108 | <xref linkend="pulseaudio"/>, and
|
---|
| 109 | <xref linkend="unixodbc"/>
|
---|
[7af92fe5] | 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <para condition="html" role="usernotes">User Notes:
|
---|
| 113 | <ulink url="&blfs-wiki;/qt4"/>
|
---|
| 114 | </para>
|
---|
| 115 | </sect2>
|
---|
| 116 |
|
---|
[ec7940be] | 117 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../xincludes/qt-alternatives.xml"/>
|
---|
| 118 |
|
---|
[0dd2bc6] | 119 | <sect2 role="qt4-prefix">
|
---|
| 120 | <title>Setting the installation prefix</title>
|
---|
| 121 |
|
---|
| 122 | <bridgehead renderas="sect3">Installing in /usr</bridgehead>
|
---|
| 123 |
|
---|
| 124 | <para>
|
---|
| 125 | If you want to install <application>Qt4</application>
|
---|
| 126 | in <filename class="directory">/usr</filename>, set the
|
---|
| 127 | following environment variable:
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <screen><userinput>export QT4PREFIX=/usr</userinput></screen>
|
---|
| 131 |
|
---|
| 132 | <bridgehead renderas="sect3">Installing in /opt/qt4</bridgehead>
|
---|
| 133 |
|
---|
| 134 | <para>
|
---|
| 135 | If you want to install <application>Qt4</application>
|
---|
| 136 | in a directory other than <filename
|
---|
| 137 | class="directory">/usr</filename>, ie
|
---|
| 138 | <filename class="directory">/opt/qt4</filename>, set
|
---|
| 139 | the following environment variable:
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
| 142 | <screen><userinput>export QT4PREFIX=/opt/qt4</userinput></screen>
|
---|
| 143 |
|
---|
| 144 | <tip>
|
---|
| 145 | <para>
|
---|
| 146 | Sometimes, the installation paths are hardcoded into installed files.
|
---|
| 147 | This is the reason why <filename class="directory">/opt/qt4</filename>
|
---|
| 148 | is used as installation prefix instead of <filename
|
---|
| 149 | class="directory">/opt/qt-&qt4-version;</filename>. To create a
|
---|
| 150 | versioned <application>Qt4</application> directory, you may rename
|
---|
| 151 | the directory and create a symlink:
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
| 154 | <screen role="root"><userinput>mkdir /opt/qt-&qt4-version;
|
---|
| 155 | ln -sfnv qt-&qt4-version; /opt/qt4</userinput></screen>
|
---|
| 156 |
|
---|
| 157 | <para>
|
---|
| 158 | Later on, you may want to install other versions of
|
---|
| 159 | <application>Qt4</application>. To do that, just remove the symlink
|
---|
| 160 | and use <filename class="directory">/opt/qt4</filename> as the
|
---|
| 161 | prefix again. Which version of <application>Qt4</application> you
|
---|
| 162 | use depends only on where the symlink points.
|
---|
| 163 | </para>
|
---|
| 164 | </tip>
|
---|
| 165 |
|
---|
| 166 | </sect2>
|
---|
| 167 |
|
---|
[7af92fe5] | 168 | <sect2 role="installation">
|
---|
| 169 | <title>Installation of Qt</title>
|
---|
| 170 |
|
---|
[fb28b3b] | 171 | <caution>
|
---|
[8d4b121] | 172 | <para>
|
---|
| 173 | If you did not install some of the recommended dependencies, examine
|
---|
| 174 | <command>./configure --help</command> output to check how to disable
|
---|
| 175 | them or use internal versions bundled in the source tarball.
|
---|
| 176 | </para>
|
---|
[fb28b3b] | 177 | </caution>
|
---|
[8d4b121] | 178 |
|
---|
[fb28b3b] | 179 | <warning>
|
---|
[7af92fe5] | 180 | <para>
|
---|
[fb28b3b] | 181 | If <application>Qt4</application> is being reinstalled into the
|
---|
[9f193fc] | 182 | same directory as an existing instance, run the commands done by
|
---|
[775fbafd] | 183 | <systemitem class="username">root</systemitem>, such as
|
---|
| 184 | <command>make install</command>, from a console or non-Qt4 based
|
---|
[9f193fc] | 185 | window manager. It overwrites <application>Qt4</application>
|
---|
| 186 | libraries that should not be in use during the install process.
|
---|
[7af92fe5] | 187 | </para>
|
---|
[fb28b3b] | 188 | </warning>
|
---|
[7af92fe5] | 189 |
|
---|
| 190 | <note>
|
---|
| 191 | <para>
|
---|
| 192 | The build time and space required for the full
|
---|
| 193 | <application>Qt</application> is quite long. The instructions below
|
---|
| 194 | do not build the tutorials and examples. Removing the
|
---|
| 195 | <parameter>-nomake</parameter> lines will create a complete build.
|
---|
| 196 | </para>
|
---|
| 197 | </note>
|
---|
| 198 |
|
---|
| 199 | <para>
|
---|
[ec7940be] | 200 | Install <application>Qt4</application> into the <filename
|
---|
| 201 | class='directory'>/usr</filename> hierarchy by running the following
|
---|
| 202 | commands:
|
---|
[7af92fe5] | 203 | </para>
|
---|
| 204 |
|
---|
[0dd2bc6] | 205 | <screen><userinput>./configure -prefix $QT4PREFIX \
|
---|
| 206 | -sysconfdir /etc/xdg \
|
---|
| 207 | -bindir $QT4BINDIR \
|
---|
| 208 | -plugindir $QT4PREFIX/lib/qt4/plugins \
|
---|
| 209 | -importdir $QT4PREFIX/lib/qt4/imports \
|
---|
| 210 | -headerdir $QT4PREFIX/include/qt4 \
|
---|
| 211 | -datadir $QT4PREFIX/share/qt4 \
|
---|
| 212 | -docdir $QT4PREFIX/share/doc/qt4 \
|
---|
| 213 | -translationdir $QT4PREFIX/share/qt4/translations \
|
---|
| 214 | -demosdir $QT4PREFIX/share/doc/qt4/demos \
|
---|
| 215 | -examplesdir $QT4PREFIX/share/doc/qt4/examples \
|
---|
[a8ece039] | 216 | -confirm-license \
|
---|
| 217 | -opensource \
|
---|
| 218 | -release \
|
---|
| 219 | -dbus-linked \
|
---|
| 220 | -openssl-linked \
|
---|
| 221 | -system-sqlite \
|
---|
| 222 | -no-phonon \
|
---|
[7af92fe5] | 223 | -no-phonon-backend \
|
---|
[a8ece039] | 224 | -no-openvg \
|
---|
| 225 | -nomake demos \
|
---|
| 226 | -nomake examples \
|
---|
| 227 | -optimized-qmake &&
|
---|
| 228 |
|
---|
[7af92fe5] | 229 | make</userinput></screen>
|
---|
| 230 |
|
---|
| 231 | <para>
|
---|
| 232 | This package does not come with a test suite.
|
---|
| 233 | </para>
|
---|
| 234 |
|
---|
[acacfb64] | 235 | <para>
|
---|
| 236 | Remove references to the build directory from the
|
---|
| 237 | <filename class="extension">.pc</filename> files by running
|
---|
| 238 | the following command:
|
---|
| 239 | </para>
|
---|
| 240 |
|
---|
| 241 | <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
|
---|
| 242 |
|
---|
[ec7940be] | 243 | <para>Now as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[7af92fe5] | 244 |
|
---|
| 245 | <screen role="root"><userinput>make install &&
|
---|
[ec7940be] | 246 | rm -rf /usr/tests</userinput></screen>
|
---|
[7af92fe5] | 247 |
|
---|
| 248 | <para>
|
---|
| 249 | Remove references to the build directory from installed files by
|
---|
| 250 | running the following command as the
|
---|
| 251 | <systemitem class="username">root</systemitem> user:
|
---|
| 252 | </para>
|
---|
| 253 |
|
---|
[acacfb64] | 254 | <screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \
|
---|
| 255 | Designer Gui Help Multimedia Network OpenGL Script \
|
---|
[ec7940be] | 256 | ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml phonon; do
|
---|
| 257 |
|
---|
[b9edd3d5] | 258 | [ -e /usr/lib/libQt${file}.prl ] &&
|
---|
[ec7940be] | 259 | sed -r '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' \
|
---|
| 260 | -i /usr/lib/libQt${file}.prl
|
---|
[a6c6923] | 261 | done
|
---|
| 262 | unset file</userinput></screen>
|
---|
[7af92fe5] | 263 |
|
---|
[fb28b3b] | 264 | <para>
|
---|
[0dd2bc6] | 265 | Install images and create the menu entries
|
---|
| 266 | for installed applications. Be sure that the <envar>QT4PREFIX</envar>
|
---|
| 267 | variable is defined in root's environment and
|
---|
| 268 | as the <systemitem class="username">root</systemitem> user:
|
---|
[fb28b3b] | 269 | </para>
|
---|
| 270 |
|
---|
[ec7940be] | 271 | <screen role="root"><userinput>install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
---|
[54e9eea] | 272 | /usr/share/pixmaps/qt4logo.png &&
|
---|
[ec7940be] | 273 |
|
---|
[54e9eea] | 274 | install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \
|
---|
| 275 | /usr/share/pixmaps/assistant-qt4.png &&
|
---|
[ec7940be] | 276 |
|
---|
[54e9eea] | 277 | install -v -Dm644 tools/designer/src/designer/images/designer.png \
|
---|
| 278 | /usr/share/pixmaps/designer-qt4.png &&
|
---|
[ec7940be] | 279 |
|
---|
[54e9eea] | 280 | install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
| 281 | /usr/share/pixmaps/linguist-qt4.png &&
|
---|
[ec7940be] | 282 |
|
---|
[54e9eea] | 283 | install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
[ec7940be] | 284 | /usr/share/pixmaps/qdbusviewer-qt4.png &&
|
---|
[54e9eea] | 285 |
|
---|
[ec7940be] | 286 | install -dm755 /usr/share/applications &&
|
---|
[54e9eea] | 287 |
|
---|
[ec7940be] | 288 | cat > /usr/share/applications/assistant-qt4.desktop << EOF
|
---|
| 289 | <literal>[Desktop Entry]
|
---|
| 290 | Name=Qt4 Assistant
|
---|
| 291 | Comment=Shows Qt4 documentation and examples
|
---|
[0dd2bc6] | 292 | Exec=$QT4PREFIX/bin/assistant
|
---|
[ec7940be] | 293 | Icon=assistant-qt4.png
|
---|
| 294 | Terminal=false
|
---|
| 295 | Encoding=UTF-8
|
---|
| 296 | Type=Application
|
---|
| 297 | Categories=Qt;Development;Documentation;</literal>
|
---|
| 298 | EOF
|
---|
[54e9eea] | 299 |
|
---|
[ec7940be] | 300 | cat > /usr/share/applications/designer-qt4.desktop << EOF
|
---|
| 301 | <literal>[Desktop Entry]
|
---|
| 302 | Name=Qt4 Designer
|
---|
| 303 | Comment=Design GUIs for Qt4 applications
|
---|
[0dd2bc6] | 304 | Exec=$QT4PREFIX/bin/designer
|
---|
[ec7940be] | 305 | Icon=designer-qt4.png
|
---|
| 306 | MimeType=application/x-designer;
|
---|
| 307 | Terminal=false
|
---|
| 308 | Encoding=UTF-8
|
---|
| 309 | Type=Application
|
---|
| 310 | Categories=Qt;Development;</literal>
|
---|
| 311 | EOF
|
---|
[54e9eea] | 312 |
|
---|
[ec7940be] | 313 | cat > /usr/share/applications/linguist-qt4.desktop << EOF
|
---|
| 314 | <literal>[Desktop Entry]
|
---|
| 315 | Name=Qt4 Linguist
|
---|
| 316 | Comment=Add translations to Qt4 applications
|
---|
[0dd2bc6] | 317 | Exec=$QT4PREFIX/bin/linguist
|
---|
[ec7940be] | 318 | Icon=linguist-qt4.png
|
---|
| 319 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
| 320 | Terminal=false
|
---|
| 321 | Encoding=UTF-8
|
---|
| 322 | Type=Application
|
---|
| 323 | Categories=Qt;Development;</literal>
|
---|
| 324 | EOF
|
---|
[79904cf] | 325 |
|
---|
[ec7940be] | 326 | cat > /usr/share/applications/qdbusviewer-qt4.desktop << EOF
|
---|
| 327 | <literal>[Desktop Entry]
|
---|
| 328 | Name=Qt4 QDbusViewer
|
---|
| 329 | GenericName=D-Bus Debugger
|
---|
| 330 | Comment=Debug D-Bus applications
|
---|
[0dd2bc6] | 331 | Exec=$QT4PREFIX/bin/qdbusviewer
|
---|
[ec7940be] | 332 | Icon=qdbusviewer-qt4.png
|
---|
| 333 | Terminal=false
|
---|
| 334 | Encoding=UTF-8
|
---|
| 335 | Type=Application
|
---|
| 336 | Categories=Qt;Development;Debugger;</literal>
|
---|
| 337 | EOF
|
---|
[79904cf] | 338 |
|
---|
[ec7940be] | 339 | cat > /usr/share/applications/qtconfig-qt4.desktop << EOF
|
---|
| 340 | <literal>[Desktop Entry]
|
---|
| 341 | Name=Qt4 Config
|
---|
| 342 | Comment=Configure Qt4 behavior, styles, fonts
|
---|
[0dd2bc6] | 343 | Exec=$QT4PREFIX/bin/qtconfig
|
---|
[ec7940be] | 344 | Icon=qt4logo.png
|
---|
| 345 | Terminal=false
|
---|
| 346 | Encoding=UTF-8
|
---|
| 347 | Type=Application
|
---|
| 348 | Categories=Qt;Settings;</literal>
|
---|
| 349 | EOF</userinput></screen>
|
---|
[79904cf] | 350 |
|
---|
[7af92fe5] | 351 | </sect2>
|
---|
| 352 |
|
---|
| 353 | <sect2 role="commands">
|
---|
| 354 | <title>Command Explanations</title>
|
---|
| 355 |
|
---|
| 356 | <para>
|
---|
| 357 | <parameter>-confirm-license</parameter>: Accept license
|
---|
| 358 | without prompting user during configuration.
|
---|
| 359 | </para>
|
---|
| 360 |
|
---|
| 361 | <para>
|
---|
| 362 | <parameter>-opensource</parameter>: Install the opensource
|
---|
| 363 | version of <application>Qt</application>.
|
---|
| 364 | </para>
|
---|
| 365 |
|
---|
[8d4b121] | 366 | <para>
|
---|
| 367 | <parameter>-release</parameter>: This switch disables
|
---|
| 368 | building with debugging symbols.
|
---|
| 369 | </para>
|
---|
[7af92fe5] | 370 |
|
---|
| 371 | <para>
|
---|
| 372 | <parameter>-nomake examples -nomake demos</parameter>:
|
---|
| 373 | These switches disable building programs that are only of
|
---|
[ec7940be] | 374 | interest to a developer using <application>Qt</application>.
|
---|
[7af92fe5] | 375 | </para>
|
---|
| 376 |
|
---|
| 377 | <para>
|
---|
| 378 | <parameter>-system-sqlite</parameter>: This switch enables use
|
---|
| 379 | the system version of <application>SQLite</application>.
|
---|
| 380 | </para>
|
---|
| 381 |
|
---|
| 382 | <para>
|
---|
| 383 | <parameter>-no-nis</parameter>: This switch disables support
|
---|
| 384 | for Network Information Service (NIS) which has been
|
---|
| 385 | deprecated in recent versions of <application>Glibc</application>.
|
---|
| 386 | </para>
|
---|
| 387 |
|
---|
| 388 | <para>
|
---|
| 389 | <parameter>-no-phonon -no-phonon-backend</parameter>: These
|
---|
| 390 | switches disable building of the bundled
|
---|
| 391 | <application>Phonon</application> library. Better version
|
---|
| 392 | is provided by <xref linkend="phonon"/> package.
|
---|
| 393 | </para>
|
---|
| 394 |
|
---|
| 395 | <para>
|
---|
[05dcb8af] | 396 | <parameter>-dbus-linked -openssl-linked</parameter>: These
|
---|
[7af92fe5] | 397 | switches enable explicit linking of the
|
---|
| 398 | <application>D-Bus</application> and
|
---|
| 399 | <application>OpenSSL</application> libraries into
|
---|
| 400 | <application>Qt</application> libraries instead of
|
---|
| 401 | <command>dlopen()</command>-ing them.
|
---|
| 402 | </para>
|
---|
| 403 |
|
---|
| 404 | <para>
|
---|
| 405 | <parameter>-no-openvg</parameter>: This switch disables
|
---|
| 406 | <application>OpenVG</application> support in
|
---|
| 407 | <application>Qt</application>.
|
---|
| 408 | </para>
|
---|
| 409 |
|
---|
[8d4b121] | 410 | <para>
|
---|
| 411 | <parameter>-optimized-qmake</parameter>: This switch enables
|
---|
| 412 | building of the optimized <command>qmake</command> program.
|
---|
| 413 | </para>
|
---|
| 414 |
|
---|
[df5884e] | 415 | <para>
|
---|
| 416 | <option>-no-dbus</option>: Use this switch if you don't have
|
---|
| 417 | <application>D-Bus</application> installed.
|
---|
| 418 | </para>
|
---|
| 419 |
|
---|
[7af92fe5] | 420 | </sect2>
|
---|
| 421 |
|
---|
| 422 | <sect2 role="configuration">
|
---|
| 423 | <title>Configuring Qt</title>
|
---|
| 424 |
|
---|
| 425 | <sect3 id="qt4-config">
|
---|
| 426 | <title>Configuration Information</title>
|
---|
| 427 |
|
---|
| 428 | <para>
|
---|
[a8ece039] | 429 | If you installed <application>Qt</application> in /usr,
|
---|
| 430 | create an environment variable needed by certain packages.
|
---|
[7af92fe5] | 431 | As the <systemitem class="username">root</systemitem> user:
|
---|
| 432 | </para>
|
---|
| 433 |
|
---|
[41ddd5f] | 434 | <screen role="root"><userinput>cat > /etc/profile.d/qt4.sh << EOF
|
---|
| 435 | <literal># Begin /etc/profile.d/qt4.sh
|
---|
[7af92fe5] | 436 |
|
---|
[49d3336] | 437 | QT4DIR=/usr
|
---|
| 438 | export QT4DIR
|
---|
[7af92fe5] | 439 |
|
---|
[41ddd5f] | 440 | # End /etc/profile.d/qt4.sh</literal>
|
---|
[7af92fe5] | 441 | EOF</userinput></screen>
|
---|
| 442 |
|
---|
[54e9eea] | 443 | <para>
|
---|
| 444 | If you installed <application>Qt</application> in a location other
|
---|
[a8ece039] | 445 | than /usr, you need to update the following configuration files so
|
---|
| 446 | that <application>Qt</application> is correctly found by other packages
|
---|
| 447 | and system processes.</para>
|
---|
| 448 |
|
---|
| 449 | <para>As the <systemitem class="username">root</systemitem> user, update
|
---|
[54e9eea] | 450 | the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
---|
| 451 | run-time cache file:
|
---|
| 452 | </para>
|
---|
[a8ece039] | 453 |
|
---|
[54e9eea] | 454 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
[fb28b3b] | 455 | <literal># Begin Qt addition
|
---|
[54e9eea] | 456 |
|
---|
[41ddd5f] | 457 | /opt/qt4/lib
|
---|
[54e9eea] | 458 |
|
---|
| 459 | # End Qt addition</literal>
|
---|
| 460 | EOF
|
---|
| 461 |
|
---|
| 462 | ldconfig</userinput></screen>
|
---|
[a8ece039] | 463 |
|
---|
[fb28b3b] | 464 | <indexterm zone="qt4 qt4-config">
|
---|
[a8ece039] | 465 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 466 | </indexterm>
|
---|
| 467 |
|
---|
[54e9eea] | 468 | <para>
|
---|
| 469 | As the <systemitem class="username">root</systemitem> user, create
|
---|
[41ddd5f] | 470 | the <filename>/etc/profile.d/qt4.sh</filename> file:
|
---|
[54e9eea] | 471 | </para>
|
---|
[a8ece039] | 472 |
|
---|
[41ddd5f] | 473 | <screen role="root"><userinput>cat > /etc/profile.d/qt4.sh << EOF
|
---|
| 474 | <literal># Begin /etc/profile.d/qt4.sh
|
---|
[a8ece039] | 475 |
|
---|
[49d3336] | 476 | QT4DIR=/opt/qt4
|
---|
[a8ece039] | 477 |
|
---|
[41ddd5f] | 478 | pathappend /opt/qt4/bin PATH
|
---|
| 479 | pathappend /opt/qt4/lib/pkgconfig PKG_CONFIG_PATH
|
---|
[a8ece039] | 480 |
|
---|
[49d3336] | 481 | export QT4DIR
|
---|
[a8ece039] | 482 |
|
---|
[41ddd5f] | 483 | # End /etc/profile.d/qt4.sh</literal>
|
---|
[54e9eea] | 484 | EOF</userinput></screen>
|
---|
| 485 |
|
---|
[7af92fe5] | 486 |
|
---|
| 487 | </sect3>
|
---|
[ec7940be] | 488 |
|
---|
| 489 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 490 | href="../../xincludes/setqt.xml"/>
|
---|
[7af92fe5] | 491 | </sect2>
|
---|
| 492 |
|
---|
| 493 | <sect2 role="content">
|
---|
| 494 | <title>Contents</title>
|
---|
| 495 |
|
---|
| 496 | <segmentedlist>
|
---|
| 497 | <segtitle>Installed Programs</segtitle>
|
---|
| 498 | <segtitle>Installed Libraries</segtitle>
|
---|
| 499 | <segtitle>Installed Directories</segtitle>
|
---|
| 500 |
|
---|
| 501 | <seglistitem>
|
---|
| 502 | <seg>
|
---|
[ec7940be] | 503 | assistant, designer, lconvert, linguist,
|
---|
| 504 | lrelease, lupdate, moc, pixeltool,
|
---|
| 505 | qcollectiongenerator, qdbuscpp2xml, qdbus,
|
---|
| 506 | qdbusviewer, qdbusxml2cpp, qdoc3, qhelpconverter,
|
---|
| 507 | qhelpgenerator, qmake, qmlplugindump, qmlviewer,
|
---|
| 508 | qt3to4, qtconfig, qttracereplay, rcc, uic3,
|
---|
| 509 | uic, xmlpatterns, and xmlpatternsvalidator
|
---|
[7af92fe5] | 510 | </seg>
|
---|
| 511 | <seg>
|
---|
[18310d86] | 512 | libQtUiTools.a, libQt3Support.so, libQtCLucene.so, libQtCore.so,
|
---|
| 513 | libQtDBus.so, libQtDeclarative.so, libQtDesignerComponents.so,
|
---|
[8d4b121] | 514 | libQtDesigner.so, libQtGui.so, libQtHelp.so, libQtMultimedia.so,
|
---|
| 515 | libQtNetwork.so, libQtOpenGL.so, libQtScript.so, libQtScriptTools.so,
|
---|
| 516 | libQtSql.so, libQtSvg.so, libQtTest.so, libQtWebKit.so,
|
---|
[18310d86] | 517 | libQtXmlPatterns.so, and libQtXml.so, and several plugins under
|
---|
| 518 | /opt/qt4/imports and /opt/qt4/plugins
|
---|
[7af92fe5] | 519 | </seg>
|
---|
| 520 | <seg>
|
---|
| 521 | /usr/include/qt4,
|
---|
| 522 | /usr/lib/qt4,
|
---|
[54e9eea] | 523 | /usr/share/doc/qt4, and
|
---|
[ec7940be] | 524 | /usr/share/qt4
|
---|
| 525 | OR
|
---|
[41ddd5f] | 526 | /opt/qt4 and
|
---|
[ec7940be] | 527 | /opt/qt-&qt4-version;
|
---|
[7af92fe5] | 528 | </seg>
|
---|
| 529 | </seglistitem>
|
---|
| 530 | </segmentedlist>
|
---|
| 531 |
|
---|
| 532 | <variablelist>
|
---|
| 533 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 534 | <?dbfo list-presentation="list"?>
|
---|
| 535 | <?dbhtml list-presentation="table"?>
|
---|
| 536 |
|
---|
[8d4b121] | 537 | <varlistentry id="assistant-qt4">
|
---|
[ec7940be] | 538 | <term><command>assistant</command></term>
|
---|
[7af92fe5] | 539 | <listitem>
|
---|
| 540 | <para>
|
---|
| 541 | is a tool for presenting on-line documentation.
|
---|
| 542 | </para>
|
---|
[8d4b121] | 543 | <indexterm zone="qt4 assistant-qt4">
|
---|
[ec7940be] | 544 | <primary sortas="b-assistant-qt4">assistant</primary>
|
---|
[7af92fe5] | 545 | </indexterm>
|
---|
| 546 | </listitem>
|
---|
| 547 | </varlistentry>
|
---|
| 548 |
|
---|
[8d4b121] | 549 | <varlistentry id="designer-qt4">
|
---|
[ec7940be] | 550 | <term><command>designer</command></term>
|
---|
[7af92fe5] | 551 | <listitem>
|
---|
| 552 | <para>
|
---|
| 553 | is a full-fledged GUI builder. It includes
|
---|
| 554 | powerful features such as preview mode, automatic widget
|
---|
| 555 | layout, support for custom widgets, and an advanced
|
---|
| 556 | property editor.
|
---|
| 557 | </para>
|
---|
[8d4b121] | 558 | <indexterm zone="qt4 designer-qt4">
|
---|
[ec7940be] | 559 | <primary sortas="b-designer-qt4">designer</primary>
|
---|
[7af92fe5] | 560 | </indexterm>
|
---|
| 561 | </listitem>
|
---|
| 562 | </varlistentry>
|
---|
| 563 |
|
---|
[8d4b121] | 564 | <varlistentry id="linguist-qt4">
|
---|
[ec7940be] | 565 | <term><command>linguist</command></term>
|
---|
[7af92fe5] | 566 | <listitem>
|
---|
| 567 | <para>
|
---|
| 568 | provides support for translating applications into
|
---|
| 569 | local languages.
|
---|
| 570 | </para>
|
---|
[8d4b121] | 571 | <indexterm zone="qt4 linguist-qt4">
|
---|
[ec7940be] | 572 | <primary sortas="b-linguist-qt4">linguist</primary>
|
---|
[7af92fe5] | 573 | </indexterm>
|
---|
| 574 | </listitem>
|
---|
| 575 | </varlistentry>
|
---|
| 576 |
|
---|
[8d4b121] | 577 | <varlistentry id="lrelease-qt4">
|
---|
[ec7940be] | 578 | <term><command>lrelease</command></term>
|
---|
[7af92fe5] | 579 | <listitem>
|
---|
| 580 | <para>
|
---|
| 581 | is a simple command line tool. It reads a Qt project
|
---|
| 582 | file and produces message files used by the application.
|
---|
| 583 | </para>
|
---|
[8d4b121] | 584 | <indexterm zone="qt4 lrelease-qt4">
|
---|
[ec7940be] | 585 | <primary sortas="b-lrelease-qt4">lrelease</primary>
|
---|
[7af92fe5] | 586 | </indexterm>
|
---|
| 587 | </listitem>
|
---|
| 588 | </varlistentry>
|
---|
| 589 |
|
---|
[8d4b121] | 590 | <varlistentry id="lupdate-qt4">
|
---|
[ec7940be] | 591 | <term><command>lupdate</command></term>
|
---|
[7af92fe5] | 592 | <listitem>
|
---|
| 593 | <para>
|
---|
| 594 | reads a Qt project file, finds the translatable
|
---|
| 595 | strings in the specified source, header and Qt Designer
|
---|
| 596 | interface files, and produces or updates the translation
|
---|
| 597 | files listed in the project file.
|
---|
| 598 | </para>
|
---|
[8d4b121] | 599 | <indexterm zone="qt4 lupdate-qt4">
|
---|
[ec7940be] | 600 | <primary sortas="b-lupdate-qt4">lupdate</primary>
|
---|
[7af92fe5] | 601 | </indexterm>
|
---|
| 602 | </listitem>
|
---|
| 603 | </varlistentry>
|
---|
| 604 |
|
---|
[8d4b121] | 605 | <varlistentry id="moc-qt4">
|
---|
[ec7940be] | 606 | <term><command>moc</command></term>
|
---|
[7af92fe5] | 607 | <listitem>
|
---|
| 608 | <para>
|
---|
| 609 | generates Qt meta object support code.
|
---|
| 610 | </para>
|
---|
[8d4b121] | 611 | <indexterm zone="qt4 moc-qt4">
|
---|
[ec7940be] | 612 | <primary sortas="b-moc-qt4">moc</primary>
|
---|
[7af92fe5] | 613 | </indexterm>
|
---|
| 614 | </listitem>
|
---|
| 615 | </varlistentry>
|
---|
| 616 |
|
---|
[8d4b121] | 617 | <varlistentry id="pixeltool-qt4">
|
---|
[ec7940be] | 618 | <term><command>pixeltool</command></term>
|
---|
[7af92fe5] | 619 | <listitem>
|
---|
| 620 | <para>
|
---|
| 621 | is a desktop magnifier and as you move your mouse around
|
---|
| 622 | the screen it will show the magnified contents in its window.
|
---|
| 623 | </para>
|
---|
[8d4b121] | 624 | <indexterm zone="qt4 pixeltool-qt4">
|
---|
[ec7940be] | 625 | <primary sortas="b-pixeltool-qt4">pixeltool</primary>
|
---|
[7af92fe5] | 626 | </indexterm>
|
---|
| 627 | </listitem>
|
---|
| 628 | </varlistentry>
|
---|
| 629 |
|
---|
[8d4b121] | 630 | <varlistentry id="qmake-qt4">
|
---|
[ec7940be] | 631 | <term><command>qmake</command></term>
|
---|
[7af92fe5] | 632 | <listitem>
|
---|
| 633 | <para>
|
---|
| 634 | uses information stored in project files to
|
---|
| 635 | determine what should go in the makefiles it
|
---|
| 636 | generates.
|
---|
| 637 | </para>
|
---|
[8d4b121] | 638 | <indexterm zone="qt4 qmake-qt4">
|
---|
[ec7940be] | 639 | <primary sortas="b-qmake-qt4">qmake</primary>
|
---|
[7af92fe5] | 640 | </indexterm>
|
---|
| 641 | </listitem>
|
---|
| 642 | </varlistentry>
|
---|
| 643 |
|
---|
[8d4b121] | 644 | <varlistentry id="qt3to4-qt4">
|
---|
[ec7940be] | 645 | <term><command>qt3to4</command></term>
|
---|
[7af92fe5] | 646 | <listitem>
|
---|
| 647 | <para>
|
---|
| 648 | qt3to4 is a tool to help update Qt3 code to Qt4.
|
---|
| 649 | </para>
|
---|
[8d4b121] | 650 | <indexterm zone="qt4 qt3to4-qt4">
|
---|
[ec7940be] | 651 | <primary sortas="b-qt3to4-qt4">qt3to4</primary>
|
---|
[7af92fe5] | 652 | </indexterm>
|
---|
| 653 | </listitem>
|
---|
| 654 | </varlistentry>
|
---|
| 655 |
|
---|
[8d4b121] | 656 | <varlistentry id="qtconfig-qt4">
|
---|
[ec7940be] | 657 | <term><command>qtconfig</command></term>
|
---|
[7af92fe5] | 658 | <listitem>
|
---|
| 659 | <para>
|
---|
| 660 | is used to customize the appearance of Qt applications.
|
---|
| 661 | </para>
|
---|
[8d4b121] | 662 | <indexterm zone="qt4 qtconfig-qt4">
|
---|
[ec7940be] | 663 | <primary sortas="b-qtconfig-qt4">qtconfig</primary>
|
---|
[7af92fe5] | 664 | </indexterm>
|
---|
| 665 | </listitem>
|
---|
| 666 | </varlistentry>
|
---|
| 667 |
|
---|
[8d4b121] | 668 | <varlistentry id="rcc-qt4">
|
---|
[ec7940be] | 669 | <term><command>rcc</command></term>
|
---|
[7af92fe5] | 670 | <listitem>
|
---|
| 671 | <para>
|
---|
| 672 | is a resource compiler used in conjunction with designer.
|
---|
| 673 | </para>
|
---|
[8d4b121] | 674 | <indexterm zone="qt4 rcc-qt4">
|
---|
[ec7940be] | 675 | <primary sortas="b-rcc-qt4">rcc</primary>
|
---|
[7af92fe5] | 676 | </indexterm>
|
---|
| 677 | </listitem>
|
---|
| 678 | </varlistentry>
|
---|
| 679 |
|
---|
[8d4b121] | 680 | <varlistentry id="uic-qt4">
|
---|
[ec7940be] | 681 | <term><command>uic</command></term>
|
---|
[7af92fe5] | 682 | <listitem>
|
---|
| 683 | <para>
|
---|
| 684 | is a Qt user interface compiler.
|
---|
| 685 | </para>
|
---|
[8d4b121] | 686 | <indexterm zone="qt4 uic-qt4">
|
---|
[ec7940be] | 687 | <primary sortas="b-uic-qt4">uic</primary>
|
---|
[7af92fe5] | 688 | </indexterm>
|
---|
| 689 | </listitem>
|
---|
| 690 | </varlistentry>
|
---|
| 691 |
|
---|
[8d4b121] | 692 | <varlistentry id="uic3-qt4">
|
---|
[ec7940be] | 693 | <term><command>uic3</command></term>
|
---|
[7af92fe5] | 694 | <listitem>
|
---|
| 695 | <para>
|
---|
| 696 | is a tool to generate Qt4 code out of
|
---|
| 697 | user interface files generated by the Qt3
|
---|
| 698 | version of designer.
|
---|
| 699 | </para>
|
---|
[8d4b121] | 700 | <indexterm zone="qt4 uic3-qt4">
|
---|
[ec7940be] | 701 | <primary sortas="b-uic3-qt4">uic3</primary>
|
---|
[7af92fe5] | 702 | </indexterm>
|
---|
| 703 | </listitem>
|
---|
| 704 | </varlistentry>
|
---|
| 705 |
|
---|
| 706 | </variablelist>
|
---|
| 707 |
|
---|
| 708 | </sect2>
|
---|
| 709 |
|
---|
| 710 | </sect1>
|
---|