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