source: x/lib/qt4.xml@ 730a1810

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.9 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 730a1810 was f3429309, checked in by Fernando de Oliveira <fernando@…>, 9 years ago
  • mupdf-1.8: minor reformat.
  • removing spaces from EOL, from Denis Mugnier.
  • BLFS/trunk/BOOK/kde/add/kdepim-runtime.xml: needed to fix to validate the book. One chunck had been removed. Bruce, please check if it is OK, now.

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

  • Property mode set to 100644
File size: 31.9 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">
[e2abf328]19
20 <!ENTITY qtwebkit-download "&webkit-url;/&wk-version;/src/qtwebkit-&wk-version;.tar.gz">
21 <!ENTITY qtwebkit-md5sum "42ef76d0cf7d0c611ef83418e9f297ff">
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
[f3429309]51 &lfs78_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>
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>
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>
[7af92fe5]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 \
319Tools/Scripts/build-webkit --qt \
320 --no-webkit2 \
321 --prefix=$QT4PREFIX</userinput></screen>
[e2abf328]322
323 <para>If desired, the build process can use parallel processors by
324 adding the option <option>--makeargs=-j&lt;number&gt;</option> to
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>
[e2abf328]332
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
[41ddd5f]535# End /etc/profile.d/qt4.sh</literal>
[7af92fe5]536EOF</userinput></screen>
537
[54e9eea]538 <para>
[1b0d0188]539 If you installed <application>Qt4</application> in a location other
[a8ece039]540 than /usr, you need to update the following configuration files so
541 that <application>Qt</application> is correctly found by other packages
542 and system processes.</para>
[8d427b0a]543
[a8ece039]544 <para>As the <systemitem class="username">root</systemitem> user, update
[54e9eea]545 the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
546 run-time cache file:
547 </para>
[8d427b0a]548
[54e9eea]549<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
[fb28b3b]550<literal># Begin Qt addition
[8d427b0a]551
[41ddd5f]552/opt/qt4/lib
[8d427b0a]553
[54e9eea]554# End Qt addition</literal>
555EOF
556
557ldconfig</userinput></screen>
[8d427b0a]558
[fb28b3b]559 <indexterm zone="qt4 qt4-config">
[a8ece039]560 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
561 </indexterm>
[8d427b0a]562
[54e9eea]563 <para>
564 As the <systemitem class="username">root</systemitem> user, create
[41ddd5f]565 the <filename>/etc/profile.d/qt4.sh</filename> file:
[54e9eea]566 </para>
[8d427b0a]567
[57a6033]568<screen role="root"><userinput>cat &gt; /etc/profile.d/qt4.sh &lt;&lt; "EOF"
[41ddd5f]569<literal># Begin /etc/profile.d/qt4.sh
[8d427b0a]570
[49d3336]571QT4DIR=/opt/qt4
[1b0d0188]572QTDIR=$QT4DIR
[8d427b0a]573
[1b0d0188]574pathappend $QT4DIR/bin PATH
575pathappend $QT4DIR/lib/pkgconfig PKG_CONFIG_PATH
[8d427b0a]576
[1b0d0188]577export QT4DIR QTDIR
[8d427b0a]578
[41ddd5f]579# End /etc/profile.d/qt4.sh</literal>
[54e9eea]580EOF</userinput></screen>
581
[7af92fe5]582
583 </sect3>
[8d427b0a]584
585 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ec7940be]586 href="../../xincludes/setqt.xml"/>
[7af92fe5]587 </sect2>
588
589 <sect2 role="content">
590 <title>Contents</title>
591
592 <segmentedlist>
593 <segtitle>Installed Programs</segtitle>
594 <segtitle>Installed Libraries</segtitle>
595 <segtitle>Installed Directories</segtitle>
596
597 <seglistitem>
598 <seg>
[ec7940be]599 assistant, designer, lconvert, linguist,
600 lrelease, lupdate, moc, pixeltool,
601 qcollectiongenerator, qdbuscpp2xml, qdbus,
602 qdbusviewer, qdbusxml2cpp, qdoc3, qhelpconverter,
603 qhelpgenerator, qmake, qmlplugindump, qmlviewer,
604 qt3to4, qtconfig, qttracereplay, rcc, uic3,
605 uic, xmlpatterns, and xmlpatternsvalidator
[7af92fe5]606 </seg>
607 <seg>
[18310d86]608 libQtUiTools.a, libQt3Support.so, libQtCLucene.so, libQtCore.so,
609 libQtDBus.so, libQtDeclarative.so, libQtDesignerComponents.so,
[8d4b121]610 libQtDesigner.so, libQtGui.so, libQtHelp.so, libQtMultimedia.so,
611 libQtNetwork.so, libQtOpenGL.so, libQtScript.so, libQtScriptTools.so,
612 libQtSql.so, libQtSvg.so, libQtTest.so, libQtWebKit.so,
[18310d86]613 libQtXmlPatterns.so, and libQtXml.so, and several plugins under
614 /opt/qt4/imports and /opt/qt4/plugins
[7af92fe5]615 </seg>
616 <seg>
617 /usr/include/qt4,
618 /usr/lib/qt4,
[54e9eea]619 /usr/share/doc/qt4, and
[8d427b0a]620 /usr/share/qt4
621 OR
622 /opt/qt4 and
[ec7940be]623 /opt/qt-&qt4-version;
[7af92fe5]624 </seg>
625 </seglistitem>
626 </segmentedlist>
627
628 <variablelist>
629 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
630 <?dbfo list-presentation="list"?>
631 <?dbhtml list-presentation="table"?>
632
[8d4b121]633 <varlistentry id="assistant-qt4">
[ec7940be]634 <term><command>assistant</command></term>
[7af92fe5]635 <listitem>
636 <para>
637 is a tool for presenting on-line documentation.
638 </para>
[8d4b121]639 <indexterm zone="qt4 assistant-qt4">
[ec7940be]640 <primary sortas="b-assistant-qt4">assistant</primary>
[7af92fe5]641 </indexterm>
642 </listitem>
643 </varlistentry>
644
[8d4b121]645 <varlistentry id="designer-qt4">
[ec7940be]646 <term><command>designer</command></term>
[7af92fe5]647 <listitem>
648 <para>
649 is a full-fledged GUI builder. It includes
650 powerful features such as preview mode, automatic widget
651 layout, support for custom widgets, and an advanced
652 property editor.
653 </para>
[8d4b121]654 <indexterm zone="qt4 designer-qt4">
[ec7940be]655 <primary sortas="b-designer-qt4">designer</primary>
[7af92fe5]656 </indexterm>
657 </listitem>
658 </varlistentry>
659
[8b9ad6e]660 <varlistentry id="lconvert-qt4">
661 <term><command>lconvert</command></term>
662 <listitem>
663 <para>
664 is part of Qt4's Linguist tool chain. It can be used as a
665 standalone tool to convert and filter translation data files.
666 </para>
667 <indexterm zone="qt4 lconvert-qt4">
668 <primary sortas="b-lconvert-qt4">lconvert</primary>
669 </indexterm>
670 </listitem>
671 </varlistentry>
672
[8d4b121]673 <varlistentry id="linguist-qt4">
[ec7940be]674 <term><command>linguist</command></term>
[7af92fe5]675 <listitem>
676 <para>
677 provides support for translating applications into
678 local languages.
679 </para>
[8d4b121]680 <indexterm zone="qt4 linguist-qt4">
[ec7940be]681 <primary sortas="b-linguist-qt4">linguist</primary>
[7af92fe5]682 </indexterm>
683 </listitem>
684 </varlistentry>
685
[8d4b121]686 <varlistentry id="lrelease-qt4">
[ec7940be]687 <term><command>lrelease</command></term>
[7af92fe5]688 <listitem>
689 <para>
690 is a simple command line tool. It reads a Qt project
691 file and produces message files used by the application.
692 </para>
[8d4b121]693 <indexterm zone="qt4 lrelease-qt4">
[ec7940be]694 <primary sortas="b-lrelease-qt4">lrelease</primary>
[7af92fe5]695 </indexterm>
696 </listitem>
697 </varlistentry>
698
[8d4b121]699 <varlistentry id="lupdate-qt4">
[ec7940be]700 <term><command>lupdate</command></term>
[7af92fe5]701 <listitem>
702 <para>
703 reads a Qt project file, finds the translatable
704 strings in the specified source, header and Qt Designer
705 interface files, and produces or updates the translation
706 files listed in the project file.
707 </para>
[8d4b121]708 <indexterm zone="qt4 lupdate-qt4">
[ec7940be]709 <primary sortas="b-lupdate-qt4">lupdate</primary>
[7af92fe5]710 </indexterm>
711 </listitem>
712 </varlistentry>
713
[8d4b121]714 <varlistentry id="moc-qt4">
[ec7940be]715 <term><command>moc</command></term>
[7af92fe5]716 <listitem>
717 <para>
718 generates Qt meta object support code.
719 </para>
[8d4b121]720 <indexterm zone="qt4 moc-qt4">
[ec7940be]721 <primary sortas="b-moc-qt4">moc</primary>
[7af92fe5]722 </indexterm>
723 </listitem>
724 </varlistentry>
725
[8d4b121]726 <varlistentry id="pixeltool-qt4">
[ec7940be]727 <term><command>pixeltool</command></term>
[7af92fe5]728 <listitem>
729 <para>
730 is a desktop magnifier and as you move your mouse around
731 the screen it will show the magnified contents in its window.
732 </para>
[8d4b121]733 <indexterm zone="qt4 pixeltool-qt4">
[ec7940be]734 <primary sortas="b-pixeltool-qt4">pixeltool</primary>
[7af92fe5]735 </indexterm>
736 </listitem>
737 </varlistentry>
738
[8b9ad6e]739 <varlistentry id="qcollectiongenerator-qt4">
740 <term><command>qcollectiongenerator</command></term>
741 <listitem>
742 <para>
743 is a tool used to create a Qt Help Collection.
744 </para>
745 <indexterm zone="qt4 qcollectiongenerator-qt4">
746 <primary sortas="b-qcollectiongenerator-qt4">qcollectiongenerator</primary>
747 </indexterm>
748 </listitem>
749 </varlistentry>
750
751 <varlistentry id="qdbuscpp2xml-qt4">
752 <term><command>qdbuscpp2xml</command></term>
753 <listitem>
754 <para>
755 takes a C++ source file and generates a D-Bus XML definition
756 of the interface.
757 </para>
758 <indexterm zone="qt4 qdbuscpp2xml-qt4">
759 <primary sortas="b-qdbuscpp2xml-qt4">qdbuscpp2xml</primary>
760 </indexterm>
761 </listitem>
762 </varlistentry>
763
764 <varlistentry id="qdbus-qt4">
765 <term><command>qdbus</command></term>
766 <listitem>
767 <para>
768 lists available services, object paths, methods, signals, and
769 properties of objects on a bus.
770 </para>
771 <indexterm zone="qt4 qdbus-qt4">
772 <primary sortas="b-qdbus-qt4">qdbus</primary>
773 </indexterm>
774 </listitem>
775 </varlistentry>
776
777 <varlistentry id="qdbusviewer-qt4">
778 <term><command>qdbusviewer</command></term>
779 <listitem>
780 <para>
781 is a graphical D-Bus browser.
782 </para>
783 <indexterm zone="qt4 qdbusviewer-qt4">
784 <primary sortas="b-qdbusviewer-qt4">qdbusviewer</primary>
785 </indexterm>
786 </listitem>
787 </varlistentry>
788
789 <varlistentry id="qdbusxml2cpp-qt4">
790 <term><command>qdbusxml2cpp</command></term>
791 <listitem>
792 <para>
793 is a tool that can be used to parse interface descriptions
794 and produce static code representing those interfaces,
795 </para>
796 <indexterm zone="qt4 qdbusxml2cpp-qt4">
797 <primary sortas="b-qdbusxml2cpp-qt4">qdbusxml2cpp</primary>
798 </indexterm>
799 </listitem>
800 </varlistentry>
801
802 <varlistentry id="qdoc3-qt4">
803 <term><command>qdoc3</command></term>
804 <listitem>
805 <para>
806 is a tool used by <application>Qt</application> Developers to
807 generate documentation for software projects.
808 </para>
809 <indexterm zone="qt4 qdoc3-qt4">
810 <primary sortas="b-qdoc3-qt4">qdoc3</primary>
811 </indexterm>
812 </listitem>
813 </varlistentry>
814
815 <varlistentry id="qhelpconverter-qt4">
816 <term><command>qhelpconverter</command></term>
817 <listitem>
818 <para>
819 is a tool used to convert files to <application>Qt</application>
820 help format.
821 </para>
822 <indexterm zone="qt4 qhelpconverter-qt4">
823 <primary sortas="b-qhelpconverter-qt4">qhelpconverter</primary>
824 </indexterm>
825 </listitem>
826 </varlistentry>
827
828 <varlistentry id="qhelpgenerator-qt4">
829 <term><command>qhelpgenerator</command></term>
830 <listitem>
831 <para>
832 is a tool used to generate a <application>Qt</application>
833 compressed help file.
834 </para>
835 <indexterm zone="qt4 qhelpgenerator-qt4">
836 <primary sortas="b-qhelpgenerator-qt4">qhelpgenerator</primary>
837 </indexterm>
838 </listitem>
839 </varlistentry>
840
[8d4b121]841 <varlistentry id="qmake-qt4">
[ec7940be]842 <term><command>qmake</command></term>
[7af92fe5]843 <listitem>
844 <para>
845 uses information stored in project files to
846 determine what should go in the makefiles it
847 generates.
848 </para>
[8d4b121]849 <indexterm zone="qt4 qmake-qt4">
[ec7940be]850 <primary sortas="b-qmake-qt4">qmake</primary>
[7af92fe5]851 </indexterm>
852 </listitem>
853 </varlistentry>
854
[8b9ad6e]855 <varlistentry id="qmlplugindump-qt4">
856 <term><command>qmlplugindump</command></term>
857 <listitem>
858 <para>
859 is a tool to create a qmltypes file.
860 </para>
861 <indexterm zone="qt4 qmlplugindump-qt4">
862 <primary sortas="b-qmlplugindump-qt4">qmlplugindump</primary>
863 </indexterm>
864 </listitem>
865 </varlistentry>
866
867 <varlistentry id="qmlviewer-qt4">
868 <term><command>qmlviewer</command></term>
869 <listitem>
870 <para>
871 is a tool for loading QML documents that makes it easy to quickly
872 develop and debug QML applications.
873 </para>
874 <indexterm zone="qt4 qmlviewer-qt4">
875 <primary sortas="b-qmlviewer-qt4">qmlviewer</primary>
876 </indexterm>
877 </listitem>
878 </varlistentry>
879
[8d4b121]880 <varlistentry id="qt3to4-qt4">
[ec7940be]881 <term><command>qt3to4</command></term>
[7af92fe5]882 <listitem>
883 <para>
884 qt3to4 is a tool to help update Qt3 code to Qt4.
885 </para>
[8d4b121]886 <indexterm zone="qt4 qt3to4-qt4">
[ec7940be]887 <primary sortas="b-qt3to4-qt4">qt3to4</primary>
[7af92fe5]888 </indexterm>
889 </listitem>
890 </varlistentry>
891
[8d4b121]892 <varlistentry id="qtconfig-qt4">
[ec7940be]893 <term><command>qtconfig</command></term>
[7af92fe5]894 <listitem>
895 <para>
896 is used to customize the appearance of Qt applications.
897 </para>
[8d4b121]898 <indexterm zone="qt4 qtconfig-qt4">
[ec7940be]899 <primary sortas="b-qtconfig-qt4">qtconfig</primary>
[7af92fe5]900 </indexterm>
901 </listitem>
902 </varlistentry>
903
[8b9ad6e]904 <varlistentry id="qttracereplay">
905 <term><command>qttracereplay</command></term>
906 <listitem>
907 <para>
[f3429309]908 is a tool to replay all drawing operations recording with
[8b9ad6e]909 <command>-graphicssystem trace</command> into a trace buffer.
910 </para>
911 <indexterm zone="qt4 qttracereplay">
912 <primary sortas="b-qttracereplay">qttracereplay</primary>
913 </indexterm>
914 </listitem>
915 </varlistentry>
916
[8d4b121]917 <varlistentry id="rcc-qt4">
[ec7940be]918 <term><command>rcc</command></term>
[7af92fe5]919 <listitem>
920 <para>
921 is a resource compiler used in conjunction with designer.
922 </para>
[8d4b121]923 <indexterm zone="qt4 rcc-qt4">
[ec7940be]924 <primary sortas="b-rcc-qt4">rcc</primary>
[7af92fe5]925 </indexterm>
926 </listitem>
927 </varlistentry>
928
[8d4b121]929 <varlistentry id="uic-qt4">
[ec7940be]930 <term><command>uic</command></term>
[7af92fe5]931 <listitem>
932 <para>
933 is a Qt user interface compiler.
934 </para>
[8d4b121]935 <indexterm zone="qt4 uic-qt4">
[ec7940be]936 <primary sortas="b-uic-qt4">uic</primary>
[7af92fe5]937 </indexterm>
938 </listitem>
939 </varlistentry>
940
[8d4b121]941 <varlistentry id="uic3-qt4">
[ec7940be]942 <term><command>uic3</command></term>
[7af92fe5]943 <listitem>
944 <para>
945 is a tool to generate Qt4 code out of
946 user interface files generated by the Qt3
947 version of designer.
948 </para>
[8d4b121]949 <indexterm zone="qt4 uic3-qt4">
[ec7940be]950 <primary sortas="b-uic3-qt4">uic3</primary>
[7af92fe5]951 </indexterm>
952 </listitem>
953 </varlistentry>
954
[8b9ad6e]955 <varlistentry id="xmlpatterns-qt4">
956 <term><command>xmlpatterns</command></term>
957 <listitem>
958 <para>
959 provides support for XPath, XQuery, XSLT, and XML Schema
960 validation.
961 </para>
962 <indexterm zone="qt4 xmlpatterns-qt4">
963 <primary sortas="b-xmlpatterns-qt4">xmlpatterns</primary>
964 </indexterm>
965 </listitem>
966 </varlistentry>
967
968 <varlistentry id="xmlpatternsvalidator-qt4">
969 <term><command>xmlpatternsvalidator</command></term>
970 <listitem>
971 <para>
972 is a tool used to validate XML documents.
973 </para>
974 <indexterm zone="qt4 xmlpatternsvalidator-qt4">
975 <primary sortas="b-xmlpatternsvalidator-qt4">xmlpatternsvalidator</primary>
976 </indexterm>
977 </listitem>
978 </varlistentry>
979
[7af92fe5]980 </variablelist>
981
982 </sect2>
983
984</sect1>
Note: See TracBrowser for help on using the repository browser.