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