source: x/lib/qt4.xml@ 00785d8

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 00785d8 was 00785d8, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Update to qt-4.8.0.
Editorial changes to KDE4 introductory text.

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

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