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