source: x/lib/qt.xml@ 32e18b07

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

Qt 4.8.4

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

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