source: x/lib/qt.xml@ ffb5c7b

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 ffb5c7b was df1fe4e, checked in by Ragnar Thomsen <rthomsen@…>, 12 years ago

Qt 4.8.3.

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

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