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