source: x/lib/qt4.xml@ 1464543

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

Correct Qt configuration.

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

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