source: x/lib/qt.xml@ 2946338a

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 2946338a 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
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"/>,
[2946338a]83 <xref linkend="libmng"/> and
[b495000]84 <xref linkend="libtiff"/>,
[2946338a]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) -->
[a8e9d06]88 </para>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
[6122386]91 <para role="optional">
[e2e42c7]92 <!--<xref linkend="nas"/>,-->
[1b665fb]93 <xref linkend="gst-plugins-base"/>,
[e2e42c7]94 <xref linkend='pulseaudio'/>,
[f7e3016]95 <xref linkend='glib2'/>,
[ea0d62a]96 <xref linkend="gtk2"/>,
[a8e9d06]97 <xref linkend="openssl"/>,
98 <xref linkend="cups"/>,
99 <xref linkend="mysql"/>,
100 <xref linkend="postgresql"/>,
[14c0f145]101 <xref linkend="unixodbc"/> and
[8f9c757e]102 <xref linkend="sqlite"/>
[a8e9d06]103 </para>
104
105 <para condition="html" role="usernotes">User Notes:
[d99d728]106 <ulink url="&blfs-wiki;/qt"/></para>
[a8e9d06]107
108 </sect2>
109
110 <sect2 role="installation">
[ad41452]111 <title>Installation of Qt</title>
[a8e9d06]112
113 <para>There are several ways to install a complicated package such as
[ad41452]114 <application>Qt</application>. The files are not completely position
[a8e9d06]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
[ad41452]118 <application>Qt</application>, <command>pkg-config</command> will look
[61d5269]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>
[a8e9d06]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
[1066772]129 <para>The advantage of installing in
130 <filename class='directory'>/usr</filename> is that no updates to the
[a8e9d06]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>
[ad41452]136
[1b665fb]137 <caution>
[ad41452]138 <para>If <application>Qt</application> is being reinstalled and the
[61d5269]139 <filename class='directory'>/usr</filename>
[a8e9d06]140 directory is used as the prefix, run the following commands from a
[ad41452]141 console or non-Qt based window manager. It overwrites
142 <application>Qt</application> libraries that should not be in use during
[a8e9d06]143 the install process.</para>
[1b665fb]144 </caution>
[a8e9d06]145
146 <note>
147 <para>The build time and space required for the full
[ad41452]148 <application>Qt</application> is quite long. The instructions below do
[410e228b]149 not build the tutorials and examples. Removing the
[61d5269]150 <parameter>-nomake</parameter> lines will create a complete build.</para>
[a8e9d06]151 </note>
152
[ad41452]153 <para>The method recommended by the <application>Qt</application>
[a8e9d06]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
[ad41452]160 <para>The <application>Qt</application> developers use a default location
[61d5269]161 of <filename class='directory'>/usr/local/qt/</filename>, however the
162 procedure below puts the files in <filename
[d99d728]163 class='directory'>/opt/qt-&qt-version;/</filename>
[a8e9d06]164 and then creates a symbolic link to <filename>/opt/qt/</filename>.</para>
[14c0f145]165
[ad41452]166 <para>Configure <application>Qt</application> by running the
[61d5269]167 following commands:</para>
[a8e9d06]168
[df1fe4e]169<screen><userinput>./configure -prefix /opt/qt-&qt-version; \
[14c0f145]170 -release \
171 -nomake examples \
172 -nomake demos \
173 -system-sqlite \
174 -no-nis \
175 -opensource \
[1464543]176 -confirm-license &amp;&amp;
177make</userinput></screen>
[14c0f145]178
[47969a6]179 <note><title>Phonon</title>
[1066772]180 <para>If <application>KDE</application> is intended to be installed, add
[47969a6]181 <option>-no-phonon</option> to the <command>./configure</command> command
[1066772]182 above. While installing <application>KDE</application>, a separate version of the
[47969a6]183 <application>Phonon</application> libraries will be installed which better
[1066772]184 matches the needs of the <application>KDE</application> desktop.</para></note>
[1464543]185
[a8e9d06]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
[ad41452]193 <para>If you installed <application>Qt</application> in the /opt directory,
[61d5269]194 again as the <systemitem class="username">root</systemitem> user issue:</para>
[a8e9d06]195
[d99d728]196<screen role="root"><userinput>ln -svfn qt-&qt-version; /opt/qt</userinput></screen>
[a8e9d06]197
198 </sect2>
199
200 <sect2 role="commands">
201 <title>Command Explanations</title>
[1464543]202
203 <para><parameter>-release</parameter>:
204 This switch disables building with debugging symbols.</para>
205
[410e228b]206 <para><parameter>-nomake examples, -nomake demos</parameter>:
[a8e9d06]207 These switches disable building programs that are only of interest
[ad41452]208 to a <application>Qt</application> developer.</para>
[1464543]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>
[a8e9d06]221
[410e228b]222 <para><parameter>-plugin-sql-<replaceable>&lt;driver&gt;</replaceable></parameter>
[a8e9d06]223 or <parameter>-qt-sql-<replaceable>&lt;driver&gt;</replaceable></parameter>:
[ad41452]224 These switches build SQL support into the <application>Qt</application>
[a8e9d06]225 libraries.</para>
226
227 <note>
[b1a1d93e]228 <para>To check if <application>mysql</application> is autodetected
[a8e9d06]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>
[1464543]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>
[a8e9d06]239
240 </sect2>
241
242 <sect2 role="configuration">
[ad41452]243 <title>Configuring Qt</title>
[a8e9d06]244
[d99d728]245 <sect3 id='qt-config'>
[a8e9d06]246 <title>Configuration Information</title>
247
[3ddb430]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
[ad41452]262 <para>If you installed <application>Qt</application> in a location other
[3ddb430]263 than /usr, you need to update the following configuration files so
[ad41452]264 that <application>Qt</application> is correctly found by other packages
[a8e9d06]265 and system processes.</para>
266
[1b665fb]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>
[a8e9d06]270
[df1fe4e]271<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
[ad41452]272<literal># Begin Qt addition
[a8e9d06]273
274/opt/qt/lib
275
[ad41452]276# End Qt addition</literal>
[a8e9d06]277EOF
[1b665fb]278ldconfig</userinput></screen>
[a8e9d06]279
[d99d728]280 <indexterm zone="qt qt-config">
[a8e9d06]281 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
282 </indexterm>
283
[8d86c672]284 <para>As the <systemitem class="username">root</systemitem> user, create
[ad41452]285 the <filename>/etc/profile.d/qt.sh</filename> file:</para>
[a8e9d06]286
[df1fe4e]287<screen role="root"><userinput>cat &gt; /etc/profile.d/qt.sh &lt;&lt; EOF
[ecc84ee9]288<literal># Begin /etc/profile.d/qt.sh
[a8e9d06]289
[8d86c672]290QTDIR=/opt/qt
[a8e9d06]291
[8d86c672]292pathappend /opt/qt/bin PATH
293pathappend /opt/qt/lib/pkgconfig PKG_CONFIG_PATH
294
[ad41452]295export QTDIR
[8d86c672]296
[ecc84ee9]297# End /etc/profile.d/qt.sh</literal>
[8d86c672]298EOF</userinput></screen>
299
[a8e9d06]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>
[df1fe4e]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>
[fd7e0ed6]325
[d99d728]326 <seg>/opt/qt-&qt-version;</seg>
[a8e9d06]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
[d99d728]335 <varlistentry id="qt-assistant">
[a8e9d06]336 <term><command>assistant</command></term>
337 <listitem>
338 <para>is a tool for presenting on-line documentation.</para>
[d99d728]339 <indexterm zone="qt qt-assistant">
[a8e9d06]340 <primary sortas="b-assistant">assistant</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
[d99d728]345 <varlistentry id="qt-designer">
[a8e9d06]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>
[d99d728]352 <indexterm zone="qt qt-designer">
[a8e9d06]353 <primary sortas="b-designer">designer</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
[d99d728]358 <varlistentry id="qt-linguist">
[a8e9d06]359 <term><command>linguist</command></term>
360 <listitem>
361 <para>provides support for translating applications into
[61d5269]362 local languages.</para>
[d99d728]363 <indexterm zone="qt qt-linguist">
[a8e9d06]364 <primary sortas="b-linguist">linguist</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
[d99d728]369 <varlistentry id="qt-lrelease">
[a8e9d06]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>
[d99d728]374 <indexterm zone="qt qt-lrelease">
[a8e9d06]375 <primary sortas="b-lrelease">lrelease</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
379
[d99d728]380 <varlistentry id="qt-lupdate">
[a8e9d06]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>
[d99d728]387 <indexterm zone="qt qt-lupdate">
[a8e9d06]388 <primary sortas="b-lupdate">lupdate</primary>
389 </indexterm>
390 </listitem>
391 </varlistentry>
392
[d99d728]393 <varlistentry id="qt-moc">
[a8e9d06]394 <term><command>moc</command></term>
395 <listitem>
396 <para>generates Qt meta object support code.</para>
[d99d728]397 <indexterm zone="qt qt-moc">
[a8e9d06]398 <primary sortas="b-moc">moc</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
[d99d728]403 <varlistentry id="qt-pixeltool">
[a8e9d06]404 <term><command>pixeltool</command></term>
405 <listitem>
[410e228b]406 <para>is a desktop magnifier and as you move your mouse around
[a8e9d06]407 the screen it will show the magnified contents in its window.</para>
[d99d728]408 <indexterm zone="qt qt-pixeltool">
[a8e9d06]409 <primary sortas="b-pixeltool">pixeltool</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
[d99d728]414 <varlistentry id="qt-qmake">
[a8e9d06]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>
[d99d728]419 <indexterm zone="qt qt-qmake">
[a8e9d06]420 <primary sortas="b-qmake">qmake</primary>
421 </indexterm>
422 </listitem>
423 </varlistentry>
424
[d99d728]425 <varlistentry id="qt-qt3to4">
[a8e9d06]426 <term><command>qt3to4</command></term>
427 <listitem>
[61d5269]428 <para>qt3to4 is a tool to help update Qt3 code to Qt4.</para>
[d99d728]429 <indexterm zone="qt qt-qt3to4">
[a8e9d06]430 <primary sortas="b-qt3to4">qt3to4</primary>
431 </indexterm>
432 </listitem>
433 </varlistentry>
434
[d99d728]435 <varlistentry id="qt-qtconfig">
[a8e9d06]436 <term><command>qtconfig</command></term>
437 <listitem>
438 <para>is used to customize the appearance of Qt applications.</para>
[d99d728]439 <indexterm zone="qt qt-qtconfig">
[a8e9d06]440 <primary sortas="b-qtconfig">qtconfig</primary>
441 </indexterm>
442 </listitem>
443 </varlistentry>
444
[d99d728]445 <varlistentry id="qt-rcc">
[a8e9d06]446 <term><command>rcc</command></term>
447 <listitem>
[1066772]448 <para>is a resource compiler used in conjunction with designer.</para>
[d99d728]449 <indexterm zone="qt qt-rcc">
[a8e9d06]450 <primary sortas="b-rcc">rcc</primary>
451 </indexterm>
452 </listitem>
453 </varlistentry>
454
[d99d728]455 <varlistentry id="qt-uic">
[a8e9d06]456 <term><command>uic</command></term>
457 <listitem>
458 <para>is a Qt user interface compiler.</para>
[d99d728]459 <indexterm zone="qt qt-uic">
[a8e9d06]460 <primary sortas="b-uic">uic</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
[d99d728]465 <varlistentry id="qt-uic3">
[a8e9d06]466 <term><command>uic3</command></term>
467 <listitem>
[410e228b]468 <para>is a tool to generate Qt4 code out of
469 user interface files generated by the Qt3
[ecc84ee9]470 version of designer.</para>
[d99d728]471 <indexterm zone="qt qt-uic3">
[a8e9d06]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.