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