source: x/lib/qt.xml@ 1af010b2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 1af010b2 was 2946338a, checked in by Randy McMurchy <randy@…>, 11 years ago

Added gtk-update-icon-cache and update-desktop-database commands to various packages

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

  • Property mode set to 100644
File size: 17.5 KB
Line 
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
7 <!ENTITY qt-download-http "http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-&qt-version;.tar.gz">
8 <!ENTITY qt-download-ftp " ">
9 <!ENTITY qt-md5sum "89c5ecba180cae74c66260ac732dc5cb">
10 <!ENTITY qt-size "237 MB">
11 <!ENTITY qt-buildsize "1.8 GB (full), 619 (essential)">
12 <!ENTITY qt-time "69 SBU (full), 54 SBU (essential)">
13]>
14
15<sect1 id="qt" xreflabel="Qt-&qt-version;">
16 <?dbhtml filename="qt.html" ?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Qt-&qt-version;</title>
24
25 <indexterm zone="qt">
26 <primary sortas="a-qt">Qt</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Qt</title>
31
32 <para><application>Qt</application> is a cross-platform application
33 framework that is widely used for developing application software
34 with a graphical user interface (GUI) (in which cases Qt is classified
35 as a widget toolkit), and also used for developing non-GUI programs such
36 as command-line tools and consoles for servers. One of the major users
37 of <application>Qt</application> is <application>KDE</application>.</para>
38
39 &lfs72_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>Download (HTTP): <ulink url="&qt-download-http;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download (FTP): <ulink url="&qt-download-ftp;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download MD5 sum: &qt-md5sum;</para>
51 </listitem>
52 <listitem>
53 <para>Download size: &qt-size;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated disk space required: &qt-buildsize;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated build time: &qt-time;</para>
60 </listitem>
61 </itemizedlist>
62
63<!--
64 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
65 <itemizedlist spacing="compact">
66 <listitem>
67 <para>GLib 2.32 patch: <ulink
68 url="&patch-root;/qt-everywhere-opensource-src-&qt-version;-glib_fix-1.patch"/>
69 </para>
70 </listitem>
71 </itemizedlist>
72-->
73
74 <bridgehead renderas="sect3">Qt Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required"><xref linkend="x-window-system"/></para>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="dbus"/>,
82 <xref linkend="libjpeg"/>,
83 <xref linkend="libmng"/> and
84 <xref linkend="libtiff"/>,
85 <!-- previously required dependency <xref linkend="libpng"/> and -->
86 <!-- installed in LFS
87 <xref linkend="pkgconfig"/> (needed to use D-Bus, GLib, GTK and PulseAudio) -->
88 </para>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <!--<xref linkend="nas"/>,-->
93 <xref linkend="gst-plugins-base"/>,
94 <xref linkend='pulseaudio'/>,
95 <xref linkend='glib2'/>,
96 <xref linkend="gtk2"/>,
97 <xref linkend="openssl"/>,
98 <xref linkend="cups"/>,
99 <xref linkend="mysql"/>,
100 <xref linkend="postgresql"/>,
101 <xref linkend="unixodbc"/> and
102 <xref linkend="sqlite"/>
103 </para>
104
105 <para condition="html" role="usernotes">User Notes:
106 <ulink url="&blfs-wiki;/qt"/></para>
107
108 </sect2>
109
110 <sect2 role="installation">
111 <title>Installation of Qt</title>
112
113 <para>There are several ways to install a complicated package such as
114 <application>Qt</application>. The files are not completely position
115 independent. Installation procedures execute the program
116 <command>pkg-config</command> to determine the location of package
117 executables, libraries, headers, and other files. For
118 <application>Qt</application>, <command>pkg-config</command> will look
119 for the appropriate <filename>lib/pkgconfig/Qt*.pc</filename> files which
120 must be modified if relocating the package. These files are set up correctly
121 by the build process.</para>
122
123 <para>The default installation places the files in
124 <filename class='directory'>/usr/local/qt/</filename>. Many commercial
125 distributions place the files in the system's
126 <filename class='directory'>/usr</filename> hierarchy. The package can
127 also be installed in an arbitrary directory.</para>
128
129 <para>The advantage of installing in
130 <filename class='directory'>/usr</filename> is that no updates to the
131 <filename>/etc/ld.so.conf</filename> or
132 <filename>/etc/man_db.conf</filename> files are required. The package
133 files are distributed within several subdirectories of the
134 <filename class='directory'>/usr</filename> hierarchy.
135 This is the method that most commercial distributions use.</para>
136
137 <caution>
138 <para>If <application>Qt</application> is being reinstalled and the
139 <filename class='directory'>/usr</filename>
140 directory is used as the prefix, run the following commands from a
141 console or non-Qt based window manager. It overwrites
142 <application>Qt</application> libraries that should not be in use during
143 the install process.</para>
144 </caution>
145
146 <note>
147 <para>The build time and space required for the full
148 <application>Qt</application> is quite long. The instructions below do
149 not build the tutorials and examples. Removing the
150 <parameter>-nomake</parameter> lines will create a complete build.</para>
151 </note>
152
153 <para>The method recommended by the <application>Qt</application>
154 developers does not use the /usr directory prefix. It has the advantage of
155 keeping all the package files consolidated in a dedicated directory
156 hierarchy. By using this method, an update can be made without overwriting
157 a previous installation and users can easily revert to a previous version
158 by changing one symbolic link.</para>
159
160 <para>The <application>Qt</application> developers use a default location
161 of <filename class='directory'>/usr/local/qt/</filename>, however the
162 procedure below puts the files in <filename
163 class='directory'>/opt/qt-&qt-version;/</filename>
164 and then creates a symbolic link to <filename>/opt/qt/</filename>.</para>
165
166 <para>Configure <application>Qt</application> by running the
167 following commands:</para>
168
169<screen><userinput>./configure -prefix /opt/qt-&qt-version; \
170 -release \
171 -nomake examples \
172 -nomake demos \
173 -system-sqlite \
174 -no-nis \
175 -opensource \
176 -confirm-license &amp;&amp;
177make</userinput></screen>
178
179 <note><title>Phonon</title>
180 <para>If <application>KDE</application> is intended to be installed, add
181 <option>-no-phonon</option> to the <command>./configure</command> command
182 above. While installing <application>KDE</application>, a separate version of the
183 <application>Phonon</application> libraries will be installed which better
184 matches the needs of the <application>KDE</application> desktop.</para></note>
185
186 <para>This package does not come with a test suite.</para>
187
188 <para>Now, as the <systemitem class="username">root</systemitem>
189 user:</para>
190
191<screen role="root"><userinput>make install</userinput></screen>
192
193 <para>If you installed <application>Qt</application> in the /opt directory,
194 again as the <systemitem class="username">root</systemitem> user issue:</para>
195
196<screen role="root"><userinput>ln -svfn qt-&qt-version; /opt/qt</userinput></screen>
197
198 </sect2>
199
200 <sect2 role="commands">
201 <title>Command Explanations</title>
202
203 <para><parameter>-release</parameter>:
204 This switch disables building with debugging symbols.</para>
205
206 <para><parameter>-nomake examples, -nomake demos</parameter>:
207 These switches disable building programs that are only of interest
208 to a <application>Qt</application> developer.</para>
209
210 <para><parameter>-system-sqlite</parameter>:
211 Use the system version of <application>SQLite</application>.</para>
212
213 <para><parameter>-no-nis</parameter>:
214 Disable support for Network Information Service (NIS).</para>
215
216 <para><parameter>-opensource</parameter>:
217 Install the opensource version of <application>Qt</application>.</para>
218
219 <para><parameter>-confirm-license</parameter>:
220 Accept license without prompting user during configuration.</para>
221
222 <para><parameter>-plugin-sql-<replaceable>&lt;driver&gt;</replaceable></parameter>
223 or <parameter>-qt-sql-<replaceable>&lt;driver&gt;</replaceable></parameter>:
224 These switches build SQL support into the <application>Qt</application>
225 libraries.</para>
226
227 <note>
228 <para>To check if <application>mysql</application> is autodetected
229 properly, examine the output of <command>./configure -qt-sql-mysql
230 -help</command>. Other database support will require similar
231 <command>configure</command> parameters.</para>
232 </note>
233
234 <para>There are several optional directories that can be specified in the
235 <command>./configure</command> line. These include
236 <option>-bindir</option>, <option>-libdir</option>,
237 <option>-docdir</option>, and <option>-headerdir</option>. For a complete
238 list, run <command>./configure -help</command>.</para>
239
240 </sect2>
241
242 <sect2 role="configuration">
243 <title>Configuring Qt</title>
244
245 <sect3 id='qt-config'>
246 <title>Configuration Information</title>
247
248 <para>If you installed <application>Qt</application> in /usr, create an
249 environment variable needed by certain packages. As the
250 <systemitem class="username">root</systemitem> user:</para>
251
252<screen role="root"><userinput>cat &gt; /etc/profile.d/qt.sh &lt;&lt; EOF
253<literal># Begin /etc/profile.d/qt.sh
254
255QTDIR=/usr
256
257export QTDIR
258
259# End /etc/profile.d/qt.sh</literal>
260EOF</userinput></screen>
261
262 <para>If you installed <application>Qt</application> in a location other
263 than /usr, you need to update the following configuration files so
264 that <application>Qt</application> is correctly found by other packages
265 and system processes.</para>
266
267 <para>As the <systemitem class="username">root</systemitem> user, update
268 the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
269 run-time cache file:</para>
270
271<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
272<literal># Begin Qt addition
273
274/opt/qt/lib
275
276# End Qt addition</literal>
277EOF
278ldconfig</userinput></screen>
279
280 <indexterm zone="qt qt-config">
281 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
282 </indexterm>
283
284 <para>As the <systemitem class="username">root</systemitem> user, create
285 the <filename>/etc/profile.d/qt.sh</filename> file:</para>
286
287<screen role="root"><userinput>cat &gt; /etc/profile.d/qt.sh &lt;&lt; EOF
288<literal># Begin /etc/profile.d/qt.sh
289
290QTDIR=/opt/qt
291
292pathappend /opt/qt/bin PATH
293pathappend /opt/qt/lib/pkgconfig PKG_CONFIG_PATH
294
295export QTDIR
296
297# End /etc/profile.d/qt.sh</literal>
298EOF</userinput></screen>
299
300 </sect3>
301 </sect2>
302
303 <sect2 role="content">
304 <title>Contents</title>
305
306 <segmentedlist>
307 <segtitle>Installed Programs</segtitle>
308 <segtitle>Installed Libraries</segtitle>
309 <segtitle>Installed Directories</segtitle>
310
311 <seglistitem>
312 <seg>assistant, designer, lconvert, linguist, lrelease, lupdate, moc,
313 pixeltool, qcollectiongenerator, qdbus, qdbuscpp2xml, qdbusviewer,
314 qdbusxml2cpp, qdoc3, qhelpconverter, qhelpgenerator, qmake,
315 qmlplugindump, qmlviewer, qt3to4, qtconfig, qttracereplay, rcc, uic,
316 uic3, xmlpatterns and xmlpatternsvalidator</seg>
317
318 <seg>libphonon.so, libQt3Support.so, libQtCLucene.so, libQtCore.so,
319 libQtDBus.so, libQtDeclarative.so, libQtDesigner.so,
320 libQtDesignerComponents.so, libQtGui.so, libQtHelp.so, libQtMultimedia,
321 libQtNetwork.so, libQtOpenGL.so, libQtScript.so, libQtScriptTools.so,
322 libQtSql.so, libQtSvg.so, libQtTest.so, libQtUiTools.a, libQtWebKit.so,
323 libQtXml.so, libQtXmlPatterns.so and numerous plugin modules installed
324 in <filename class='directory'>/opt/qt/plugins</filename></seg>
325
326 <seg>/opt/qt-&qt-version;</seg>
327 </seglistitem>
328 </segmentedlist>
329
330 <variablelist>
331 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
332 <?dbfo list-presentation="list"?>
333 <?dbhtml list-presentation="table"?>
334
335 <varlistentry id="qt-assistant">
336 <term><command>assistant</command></term>
337 <listitem>
338 <para>is a tool for presenting on-line documentation.</para>
339 <indexterm zone="qt qt-assistant">
340 <primary sortas="b-assistant">assistant</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
345 <varlistentry id="qt-designer">
346 <term><command>designer</command></term>
347 <listitem>
348 <para>is a full-fledged GUI builder. It includes
349 powerful features such as preview mode, automatic widget
350 layout, support for custom widgets, and an advanced
351 property editor.</para>
352 <indexterm zone="qt qt-designer">
353 <primary sortas="b-designer">designer</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
358 <varlistentry id="qt-linguist">
359 <term><command>linguist</command></term>
360 <listitem>
361 <para>provides support for translating applications into
362 local languages.</para>
363 <indexterm zone="qt qt-linguist">
364 <primary sortas="b-linguist">linguist</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
369 <varlistentry id="qt-lrelease">
370 <term><command>lrelease</command></term>
371 <listitem>
372 <para>is a simple command line tool. It reads a Qt project
373 file and produces message files used by the application.</para>
374 <indexterm zone="qt qt-lrelease">
375 <primary sortas="b-lrelease">lrelease</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
379
380 <varlistentry id="qt-lupdate">
381 <term><command>lupdate</command></term>
382 <listitem>
383 <para>reads a Qt project file, finds the translatable
384 strings in the specified source, header and Qt Designer
385 interface files, and produces or updates the translation
386 files listed in the project file.</para>
387 <indexterm zone="qt qt-lupdate">
388 <primary sortas="b-lupdate">lupdate</primary>
389 </indexterm>
390 </listitem>
391 </varlistentry>
392
393 <varlistentry id="qt-moc">
394 <term><command>moc</command></term>
395 <listitem>
396 <para>generates Qt meta object support code.</para>
397 <indexterm zone="qt qt-moc">
398 <primary sortas="b-moc">moc</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
403 <varlistentry id="qt-pixeltool">
404 <term><command>pixeltool</command></term>
405 <listitem>
406 <para>is a desktop magnifier and as you move your mouse around
407 the screen it will show the magnified contents in its window.</para>
408 <indexterm zone="qt qt-pixeltool">
409 <primary sortas="b-pixeltool">pixeltool</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="qt-qmake">
415 <term><command>qmake</command></term>
416 <listitem>
417 <para>qmake uses information stored in project files to
418 determine what should go in the makefiles it generates.</para>
419 <indexterm zone="qt qt-qmake">
420 <primary sortas="b-qmake">qmake</primary>
421 </indexterm>
422 </listitem>
423 </varlistentry>
424
425 <varlistentry id="qt-qt3to4">
426 <term><command>qt3to4</command></term>
427 <listitem>
428 <para>qt3to4 is a tool to help update Qt3 code to Qt4.</para>
429 <indexterm zone="qt qt-qt3to4">
430 <primary sortas="b-qt3to4">qt3to4</primary>
431 </indexterm>
432 </listitem>
433 </varlistentry>
434
435 <varlistentry id="qt-qtconfig">
436 <term><command>qtconfig</command></term>
437 <listitem>
438 <para>is used to customize the appearance of Qt applications.</para>
439 <indexterm zone="qt qt-qtconfig">
440 <primary sortas="b-qtconfig">qtconfig</primary>
441 </indexterm>
442 </listitem>
443 </varlistentry>
444
445 <varlistentry id="qt-rcc">
446 <term><command>rcc</command></term>
447 <listitem>
448 <para>is a resource compiler used in conjunction with designer.</para>
449 <indexterm zone="qt qt-rcc">
450 <primary sortas="b-rcc">rcc</primary>
451 </indexterm>
452 </listitem>
453 </varlistentry>
454
455 <varlistentry id="qt-uic">
456 <term><command>uic</command></term>
457 <listitem>
458 <para>is a Qt user interface compiler.</para>
459 <indexterm zone="qt qt-uic">
460 <primary sortas="b-uic">uic</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
465 <varlistentry id="qt-uic3">
466 <term><command>uic3</command></term>
467 <listitem>
468 <para>is a tool to generate Qt4 code out of
469 user interface files generated by the Qt3
470 version of designer.</para>
471 <indexterm zone="qt qt-uic3">
472 <primary sortas="b-uic3">uic3</primary>
473 </indexterm>
474 </listitem>
475 </varlistentry>
476
477 </variablelist>
478
479 </sect2>
480
481</sect1>
Note: See TracBrowser for help on using the repository browser.