source: x/lib/qt5.xml@ 104b5bf

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 104b5bf was 104b5bf, checked in by Krejzi <krejzi@…>, 11 years ago

qt 5.1.0

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11609 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 qt5-major "5.1">
8 <!ENTITY qt5-url "http://download.qt-project.org/official_releases/qt/&qt5-major;/&qt5-version;/single">
9
10 <!ENTITY qt5-download-http "&qt5-url;/qt-everywhere-opensource-src-&qt5-version;.tar.xz">
11 <!ENTITY qt5-download-ftp " ">
12 <!ENTITY qt5-md5sum "44a507beebef73eb364b5a2ec7bbe090">
13 <!ENTITY qt5-size "169 MB">
14 <!ENTITY qt5-buildsize "2.5 GB">
15 <!ENTITY qt5-time "50 SBU">
16]>
17
18<sect1 id="qt5" xreflabel="Qt-&qt5-version;">
19 <?dbhtml filename="qt5.html" ?>
20
21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
25
26 <title>Qt-&qt5-version;</title>
27
28 <indexterm zone="qt5">
29 <primary sortas="a-Qt">Qt</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to Qt</title>
34
35 <para>
36 <application>Qt</application> is a cross-platform application
37 framework that is widely used for developing application software
38 with a graphical user interface (GUI) (in which cases Qt is classified
39 as a widget toolkit), and also used for developing non-GUI programs such
40 as command-line tools and consoles for servers. One of the major users
41 of <application>Qt</application> is <application>KDE</application>.
42 </para>
43
44 &lfs73_checked;
45
46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
49 <para>
50 Download (HTTP): <ulink url="&qt5-download-http;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download (FTP): <ulink url="&qt5-download-ftp;"/>
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download MD5 sum: &qt5-md5sum;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Download size: &qt5-size;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated disk space required: &qt5-buildsize;
71 </para>
72 </listitem>
73 <listitem>
74 <para>
75 Estimated build time: &qt5-time;
76 </para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
81 <itemizedlist spacing="compact">
82 <listitem>
83 <para>
84 Required patch:
85 <ulink url="&patch-root;/qt-&qt5-version;-bison_fixes-1.patch"/>
86 </para>
87 </listitem>
88 </itemizedlist>
89
90 <bridgehead renderas="sect3">Qt Dependencies</bridgehead>
91
92 <bridgehead renderas="sect4">Required</bridgehead>
93 <para role="required">
94 <xref linkend="alsa-lib"/>,
95 <xref linkend="mesalib"/>,
96 <xref linkend="xcb-util-image"/>,
97 <xref linkend="xcb-util-keysyms"/>,
98 <xref linkend="xcb-util-renderutil"/> and
99 <xref linkend="xcb-util-wm"/>
100 </para>
101
102 <bridgehead renderas="sect4">Recommended</bridgehead>
103 <para role="recommended">
104 <xref linkend="cacerts"/>,
105 <xref linkend="cups"/>,
106 <xref linkend="dbus"/>,
107 <xref linkend="glib2"/>,
108 <xref linkend="gst-plugins-base"/>,
109 <xref linkend="icu"/>,
110 <xref linkend="libjpeg"/>,
111 <xref linkend="libpng"/>,
112 <xref linkend="libtiff"/>,
113 <xref linkend="openssl"/>,
114 <xref linkend="pcre"/> and
115 <xref linkend="sqlite"/>
116 </para>
117
118 <bridgehead renderas="sect4">Optional</bridgehead>
119 <para role="optional">
120 <xref linkend="gst10-plugins-base"/> (QtWebKit HTML5 Video Support),
121 <xref linkend="gtk2"/> (GTK+ Theme Support),
122 <ulink url="http://xkbcommon.org/">libxkbcommon</ulink>,
123 <xref linkend="mysql"/>,
124 <xref linkend="postgresql"/>,
125 <xref linkend="pulseaudio"/> and
126 <xref linkend="unixodbc"/>
127 </para>
128
129 <para condition="html" role="usernotes">User Notes:
130 <ulink url="&blfs-wiki;/qt5"/>
131 </para>
132 </sect2>
133
134 <sect2 role="installation">
135 <title>Installation of Qt</title>
136
137 <warning>
138 <para>
139 If you did not install some of the recommended dependencies, examine
140 <command>./configure --help</command> output to check how to disable
141 them or use internal versions bundled in the source tarball.
142 </para>
143 </warning>
144
145 <note>
146 <para>
147 The build time and space required for the full
148 <application>Qt</application> is quite long. The instructions below
149 do not build the tests and examples. Removing the
150 <parameter>-nomake</parameter> lines will create a complete build.
151 </para>
152 </note>
153
154 <para>
155 Install <application>Qt</application> by running the
156 following commands:
157 </para>
158
159<screen><userinput>patch -Np1 -i ../qt-&qt5-version;-bison_fixes-1.patch &amp;&amp;
160./configure -confirm-license \
161 -opensource \
162 -prefix /usr \
163 -bindir /usr/lib/qt5/bin \
164 -headerdir /usr/include/qt5 \
165 -archdatadir /usr/lib/qt5 \
166 -datadir /usr/share/qt5 \
167 -translationdir /usr/share/qt5/translations \
168 -sysconfdir /etc/xdg \
169 -docdir /usr/share/doc/qt5 \
170 -examplesdir /usr/share/doc/qt5/examples \
171 -dbus-linked \
172 -openssl-linked \
173 -system-sqlite \
174 -plugin-sql-sqlite \
175 -no-nis \
176 -nomake examples \
177 -nomake tests \
178 -optimized-qmake &amp;&amp;
179make</userinput></screen>
180
181 <para>
182 Remove references to the build directory from pkg-confg
183 files by running the following command:
184 </para>
185
186<screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
187
188 <para>
189 This package does not come with a test suite.
190 </para>
191
192 <para>
193 Now, as the <systemitem class="username">root</systemitem> user:
194 </para>
195
196<screen role="root"><userinput>make install &amp;&amp;
197install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
198 /usr/share/pixmaps/assistant-qt5.png &amp;&amp;
199install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
200 /usr/share/pixmaps/designer-qt5.png &amp;&amp;
201install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
202 /usr/share/pixmaps/linguist-qt5.png &amp;&amp;
203install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
204 /usr/share/pixmaps/qdbusviewer-qt5.png</userinput></screen>
205
206 <para>
207 Remove references to the build directory from installed files by
208 running the following commands as the
209 <systemitem class="username">root</systemitem> user:
210 </para>
211
212<screen role="root"><userinput>sed -i -e "s:$PWD/qtbase:/usr/lib/qt5:g" \
213 /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap.pri &amp;&amp;
214find /usr/lib/*.prl -exec sed -i -e \
215 '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;</userinput></screen>
216
217 <para>
218 Symlink the <application>Qt</application> executables into
219 <filename class="directory">/usr/bin</filename> by running the
220 following commands as the
221 <systemitem class="username">root</systemitem> user:
222 </para>
223
224<screen role="root"><userinput>for file in /usr/lib/qt5/bin/*
225do
226 ln -sfv ../lib/qt5/bin/$(basename $file) /usr/bin/$(basename $file)-qt5
227done</userinput></screen>
228
229 </sect2>
230
231 <sect2 role="commands">
232 <title>Command Explanations</title>
233
234 <para>
235 <parameter>-confirm-license</parameter>: Accept license
236 without prompting user during configuration.
237 </para>
238
239 <para>
240 <parameter>-opensource</parameter>: Install the opensource
241 version of <application>Qt</application>.
242 </para>
243
244 <para><parameter>-release</parameter>:
245 This switch disables building with debugging symbols.</para>
246
247 <para>
248 <parameter>-nomake tests -nomake examples</parameter>:
249 These switches disable building programs that are only of
250 interest to a <application>Qt</application> developer.
251 </para>
252
253 <para>
254 <parameter>-system-sqlite</parameter>: This switch enables use
255 the system version of <application>SQLite</application>.
256 </para>
257
258 <para>
259 <parameter>-no-nis</parameter>: This switch disables support
260 for Network Information Service (NIS) which has been
261 deprecated in recent versions of <application>Glibc</application>.
262 </para>
263
264 <para>
265 <parameter>-dbus-linkend -openssl-linkend</parameter>: These
266 switches enable explicit linking of the
267 <application>D-Bus</application> and
268 <application>OpenSSL</application> libraries into
269 <application>Qt</application> libraries instead of
270 <command>dlopen()</command>-ing them.
271 </para>
272
273 <para>
274 <parameter>-plugin-sql-<replaceable>&lt;driver&gt;</replaceable></parameter>:
275 These switches enable SQL support in the
276 <application>Qt</application> libraries. Available drivers are:
277 ibase, mysql, psql, sqlite and odbc.
278 </para>
279
280 </sect2>
281
282 <sect2 role="configuration">
283 <title>Configuring Qt</title>
284
285 <sect3 id="qt5-config">
286 <title>Configuration Information</title>
287
288 <para>
289 Create the menu entries for installed applications.
290 As the <systemitem class="username">root</systemitem> user:
291 </para>
292
293<screen role="root"><userinput>install -dm755 /usr/share/applications
294cat &gt; /usr/share/applications/assistant-qt5.desktop &lt;&lt; "EOF"
295<literal>[Desktop Entry]
296Name=Qt5 Assistant
297Comment=Shows Qt5 documentation and examples
298Exec=assistant-qt5
299Icon=assistant-qt5
300Terminal=false
301Encoding=UTF-8
302Type=Application
303Categories=Qt;Development;Documentation;</literal>
304EOF
305cat &gt; /usr/share/applications/designer-qt5.desktop &lt;&lt; "EOF"
306<literal>[Desktop Entry]
307Name=Qt5 Designer
308GenericName=Interface Designer
309Comment=Design GUIs for Qt5 applications
310Exec=designer-qt5
311Icon=designer-qt5
312MimeType=application/x-designer;
313Terminal=false
314Encoding=UTF-8
315Type=Application
316Categories=Qt;Development;</literal>
317EOF
318cat &gt; /usr/share/applications/linguist-qt5.desktop &lt;&lt; "EOF"
319<literal>[Desktop Entry]
320Name=Qt5 Linguist
321Comment=Add translations to Qt5 applications
322Exec=linguist-qt5
323Icon=linguist-qt5
324MimeType=text/vnd.trolltech.linguist;application/x-linguist;
325Terminal=false
326Encoding=UTF-8
327Type=Application
328Categories=Qt;Development;</literal>
329EOF
330cat &gt; /usr/share/applications/qdbusviewer-qt5.desktop &lt;&lt; "EOF"
331<literal>[Desktop Entry]
332Name=Qt5 QDbusViewer
333GenericName=D-Bus Debugger
334Comment=Debug D-Bus applications
335Exec=qdbusviewer-qt5
336Icon=qdbusviewer-qt5
337Terminal=false
338Encoding=UTF-8
339Type=Application
340Categories=Qt;Development;Debugger;</literal>
341EOF</userinput></screen>
342
343 </sect3>
344
345 </sect2>
346
347 <sect2 role="content">
348 <title>Contents</title>
349
350 <segmentedlist>
351 <segtitle>Installed Programs</segtitle>
352 <segtitle>Installed Libraries</segtitle>
353 <segtitle>Installed Directories</segtitle>
354
355 <seglistitem>
356 <seg>
357 assistant-qt5, designer-qt5, lconvert-qt5, linguist-qt5, lrelease-qt5,
358 lupdate-qt5, moc-qt5, pixeltool-qt5, qcollectiongenerator-qt5,
359 qdbuscpp2xml-qt5, qdbus-qt5, qdbusviewer-qt5, qdbusxml2cpp-qt5, qdoc-qt5,
360 qhelpconverter-qt5, qhelpgenerator-qt5, qmake-qt5, qml1plugindump-qt5,
361 qmlbundle-qt5, qmlmin-qt5, qmlplugindump-qt5, qmlprofiler-qt5, qmlscene-qt5,
362 qmltestrunner-qt5, qmlviewer-qt5, rcc-qt5, syncqt.pl-qt5, uic-qt5,
363 xmlpatterns-qt5 and xmlpatternsvalidator-qt5
364 </seg>
365 <seg>
366 libqgsttools_p.so, libQt5Bootstrap.a, libQt5CLucene.so, libQt5Concurrent.so,
367 libQt5Core.so, libQt5DBus.so, libQt5Declarative.so, libQt5DesignerComponents.so,
368 libQt5Designer.so, libQt5Gui.so, libQt5Help.so, libQt5MultimediaQuick_p.so,
369 libQt5Multimedia.so, libQt5MultimediaWidgets.so, libQt5Network.so,
370 libQt5OpenGLExtensions.a, libQt5OpenGL.so, libQt5PlatformSupport.a,
371 libQt5PrintSupport.so, libQt5QmlDevTools.a, libQt5Qml.so, libQt5QuickParticles.so,
372 libQt5Quick.so, libQt5QuickTest.so, libQt5Script.so, libQt5ScriptTools.so,
373 libQt5Sensors.so, libQt5SerialPort.so, libQt5Sql.so, libQt5Svg.so, libQt5Test.so,
374 libQt5UiTools.a, libQt5V8.so, libQt5WebKit.so, libQt5WebKitWidgets.so,
375 libQt5Widgets.so, libQt5X11Extras.so, libQt5XmlPatterns.so and libQt5Xml.so
376 </seg>
377 <seg>
378 /usr/include/qt5,
379 /usr/lib/qt5,
380 /usr/share/doc/qt5 and
381 /usr/share/qt5
382 </seg>
383 </seglistitem>
384 </segmentedlist>
385
386 <variablelist>
387 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
388 <?dbfo list-presentation="list"?>
389 <?dbhtml list-presentation="table"?>
390
391 <varlistentry id="assistant-qt5">
392 <term><command>assistant-qt5</command></term>
393 <listitem>
394 <para>
395 is a tool for presenting on-line documentation.
396 </para>
397 <indexterm zone="qt5 assistant-qt5">
398 <primary sortas="b-assistant-qt5">assistant-qt5</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
403 <varlistentry id="designer-qt5">
404 <term><command>designer-qt5</command></term>
405 <listitem>
406 <para>
407 is a full-fledged GUI builder. It includes
408 powerful features such as preview mode, automatic widget
409 layout, support for custom widgets, and an advanced
410 property editor.
411 </para>
412 <indexterm zone="qt5 designer-qt5">
413 <primary sortas="b-designer-qt5">designer-qt5</primary>
414 </indexterm>
415 </listitem>
416 </varlistentry>
417
418 <varlistentry id="linguist-qt5">
419 <term><command>linguist-qt5</command></term>
420 <listitem>
421 <para>
422 provides support for translating applications into
423 local languages.
424 </para>
425 <indexterm zone="qt5 linguist-qt5">
426 <primary sortas="b-linguist-qt5">linguist-qt5</primary>
427 </indexterm>
428 </listitem>
429 </varlistentry>
430
431 <varlistentry id="lrelease-qt5">
432 <term><command>lrelease-qt5</command></term>
433 <listitem>
434 <para>
435 is a simple command line tool. It reads a Qt project
436 file and produces message files used by the application.
437 </para>
438 <indexterm zone="qt5 lrelease-qt5">
439 <primary sortas="b-lrelease-qt5">lrelease-qt5</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
444 <varlistentry id="lupdate-qt5">
445 <term><command>lupdate-qt5</command></term>
446 <listitem>
447 <para>
448 reads a Qt project file, finds the translatable
449 strings in the specified source, header and Qt Designer
450 interface files, and produces or updates the translation
451 files listed in the project file.
452 </para>
453 <indexterm zone="qt5 lupdate-qt5">
454 <primary sortas="b-lupdate-qt5">lupdate-qt5</primary>
455 </indexterm>
456 </listitem>
457 </varlistentry>
458
459 <varlistentry id="moc-qt5">
460 <term><command>moc-qt5</command></term>
461 <listitem>
462 <para>
463 generates Qt meta object support code.
464 </para>
465 <indexterm zone="qt5 moc-qt5">
466 <primary sortas="b-moc-qt5">moc-qt5</primary>
467 </indexterm>
468 </listitem>
469 </varlistentry>
470
471 <varlistentry id="pixeltool-qt5">
472 <term><command>pixeltool-qt5</command></term>
473 <listitem>
474 <para>
475 is a desktop magnifier and as you move your mouse around
476 the screen it will show the magnified contents in its window.
477 </para>
478 <indexterm zone="qt5 pixeltool-qt5">
479 <primary sortas="b-pixeltool-qt5">pixeltool-qt5</primary>
480 </indexterm>
481 </listitem>
482 </varlistentry>
483
484 <varlistentry id="qmake-qt5">
485 <term><command>qmake-qt5</command></term>
486 <listitem>
487 <para>
488 uses information stored in project files to
489 determine what should go in the makefiles it
490 generates.
491 </para>
492 <indexterm zone="qt5 qmake-qt5">
493 <primary sortas="b-qmake-qt5">qmake-qt5</primary>
494 </indexterm>
495 </listitem>
496 </varlistentry>
497
498 <varlistentry id="rcc-qt5">
499 <term><command>rcc-qt5</command></term>
500 <listitem>
501 <para>
502 is a resource compiler used in conjunction with designer.
503 </para>
504 <indexterm zone="qt5 rcc-qt5">
505 <primary sortas="b-rcc-qt5">rcc-qt5</primary>
506 </indexterm>
507 </listitem>
508 </varlistentry>
509
510 <varlistentry id="uic-qt5">
511 <term><command>uic-qt5</command></term>
512 <listitem>
513 <para>
514 is a Qt user interface compiler.
515 </para>
516 <indexterm zone="qt5 uic-qt5">
517 <primary sortas="b-uic-qt5">uic-qt5</primary>
518 </indexterm>
519 </listitem>
520 </varlistentry>
521
522 </variablelist>
523
524 </sect2>
525
526</sect1>
Note: See TracBrowser for help on using the repository browser.