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