source: archive/qt4.8.xml@ 08f422e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 08f422e was 08f422e, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Archive qt4.
Make referenced to Qt4 in highlight and cairo external.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17460 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 32.2 KB
RevLine 
[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
[e2abf328]7 <!ENTITY qt4-major "4.8">
8 <!ENTITY wk-major "2.3">
9 <!ENTITY wk-version "2.3.4">
10 <!ENTITY qt4-url "http://download.qt-project.org/official_releases/qt/&qt4-major;">
[54f8f1c]11 <!ENTITY webkit-url "http://download.kde.org/stable/qtwebkit-&wk-major;">
[1b0d0188]12
[21c0f032]13 <!ENTITY qt4-download-http "&qt4-url;/&qt4-version;/qt-everywhere-opensource-src-&qt4-version;.tar.gz">
[7af92fe5]14 <!ENTITY qt4-download-ftp " ">
[ec47993]15 <!ENTITY qt4-md5sum "d990ee66bf7ab0c785589776f35ba6ad">
16 <!ENTITY qt4-size "230 MB">
17 <!ENTITY qt4-buildsize "2.3 GB">
[9ae6ea1]18 <!ENTITY qt4-time "12 SBU, using parallelism=4">
[67b1a0a]19<!--
[e2abf328]20 <!ENTITY qtwebkit-download "&webkit-url;/&wk-version;/src/qtwebkit-&wk-version;.tar.gz">
21 <!ENTITY qtwebkit-md5sum "42ef76d0cf7d0c611ef83418e9f297ff">
[67b1a0a]22 <!ENTITY qtwebkit-size "50 MB">-->
[7af92fe5]23]>
24
25<sect1 id="qt4" xreflabel="Qt-&qt4-version;">
26 <?dbhtml filename="qt4.html" ?>
27
28 <sect1info>
29 <othername>$LastChangedBy$</othername>
30 <date>$Date$</date>
31 </sect1info>
32
33 <title>Qt-&qt4-version;</title>
34
35 <indexterm zone="qt4">
36 <primary sortas="a-Qt">Qt</primary>
37 </indexterm>
38
39 <sect2 role="package">
[1b0d0188]40 <title>Introduction to Qt4</title>
[7af92fe5]41
42 <para>
[1b0d0188]43 <application>Qt4</application> is a cross-platform application framework
44 that is widely used for developing application software with a graphical
45 user interface (GUI) (in which cases Qt4 is classified as a widget
46 toolkit), and also used for developing non-GUI programs such as
47 command-line tools and consoles for servers. One of the major users of
48 <application>Qt</application> is <application>KDE4</application>.
[7af92fe5]49 </para>
50
[7a34460d]51 &lfs79_checked;
[7af92fe5]52
53 <bridgehead renderas="sect3">Package Information</bridgehead>
54 <itemizedlist spacing="compact">
55 <listitem>
56 <para>
57 Download (HTTP): <ulink url="&qt4-download-http;"/>
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download (FTP): <ulink url="&qt4-download-ftp;"/>
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Download MD5 sum: &qt4-md5sum;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Download size: &qt4-size;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Estimated disk space required: &qt4-buildsize;
78 </para>
79 </listitem>
80 <listitem>
81 <para>
82 Estimated build time: &qt4-time;
83 </para>
84 </listitem>
85 </itemizedlist>
[67b1a0a]86<!--
[e2abf328]87 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
88 <itemizedlist spacing="compact">
89 <listitem>
90 <para>
91 Recommended package: <ulink url="&qtwebkit-download;"/>
92 </para>
93 </listitem>
94 <listitem>
95 <para>
96 Download MD5 sum: &qtwebkit-md5sum;
97 </para>
98 </listitem>
99 <listitem>
100 <para>
101 Download size: &qtwebkit-size;
102 </para>
103 </listitem>
104 <listitem>
105 <para>
[8d427b0a]106 Recommended patch:
107 <ulink url="&patch-root;/qtwebkit-&wk-version;-gcc5-1.patch"/>
[e2abf328]108 </para>
109 </listitem>
110 </itemizedlist>
[67b1a0a]111-->
[7af92fe5]112 <bridgehead renderas="sect3">Qt Dependencies</bridgehead>
113
114 <bridgehead renderas="sect4">Required</bridgehead>
115 <para role="required">
[e4a1f8a9]116 <xref linkend="xorg7-lib"/>
[7af92fe5]117 </para>
118
119 <bridgehead renderas="sect4">Recommended</bridgehead>
120 <para role="recommended">
[e4a1f8a9]121 <xref linkend="alsa-lib"/>,
[7a395d1]122 <xref linkend="mesa"/>,
[7af92fe5]123 <xref linkend="cacerts"/>,
[54666831]124 <xref linkend="dbus"/>,
[7af92fe5]125 <xref linkend="glib2"/>,
[d8efa96]126 <xref linkend="gst10-plugins-base"/> (For QtWebKit HTML5 Video),
[7af92fe5]127 <xref linkend="icu"/> (unicode support),
128 <xref linkend="libjpeg"/>,
129 <xref linkend="libmng"/>,
130 <xref linkend="libpng"/>,
131 <xref linkend="libtiff"/>,
[b9488cf]132 <xref linkend="ruby"/>,
[a8ece039]133 <xref linkend="openssl"/>, and
[7af92fe5]134 <xref linkend="sqlite"/>
135 </para>
136
137 <bridgehead renderas="sect4">Optional</bridgehead>
138 <para role="optional">
139 <xref linkend="cups"/>,
140 <xref linkend="gtk2"/> (GTK+ 2 theme support),
[5e0662d]141 <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
[7af92fe5]142 <xref linkend="postgresql"/>,
[ec7940be]143 <xref linkend="pulseaudio"/>, and
144 <xref linkend="unixodbc"/>
[7af92fe5]145 </para>
146
147 <para condition="html" role="usernotes">User Notes:
148 <ulink url="&blfs-wiki;/qt4"/>
149 </para>
150 </sect2>
151
[8d427b0a]152 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1b0d0188]153 href="../../xincludes/qt-alternatives.xml"/>
[ec7940be]154
[0dd2bc6]155 <sect2 role="qt4-prefix">
156 <title>Setting the installation prefix</title>
157
158 <bridgehead renderas="sect3">Installing in /opt/qt4</bridgehead>
159
160 <para>
[1b0d0188]161 The BLFS editors recommend installing <application>Qt4</application> in a
162 directory other than <filename class="directory">/usr</filename>, ie
163 <filename class="directory">/opt/qt4</filename>. To do this, set the
164 following environment variable:
[0dd2bc6]165 </para>
166
167<screen><userinput>export QT4PREFIX=/opt/qt4</userinput></screen>
168
169 <tip>
170 <para>
171 Sometimes, the installation paths are hardcoded into installed files.
172 This is the reason why <filename class="directory">/opt/qt4</filename>
173 is used as installation prefix instead of <filename
[8d427b0a]174 class="directory">/opt/qt-&qt4-version;</filename>. To create a
175 versioned <application>Qt4</application> directory, you may rename
[0dd2bc6]176 the directory and create a symlink:
177 </para>
178
[57a6033]179<screen role="root"><userinput>mkdir -pv /opt/qt-&qt4-version;
[0dd2bc6]180ln -sfnv qt-&qt4-version; /opt/qt4</userinput></screen>
181
182 <para>
183 Later on, you may want to install other versions of
184 <application>Qt4</application>. To do that, just remove the symlink
185 and use <filename class="directory">/opt/qt4</filename> as the
186 prefix again. Which version of <application>Qt4</application> you
187 use depends only on where the symlink points.
188 </para>
189 </tip>
190
191 </sect2>
192
[7af92fe5]193 <sect2 role="installation">
[1b0d0188]194 <title>Installation of Qt4</title>
[8d4b121]195
[fb28b3b]196 <warning>
[7af92fe5]197 <para>
[fb28b3b]198 If <application>Qt4</application> is being reinstalled into the
[9f193fc]199 same directory as an existing instance, run the commands done by
[775fbafd]200 <systemitem class="username">root</systemitem>, such as
201 <command>make install</command>, from a console or non-Qt4 based
[9f193fc]202 window manager. It overwrites <application>Qt4</application>
203 libraries that should not be in use during the install process.
[7af92fe5]204 </para>
[fb28b3b]205 </warning>
[7af92fe5]206
[1b0d0188]207 <caution>
208 <para>
209 If you did not install some of the recommended dependencies, examine
210 <command>./configure --help</command> output to check how to disable
211 them or use internal versions bundled in the source tarball.
212 </para>
213 </caution>
214
[7af92fe5]215 <note>
216 <para>
217 The build time and space required for the full
[21c0f032]218 <application>Qt4</application> is quite long. The instructions below do
[1b0d0188]219 not build the tutorials and examples. Removing the
[7af92fe5]220 <parameter>-nomake</parameter> lines will create a complete build.
221 </para>
222 </note>
223
[1b0d0188]224 <note>
225 <para>
226 The BLFS editors do not recommend installing <application>Qt4</application>
227 into the /usr hierarchy because it becomes difficult to find
228 components and to update to a new version. If you do want to install
229 <application>Qt4</application> in /usr, the directories need to
[8d427b0a]230 be specified explicitly. In this case, set QT4PREFIX=/usr and add
[bc1fb5d]231 the following to the configure arguments below:
232 </para>
[1b0d0188]233
[bc1fb5d]234<screen role="nodump"><userinput>-bindir /usr/bin/qt4 \
[1b0d0188]235-plugindir /usr/lib/qt4/plugins \
236-importdir /usr/lib/qt4/imports \
237-headerdir /usr/include/qt4 \
238-datadir /usr/share/qt4 \
239-docdir /usr/share/doc/qt4 \
240-translationdir /usr/share/qt4/translations \
241-demosdir /usr/share/doc/qt4/demos \
[bc1fb5d]242-examplesdir /usr/share/doc/qt4/examples \</userinput></screen>
[1b0d0188]243 </note>
244
[7af92fe5]245 <para>
[1b0d0188]246 Install <application>Qt4</application> by running the following commands:
[7af92fe5]247 </para>
248
[1b0d0188]249<screen><userinput>./configure -prefix $QT4PREFIX \
250 -sysconfdir /etc/xdg \
251 -confirm-license \
252 -opensource \
253 -release \
254 -dbus-linked \
255 -openssl-linked \
256 -system-sqlite \
257 -no-phonon \
258 -no-phonon-backend \
[e2abf328]259 -no-webkit \
[1b0d0188]260 -no-openvg \
261 -nomake demos \
262 -nomake examples \
263 -optimized-qmake &amp;&amp;
[7af92fe5]264make</userinput></screen>
265
266 <para>
267 This package does not come with a test suite.
268 </para>
269
[acacfb64]270 <para>
[1b0d0188]271 Now as the <systemitem class="username">root</systemitem> user:
[acacfb64]272 </para>
273
[1b0d0188]274<screen role="root"><userinput>make install &amp;&amp;
275rm -rf $QT4PREFIX/tests</userinput></screen>
[338015f]276
[1b0d0188]277 <para>
278 Remove references to the build directory from the installed
279 <filename class="extension">.pc</filename> files by running
[05060e1]280 the following command as the
281 <systemitem class="username">root</systemitem> user:
[1b0d0188]282 </para>
[7af92fe5]283
[05060e1]284<screen role="root"><userinput>find $QT4PREFIX/lib/pkgconfig -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
[7af92fe5]285
286 <para>
[21c0f032]287 Remove references to the build directory in the installed library
288 dependency (prl) files by running the following command as the
[7af92fe5]289 <systemitem class="username">root</systemitem> user:
290 </para>
291
[1b0d0188]292<screen role="root"><userinput>for file in $QT4PREFIX/lib/libQt*.prl; do
293 sed -r -e '/^QMAKE_PRL_BUILD_DIR/d' \
294 -e 's/(QMAKE_PRL_LIBS =).*/\1/' \
295 -i $file
296done</userinput></screen>
[67b1a0a]297<!--
[e2abf328]298 <bridgehead renderas="sect3">Building Qtwebkit</bridgehead>
299
300 <para>
301 The bundled version of qtwebkit in the main package requires an
[8d427b0a]302 obsolete version of the <application>gstreamer</application> package.
303 To overcome this, we use a more recent version available separately.
[e2abf328]304 </para>
305
[73fe507]306 <para>To start, the upstream package is unusual in that it does not come
307 in a directory, so we have to create one before unpacking the tarball.
[33c9d33]308 After that, we need to make the package compatible with the latest version
[73fe507]309 of gcc and use an included script to actually complete the build. To do
310 this, run the following instructions:</para>
[e2abf328]311
312<screen><userinput>mkdir qtwebkit-&wk-version; &amp;&amp;
[57a6033]313pushd qtwebkit-&wk-version; &amp;&amp;
[e2abf328]314
315tar -xf ../../qtwebkit-&wk-version;.tar.gz &amp;&amp;
316patch -Np1 -i ../../qtwebkit-&wk-version;-gcc5-1.patch &amp;&amp;
317
[57a6033]318QTDIR=$QT4PREFIX PATH=$PATH:$QT4PREFIX/bin \
[67b1a0a]319Tools/Scripts/build-webkit -i -qt \
320 - -no-webkit2 \
321 - -prefix=$QT4PREFIX</userinput></screen>
[e2abf328]322
323 <para>If desired, the build process can use parallel processors by
[67b1a0a]324 adding the option <option>- -makeargs=-j&lt;number&gt;</option> to
[e2abf328]325 the <command>build-webkit</command> instruction above.</para>
326
327 <para>
328 To install the package, as the <systemitem class="username">root</systemitem> user:
329 </para>
330
[54f8f1c]331<screen role="root"><userinput>make -C WebKitBuild/Release install</userinput></screen>
[67b1a0a]332-->
[e2abf328]333 <bridgehead renderas="sect3">Installing Auxillary Files</bridgehead>
334
[57a6033]335 <para>
336 The following instructions assume that your working directory is the top
337 of the <application>Qt4</application> source tree:
338 </para>
339
340<screen><userinput>popd</userinput></screen>
341
[fb28b3b]342 <para>
[1b0d0188]343 Install images and create the menu entries for installed applications.
344 The <envar>QT4BINDIR</envar> variable is used here to point to the
345 directory for the executable programs. If you have changed the bindir
346 above, <envar>QT4BINDIR</envar> will need to be adjusted below. Be sure
347 that the <envar>QT4BINDIR</envar> variable is defined in root's
348 environment and as the <systemitem class="username">root</systemitem>
349 user:
[fb28b3b]350 </para>
351
[1b0d0188]352<screen role="root"><userinput>QT4BINDIR=$QT4PREFIX/bin
353
354install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \
[54e9eea]355 /usr/share/pixmaps/qt4logo.png &amp;&amp;
[ec7940be]356
[54e9eea]357install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \
358 /usr/share/pixmaps/assistant-qt4.png &amp;&amp;
[ec7940be]359
[54e9eea]360install -v -Dm644 tools/designer/src/designer/images/designer.png \
361 /usr/share/pixmaps/designer-qt4.png &amp;&amp;
[ec7940be]362
[54e9eea]363install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \
364 /usr/share/pixmaps/linguist-qt4.png &amp;&amp;
[ec7940be]365
[54e9eea]366install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \
[ec7940be]367 /usr/share/pixmaps/qdbusviewer-qt4.png &amp;&amp;
[54e9eea]368
[ec7940be]369install -dm755 /usr/share/applications &amp;&amp;
[54e9eea]370
[ec7940be]371cat &gt; /usr/share/applications/assistant-qt4.desktop &lt;&lt; EOF
372<literal>[Desktop Entry]
[8d427b0a]373Name=Qt4 Assistant
[ec7940be]374Comment=Shows Qt4 documentation and examples
[1b0d0188]375Exec=$QT4BINDIR/assistant
[ec7940be]376Icon=assistant-qt4.png
377Terminal=false
378Encoding=UTF-8
379Type=Application
380Categories=Qt;Development;Documentation;</literal>
381EOF
[54e9eea]382
[ec7940be]383cat &gt; /usr/share/applications/designer-qt4.desktop &lt;&lt; EOF
384<literal>[Desktop Entry]
385Name=Qt4 Designer
386Comment=Design GUIs for Qt4 applications
[1b0d0188]387Exec=$QT4BINDIR/designer
[ec7940be]388Icon=designer-qt4.png
389MimeType=application/x-designer;
390Terminal=false
391Encoding=UTF-8
392Type=Application
393Categories=Qt;Development;</literal>
394EOF
[54e9eea]395
[ec7940be]396cat &gt; /usr/share/applications/linguist-qt4.desktop &lt;&lt; EOF
397<literal>[Desktop Entry]
[8d427b0a]398Name=Qt4 Linguist
[ec7940be]399Comment=Add translations to Qt4 applications
[1b0d0188]400Exec=$QT4BINDIR/linguist
[ec7940be]401Icon=linguist-qt4.png
402MimeType=text/vnd.trolltech.linguist;application/x-linguist;
403Terminal=false
404Encoding=UTF-8
405Type=Application
406Categories=Qt;Development;</literal>
407EOF
[79904cf]408
[ec7940be]409cat &gt; /usr/share/applications/qdbusviewer-qt4.desktop &lt;&lt; EOF
410<literal>[Desktop Entry]
[8d427b0a]411Name=Qt4 QDbusViewer
[ec7940be]412GenericName=D-Bus Debugger
413Comment=Debug D-Bus applications
[1b0d0188]414Exec=$QT4BINDIR/qdbusviewer
[ec7940be]415Icon=qdbusviewer-qt4.png
416Terminal=false
417Encoding=UTF-8
418Type=Application
419Categories=Qt;Development;Debugger;</literal>
420EOF
[79904cf]421
[ec7940be]422cat &gt; /usr/share/applications/qtconfig-qt4.desktop &lt;&lt; EOF
423<literal>[Desktop Entry]
[8d427b0a]424Name=Qt4 Config
[ec7940be]425Comment=Configure Qt4 behavior, styles, fonts
[1b0d0188]426Exec=$QT4BINDIR/qtconfig
[ec7940be]427Icon=qt4logo.png
428Terminal=false
429Encoding=UTF-8
430Type=Application
431Categories=Qt;Settings;</literal>
432EOF</userinput></screen>
[79904cf]433
[05060e1]434 <para>
435 Some packages such as <xref linkend='vlc'/> look for certain
436 executables with a -qt4 suffix. Run the following command as the
437 <systemitem class="username">root</systemitem> user
438 to create the necessary symlinks:
439 </para>
[1b0d0188]440
441<screen role="root"><userinput>for file in moc uic rcc qmake lconvert lrelease lupdate; do
442 ln -sfrvn $QT4BINDIR/$file /usr/bin/$file-qt4
443done</userinput></screen>
444
[7af92fe5]445 </sect2>
446
447 <sect2 role="commands">
448 <title>Command Explanations</title>
449
450 <para>
451 <parameter>-confirm-license</parameter>: Accept license
452 without prompting user during configuration.
453 </para>
454
455 <para>
456 <parameter>-opensource</parameter>: Install the opensource
457 version of <application>Qt</application>.
458 </para>
459
[8d4b121]460 <para>
461 <parameter>-release</parameter>: This switch disables
462 building with debugging symbols.
463 </para>
[7af92fe5]464
465 <para>
466 <parameter>-nomake examples -nomake demos</parameter>:
467 These switches disable building programs that are only of
[ec7940be]468 interest to a developer using <application>Qt</application>.
[7af92fe5]469 </para>
470
471 <para>
472 <parameter>-system-sqlite</parameter>: This switch enables use
473 the system version of <application>SQLite</application>.
474 </para>
475
476 <para>
477 <parameter>-no-nis</parameter>: This switch disables support
478 for Network Information Service (NIS) which has been
479 deprecated in recent versions of <application>Glibc</application>.
480 </para>
481
482 <para>
483 <parameter>-no-phonon -no-phonon-backend</parameter>: These
484 switches disable building of the bundled
485 <application>Phonon</application> library. Better version
486 is provided by <xref linkend="phonon"/> package.
487 </para>
488
489 <para>
[05dcb8af]490 <parameter>-dbus-linked -openssl-linked</parameter>: These
[7af92fe5]491 switches enable explicit linking of the
492 <application>D-Bus</application> and
493 <application>OpenSSL</application> libraries into
494 <application>Qt</application> libraries instead of
495 <command>dlopen()</command>-ing them.
496 </para>
497
498 <para>
499 <parameter>-no-openvg</parameter>: This switch disables
500 <application>OpenVG</application> support in
501 <application>Qt</application>.
502 </para>
503
[8d4b121]504 <para>
505 <parameter>-optimized-qmake</parameter>: This switch enables
506 building of the optimized <command>qmake</command> program.
507 </para>
508
[df5884e]509 <para>
510 <option>-no-dbus</option>: Use this switch if you don't have
511 <application>D-Bus</application> installed.
512 </para>
513
[7af92fe5]514 </sect2>
515
516 <sect2 role="configuration">
517 <title>Configuring Qt</title>
518
519 <sect3 id="qt4-config">
520 <title>Configuration Information</title>
521
522 <para>
[a8ece039]523 If you installed <application>Qt</application> in /usr,
524 create an environment variable needed by certain packages.
[7af92fe5]525 As the <systemitem class="username">root</systemitem> user:
526 </para>
527
[57a6033]528<screen role="root"><userinput>cat &gt; /etc/profile.d/qt4.sh &lt;&lt; "EOF"
[41ddd5f]529<literal># Begin /etc/profile.d/qt4.sh
[7af92fe5]530
[49d3336]531QT4DIR=/usr
[1b0d0188]532QTDIR=$QT4DIR
533export QT4DIR QTDIR
[7af92fe5]534
[becfbd8]535pathappend $$QT4DIR/qt/bin
536
[41ddd5f]537# End /etc/profile.d/qt4.sh</literal>
[7af92fe5]538EOF</userinput></screen>
539
[54e9eea]540 <para>
[1b0d0188]541 If you installed <application>Qt4</application> in a location other
[a8ece039]542 than /usr, you need to update the following configuration files so
543 that <application>Qt</application> is correctly found by other packages
544 and system processes.</para>
[8d427b0a]545
[a8ece039]546 <para>As the <systemitem class="username">root</systemitem> user, update
[54e9eea]547 the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
548 run-time cache file:
549 </para>
[8d427b0a]550
[becfbd8]551 <note><para>If you installed <application>Qt4</application> in
552 /usr with the commands specified above, the PATH entries
553 in the scripts below need to be adjusted accordingly.</para></note>
554
[54e9eea]555<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
[fb28b3b]556<literal># Begin Qt addition
[8d427b0a]557
[41ddd5f]558/opt/qt4/lib
[8d427b0a]559
[54e9eea]560# End Qt addition</literal>
561EOF
562
563ldconfig</userinput></screen>
[8d427b0a]564
[fb28b3b]565 <indexterm zone="qt4 qt4-config">
[a8ece039]566 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
567 </indexterm>
[8d427b0a]568
[54e9eea]569 <para>
570 As the <systemitem class="username">root</systemitem> user, create
[41ddd5f]571 the <filename>/etc/profile.d/qt4.sh</filename> file:
[54e9eea]572 </para>
[8d427b0a]573
[57a6033]574<screen role="root"><userinput>cat &gt; /etc/profile.d/qt4.sh &lt;&lt; "EOF"
[41ddd5f]575<literal># Begin /etc/profile.d/qt4.sh
[8d427b0a]576
[49d3336]577QT4DIR=/opt/qt4
[1b0d0188]578QTDIR=$QT4DIR
[8d427b0a]579
[1b0d0188]580pathappend $QT4DIR/bin PATH
581pathappend $QT4DIR/lib/pkgconfig PKG_CONFIG_PATH
[8d427b0a]582
[1b0d0188]583export QT4DIR QTDIR
[8d427b0a]584
[41ddd5f]585# End /etc/profile.d/qt4.sh</literal>
[54e9eea]586EOF</userinput></screen>
587
[7af92fe5]588
589 </sect3>
[8d427b0a]590
591 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ec7940be]592 href="../../xincludes/setqt.xml"/>
[7af92fe5]593 </sect2>
594
595 <sect2 role="content">
596 <title>Contents</title>
597
598 <segmentedlist>
599 <segtitle>Installed Programs</segtitle>
600 <segtitle>Installed Libraries</segtitle>
601 <segtitle>Installed Directories</segtitle>
602
603 <seglistitem>
604 <seg>
[ec7940be]605 assistant, designer, lconvert, linguist,
606 lrelease, lupdate, moc, pixeltool,
607 qcollectiongenerator, qdbuscpp2xml, qdbus,
608 qdbusviewer, qdbusxml2cpp, qdoc3, qhelpconverter,
609 qhelpgenerator, qmake, qmlplugindump, qmlviewer,
610 qt3to4, qtconfig, qttracereplay, rcc, uic3,
611 uic, xmlpatterns, and xmlpatternsvalidator
[7af92fe5]612 </seg>
613 <seg>
[18310d86]614 libQtUiTools.a, libQt3Support.so, libQtCLucene.so, libQtCore.so,
615 libQtDBus.so, libQtDeclarative.so, libQtDesignerComponents.so,
[8d4b121]616 libQtDesigner.so, libQtGui.so, libQtHelp.so, libQtMultimedia.so,
617 libQtNetwork.so, libQtOpenGL.so, libQtScript.so, libQtScriptTools.so,
618 libQtSql.so, libQtSvg.so, libQtTest.so, libQtWebKit.so,
[18310d86]619 libQtXmlPatterns.so, and libQtXml.so, and several plugins under
620 /opt/qt4/imports and /opt/qt4/plugins
[7af92fe5]621 </seg>
622 <seg>
623 /usr/include/qt4,
624 /usr/lib/qt4,
[54e9eea]625 /usr/share/doc/qt4, and
[8d427b0a]626 /usr/share/qt4
627 OR
628 /opt/qt4 and
[ec7940be]629 /opt/qt-&qt4-version;
[7af92fe5]630 </seg>
631 </seglistitem>
632 </segmentedlist>
633
634 <variablelist>
635 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
636 <?dbfo list-presentation="list"?>
637 <?dbhtml list-presentation="table"?>
638
[8d4b121]639 <varlistentry id="assistant-qt4">
[ec7940be]640 <term><command>assistant</command></term>
[7af92fe5]641 <listitem>
642 <para>
643 is a tool for presenting on-line documentation.
644 </para>
[8d4b121]645 <indexterm zone="qt4 assistant-qt4">
[ec7940be]646 <primary sortas="b-assistant-qt4">assistant</primary>
[7af92fe5]647 </indexterm>
648 </listitem>
649 </varlistentry>
650
[8d4b121]651 <varlistentry id="designer-qt4">
[ec7940be]652 <term><command>designer</command></term>
[7af92fe5]653 <listitem>
654 <para>
655 is a full-fledged GUI builder. It includes
656 powerful features such as preview mode, automatic widget
657 layout, support for custom widgets, and an advanced
658 property editor.
659 </para>
[8d4b121]660 <indexterm zone="qt4 designer-qt4">
[ec7940be]661 <primary sortas="b-designer-qt4">designer</primary>
[7af92fe5]662 </indexterm>
663 </listitem>
664 </varlistentry>
665
[8b9ad6e]666 <varlistentry id="lconvert-qt4">
667 <term><command>lconvert</command></term>
668 <listitem>
669 <para>
670 is part of Qt4's Linguist tool chain. It can be used as a
671 standalone tool to convert and filter translation data files.
672 </para>
673 <indexterm zone="qt4 lconvert-qt4">
674 <primary sortas="b-lconvert-qt4">lconvert</primary>
675 </indexterm>
676 </listitem>
677 </varlistentry>
678
[8d4b121]679 <varlistentry id="linguist-qt4">
[ec7940be]680 <term><command>linguist</command></term>
[7af92fe5]681 <listitem>
682 <para>
683 provides support for translating applications into
684 local languages.
685 </para>
[8d4b121]686 <indexterm zone="qt4 linguist-qt4">
[ec7940be]687 <primary sortas="b-linguist-qt4">linguist</primary>
[7af92fe5]688 </indexterm>
689 </listitem>
690 </varlistentry>
691
[8d4b121]692 <varlistentry id="lrelease-qt4">
[ec7940be]693 <term><command>lrelease</command></term>
[7af92fe5]694 <listitem>
695 <para>
696 is a simple command line tool. It reads a Qt project
697 file and produces message files used by the application.
698 </para>
[8d4b121]699 <indexterm zone="qt4 lrelease-qt4">
[ec7940be]700 <primary sortas="b-lrelease-qt4">lrelease</primary>
[7af92fe5]701 </indexterm>
702 </listitem>
703 </varlistentry>
704
[8d4b121]705 <varlistentry id="lupdate-qt4">
[ec7940be]706 <term><command>lupdate</command></term>
[7af92fe5]707 <listitem>
708 <para>
709 reads a Qt project file, finds the translatable
710 strings in the specified source, header and Qt Designer
711 interface files, and produces or updates the translation
712 files listed in the project file.
713 </para>
[8d4b121]714 <indexterm zone="qt4 lupdate-qt4">
[ec7940be]715 <primary sortas="b-lupdate-qt4">lupdate</primary>
[7af92fe5]716 </indexterm>
717 </listitem>
718 </varlistentry>
719
[8d4b121]720 <varlistentry id="moc-qt4">
[ec7940be]721 <term><command>moc</command></term>
[7af92fe5]722 <listitem>
723 <para>
724 generates Qt meta object support code.
725 </para>
[8d4b121]726 <indexterm zone="qt4 moc-qt4">
[ec7940be]727 <primary sortas="b-moc-qt4">moc</primary>
[7af92fe5]728 </indexterm>
729 </listitem>
730 </varlistentry>
731
[8d4b121]732 <varlistentry id="pixeltool-qt4">
[ec7940be]733 <term><command>pixeltool</command></term>
[7af92fe5]734 <listitem>
735 <para>
736 is a desktop magnifier and as you move your mouse around
737 the screen it will show the magnified contents in its window.
738 </para>
[8d4b121]739 <indexterm zone="qt4 pixeltool-qt4">
[ec7940be]740 <primary sortas="b-pixeltool-qt4">pixeltool</primary>
[7af92fe5]741 </indexterm>
742 </listitem>
743 </varlistentry>
744
[8b9ad6e]745 <varlistentry id="qcollectiongenerator-qt4">
746 <term><command>qcollectiongenerator</command></term>
747 <listitem>
748 <para>
749 is a tool used to create a Qt Help Collection.
750 </para>
751 <indexterm zone="qt4 qcollectiongenerator-qt4">
752 <primary sortas="b-qcollectiongenerator-qt4">qcollectiongenerator</primary>
753 </indexterm>
754 </listitem>
755 </varlistentry>
756
757 <varlistentry id="qdbuscpp2xml-qt4">
758 <term><command>qdbuscpp2xml</command></term>
759 <listitem>
760 <para>
761 takes a C++ source file and generates a D-Bus XML definition
762 of the interface.
763 </para>
764 <indexterm zone="qt4 qdbuscpp2xml-qt4">
765 <primary sortas="b-qdbuscpp2xml-qt4">qdbuscpp2xml</primary>
766 </indexterm>
767 </listitem>
768 </varlistentry>
769
770 <varlistentry id="qdbus-qt4">
771 <term><command>qdbus</command></term>
772 <listitem>
773 <para>
774 lists available services, object paths, methods, signals, and
775 properties of objects on a bus.
776 </para>
777 <indexterm zone="qt4 qdbus-qt4">
778 <primary sortas="b-qdbus-qt4">qdbus</primary>
779 </indexterm>
780 </listitem>
781 </varlistentry>
782
783 <varlistentry id="qdbusviewer-qt4">
784 <term><command>qdbusviewer</command></term>
785 <listitem>
786 <para>
787 is a graphical D-Bus browser.
788 </para>
789 <indexterm zone="qt4 qdbusviewer-qt4">
790 <primary sortas="b-qdbusviewer-qt4">qdbusviewer</primary>
791 </indexterm>
792 </listitem>
793 </varlistentry>
794
795 <varlistentry id="qdbusxml2cpp-qt4">
796 <term><command>qdbusxml2cpp</command></term>
797 <listitem>
798 <para>
799 is a tool that can be used to parse interface descriptions
800 and produce static code representing those interfaces,
801 </para>
802 <indexterm zone="qt4 qdbusxml2cpp-qt4">
803 <primary sortas="b-qdbusxml2cpp-qt4">qdbusxml2cpp</primary>
804 </indexterm>
805 </listitem>
806 </varlistentry>
807
808 <varlistentry id="qdoc3-qt4">
809 <term><command>qdoc3</command></term>
810 <listitem>
811 <para>
812 is a tool used by <application>Qt</application> Developers to
813 generate documentation for software projects.
814 </para>
815 <indexterm zone="qt4 qdoc3-qt4">
816 <primary sortas="b-qdoc3-qt4">qdoc3</primary>
817 </indexterm>
818 </listitem>
819 </varlistentry>
820
821 <varlistentry id="qhelpconverter-qt4">
822 <term><command>qhelpconverter</command></term>
823 <listitem>
824 <para>
825 is a tool used to convert files to <application>Qt</application>
826 help format.
827 </para>
828 <indexterm zone="qt4 qhelpconverter-qt4">
829 <primary sortas="b-qhelpconverter-qt4">qhelpconverter</primary>
830 </indexterm>
831 </listitem>
832 </varlistentry>
833
834 <varlistentry id="qhelpgenerator-qt4">
835 <term><command>qhelpgenerator</command></term>
836 <listitem>
837 <para>
838 is a tool used to generate a <application>Qt</application>
839 compressed help file.
840 </para>
841 <indexterm zone="qt4 qhelpgenerator-qt4">
842 <primary sortas="b-qhelpgenerator-qt4">qhelpgenerator</primary>
843 </indexterm>
844 </listitem>
845 </varlistentry>
846
[8d4b121]847 <varlistentry id="qmake-qt4">
[ec7940be]848 <term><command>qmake</command></term>
[7af92fe5]849 <listitem>
850 <para>
851 uses information stored in project files to
852 determine what should go in the makefiles it
853 generates.
854 </para>
[8d4b121]855 <indexterm zone="qt4 qmake-qt4">
[ec7940be]856 <primary sortas="b-qmake-qt4">qmake</primary>
[7af92fe5]857 </indexterm>
858 </listitem>
859 </varlistentry>
860
[8b9ad6e]861 <varlistentry id="qmlplugindump-qt4">
862 <term><command>qmlplugindump</command></term>
863 <listitem>
864 <para>
865 is a tool to create a qmltypes file.
866 </para>
867 <indexterm zone="qt4 qmlplugindump-qt4">
868 <primary sortas="b-qmlplugindump-qt4">qmlplugindump</primary>
869 </indexterm>
870 </listitem>
871 </varlistentry>
872
873 <varlistentry id="qmlviewer-qt4">
874 <term><command>qmlviewer</command></term>
875 <listitem>
876 <para>
877 is a tool for loading QML documents that makes it easy to quickly
878 develop and debug QML applications.
879 </para>
880 <indexterm zone="qt4 qmlviewer-qt4">
881 <primary sortas="b-qmlviewer-qt4">qmlviewer</primary>
882 </indexterm>
883 </listitem>
884 </varlistentry>
885
[8d4b121]886 <varlistentry id="qt3to4-qt4">
[ec7940be]887 <term><command>qt3to4</command></term>
[7af92fe5]888 <listitem>
889 <para>
890 qt3to4 is a tool to help update Qt3 code to Qt4.
891 </para>
[8d4b121]892 <indexterm zone="qt4 qt3to4-qt4">
[ec7940be]893 <primary sortas="b-qt3to4-qt4">qt3to4</primary>
[7af92fe5]894 </indexterm>
895 </listitem>
896 </varlistentry>
897
[8d4b121]898 <varlistentry id="qtconfig-qt4">
[ec7940be]899 <term><command>qtconfig</command></term>
[7af92fe5]900 <listitem>
901 <para>
902 is used to customize the appearance of Qt applications.
903 </para>
[8d4b121]904 <indexterm zone="qt4 qtconfig-qt4">
[ec7940be]905 <primary sortas="b-qtconfig-qt4">qtconfig</primary>
[7af92fe5]906 </indexterm>
907 </listitem>
908 </varlistentry>
909
[8b9ad6e]910 <varlistentry id="qttracereplay">
911 <term><command>qttracereplay</command></term>
912 <listitem>
913 <para>
[f3429309]914 is a tool to replay all drawing operations recording with
[8b9ad6e]915 <command>-graphicssystem trace</command> into a trace buffer.
916 </para>
917 <indexterm zone="qt4 qttracereplay">
918 <primary sortas="b-qttracereplay">qttracereplay</primary>
919 </indexterm>
920 </listitem>
921 </varlistentry>
922
[8d4b121]923 <varlistentry id="rcc-qt4">
[ec7940be]924 <term><command>rcc</command></term>
[7af92fe5]925 <listitem>
926 <para>
927 is a resource compiler used in conjunction with designer.
928 </para>
[8d4b121]929 <indexterm zone="qt4 rcc-qt4">
[ec7940be]930 <primary sortas="b-rcc-qt4">rcc</primary>
[7af92fe5]931 </indexterm>
932 </listitem>
933 </varlistentry>
934
[8d4b121]935 <varlistentry id="uic-qt4">
[ec7940be]936 <term><command>uic</command></term>
[7af92fe5]937 <listitem>
938 <para>
939 is a Qt user interface compiler.
940 </para>
[8d4b121]941 <indexterm zone="qt4 uic-qt4">
[ec7940be]942 <primary sortas="b-uic-qt4">uic</primary>
[7af92fe5]943 </indexterm>
944 </listitem>
945 </varlistentry>
946
[8d4b121]947 <varlistentry id="uic3-qt4">
[ec7940be]948 <term><command>uic3</command></term>
[7af92fe5]949 <listitem>
950 <para>
951 is a tool to generate Qt4 code out of
952 user interface files generated by the Qt3
953 version of designer.
954 </para>
[8d4b121]955 <indexterm zone="qt4 uic3-qt4">
[ec7940be]956 <primary sortas="b-uic3-qt4">uic3</primary>
[7af92fe5]957 </indexterm>
958 </listitem>
959 </varlistentry>
960
[8b9ad6e]961 <varlistentry id="xmlpatterns-qt4">
962 <term><command>xmlpatterns</command></term>
963 <listitem>
964 <para>
965 provides support for XPath, XQuery, XSLT, and XML Schema
966 validation.
967 </para>
968 <indexterm zone="qt4 xmlpatterns-qt4">
969 <primary sortas="b-xmlpatterns-qt4">xmlpatterns</primary>
970 </indexterm>
971 </listitem>
972 </varlistentry>
973
974 <varlistentry id="xmlpatternsvalidator-qt4">
975 <term><command>xmlpatternsvalidator</command></term>
976 <listitem>
977 <para>
978 is a tool used to validate XML documents.
979 </para>
980 <indexterm zone="qt4 xmlpatternsvalidator-qt4">
981 <primary sortas="b-xmlpatternsvalidator-qt4">xmlpatternsvalidator</primary>
982 </indexterm>
983 </listitem>
984 </varlistentry>
985
[7af92fe5]986 </variablelist>
987
988 </sect2>
989
990</sect1>
Note: See TracBrowser for help on using the repository browser.