source: x/lib/qt5.xml@ f3a6abc9

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 f3a6abc9 was f3a6abc9, checked in by Krejzi <krejzi@…>, 11 years ago

qt5 fixes, transmission 2.82.

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

  • Property mode set to 100644
File size: 17.3 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 -opengl es2 \
179 -optimized-qmake &amp;&amp;
180make</userinput></screen>
181
182 <para>
183 Remove references to the build directory from pkg-confg
184 files by running the following command:
185 </para>
186
187<screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
188
189 <para>
190 This package does not come with a test suite.
191 </para>
192
193 <para>
194 Now, as the <systemitem class="username">root</systemitem> user:
195 </para>
196
197<screen role="root"><userinput>make install &amp;&amp;
198install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
199 /usr/share/pixmaps/assistant-qt5.png &amp;&amp;
200install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
201 /usr/share/pixmaps/designer-qt5.png &amp;&amp;
202install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
203 /usr/share/pixmaps/linguist-qt5.png &amp;&amp;
204install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
205 /usr/share/pixmaps/qdbusviewer-qt5.png</userinput></screen>
206
207 <para>
208 Remove references to the build directory from installed files by
209 running the following commands as the
210 <systemitem class="username">root</systemitem> user:
211 </para>
212
213<screen role="root"><userinput>sed -i -e "s:$PWD/qtbase:/usr/lib/qt5:g" \
214 /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap.pri &amp;&amp;
215find /usr/lib/*.prl -exec sed -i -e \
216 '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;</userinput></screen>
217
218 <para>
219 Symlink the <application>Qt</application> executables into
220 <filename class="directory">/usr/bin</filename> by running the
221 following commands as the
222 <systemitem class="username">root</systemitem> user:
223 </para>
224
225<screen role="root"><userinput>for file in /usr/lib/qt5/bin/*
226do
227 ln -sfv ../lib/qt5/bin/$(basename $file) /usr/bin/$(basename $file)-qt5
228done</userinput></screen>
229
230 </sect2>
231
232 <sect2 role="commands">
233 <title>Command Explanations</title>
234
235 <para>
236 <parameter>-confirm-license</parameter>: Accept license
237 without prompting user during configuration.
238 </para>
239
240 <para>
241 <parameter>-opensource</parameter>: Install the opensource
242 version of <application>Qt</application>.
243 </para>
244
245 <para>
246 <parameter>-release</parameter>: This switch disables
247 building with debugging symbols.
248 </para>
249
250 <para>
251 <parameter>-nomake tests -nomake examples</parameter>:
252 These switches disable building modules that are only of
253 interest to a <application>Qt</application> developer.
254 </para>
255
256 <para>
257 <parameter>-system-sqlite</parameter>: This switch enables use
258 of the system version of <application>SQLite</application>.
259 </para>
260
261 <para>
262 <parameter>-no-nis</parameter>: This switch disables support
263 for Network Information Service (NIS) which has been
264 deprecated in recent versions of <application>Glibc</application>.
265 </para>
266
267 <para>
268 <parameter>-dbus-linkend -openssl-linkend</parameter>: These
269 switches enable explicit linking of the
270 <application>D-Bus</application> and
271 <application>OpenSSL</application> libraries into
272 <application>Qt</application> libraries instead of
273 <command>dlopen()</command>-ing them.
274 </para>
275
276 <para>
277 <parameter>-plugin-sql-<replaceable>&lt;driver&gt;</replaceable></parameter>:
278 These switches enable SQL support in the
279 <application>Qt</application> libraries. Available drivers are:
280 ibase, mysql, psql, sqlite and odbc.
281 </para>
282
283 <para>
284 <parameter>-opengl es2</parameter>: This switch enables OpenGL ES2
285 support in <application>Qt</application>.
286 </para>
287
288 <para>
289 <parameter>-optimized-qmake</parameter>: This switch enables
290 building of the optimized <command>qmake</command> program.
291 </para>
292
293 </sect2>
294
295 <sect2 role="configuration">
296 <title>Configuring Qt</title>
297
298 <sect3 id="qt5-config">
299 <title>Configuration Information</title>
300
301 <para>
302 Create the menu entries for installed applications.
303 As the <systemitem class="username">root</systemitem> user:
304 </para>
305
306<screen role="root"><userinput>install -dm755 /usr/share/applications
307cat &gt; /usr/share/applications/assistant-qt5.desktop &lt;&lt; "EOF"
308<literal>[Desktop Entry]
309Name=Qt5 Assistant
310Comment=Shows Qt5 documentation and examples
311Exec=assistant-qt5
312Icon=assistant-qt5
313Terminal=false
314Encoding=UTF-8
315Type=Application
316Categories=Qt;Development;Documentation;</literal>
317EOF
318cat &gt; /usr/share/applications/designer-qt5.desktop &lt;&lt; "EOF"
319<literal>[Desktop Entry]
320Name=Qt5 Designer
321GenericName=Interface Designer
322Comment=Design GUIs for Qt5 applications
323Exec=designer-qt5
324Icon=designer-qt5
325MimeType=application/x-designer;
326Terminal=false
327Encoding=UTF-8
328Type=Application
329Categories=Qt;Development;</literal>
330EOF
331cat &gt; /usr/share/applications/linguist-qt5.desktop &lt;&lt; "EOF"
332<literal>[Desktop Entry]
333Name=Qt5 Linguist
334Comment=Add translations to Qt5 applications
335Exec=linguist-qt5
336Icon=linguist-qt5
337MimeType=text/vnd.trolltech.linguist;application/x-linguist;
338Terminal=false
339Encoding=UTF-8
340Type=Application
341Categories=Qt;Development;</literal>
342EOF
343cat &gt; /usr/share/applications/qdbusviewer-qt5.desktop &lt;&lt; "EOF"
344<literal>[Desktop Entry]
345Name=Qt5 QDbusViewer
346GenericName=D-Bus Debugger
347Comment=Debug D-Bus applications
348Exec=qdbusviewer-qt5
349Icon=qdbusviewer-qt5
350Terminal=false
351Encoding=UTF-8
352Type=Application
353Categories=Qt;Development;Debugger;</literal>
354EOF</userinput></screen>
355
356 </sect3>
357
358 </sect2>
359
360 <sect2 role="content">
361 <title>Contents</title>
362
363 <segmentedlist>
364 <segtitle>Installed Programs</segtitle>
365 <segtitle>Installed Libraries</segtitle>
366 <segtitle>Installed Directories</segtitle>
367
368 <seglistitem>
369 <seg>
370 assistant-qt5, designer-qt5, lconvert-qt5, linguist-qt5, lrelease-qt5,
371 lupdate-qt5, moc-qt5, pixeltool-qt5, qcollectiongenerator-qt5,
372 qdbuscpp2xml-qt5, qdbus-qt5, qdbusviewer-qt5, qdbusxml2cpp-qt5, qdoc-qt5,
373 qhelpconverter-qt5, qhelpgenerator-qt5, qmake-qt5, qml1plugindump-qt5,
374 qmlbundle-qt5, qmlmin-qt5, qmlplugindump-qt5, qmlprofiler-qt5, qmlscene-qt5,
375 qmltestrunner-qt5, qmlviewer-qt5, rcc-qt5, syncqt.pl-qt5, uic-qt5,
376 xmlpatterns-qt5 and xmlpatternsvalidator-qt5
377 </seg>
378 <seg>
379 libqgsttools_p.so, libQt5Bootstrap.a, libQt5CLucene.so, libQt5Concurrent.so,
380 libQt5Core.so, libQt5DBus.so, libQt5Declarative.so, libQt5DesignerComponents.so,
381 libQt5Designer.so, libQt5Gui.so, libQt5Help.so, libQt5MultimediaQuick_p.so,
382 libQt5Multimedia.so, libQt5MultimediaWidgets.so, libQt5Network.so,
383 libQt5OpenGLExtensions.a, libQt5OpenGL.so, libQt5PlatformSupport.a,
384 libQt5PrintSupport.so, libQt5QmlDevTools.a, libQt5Qml.so, libQt5QuickParticles.so,
385 libQt5Quick.so, libQt5QuickTest.so, libQt5Script.so, libQt5ScriptTools.so,
386 libQt5Sensors.so, libQt5SerialPort.so, libQt5Sql.so, libQt5Svg.so, libQt5Test.so,
387 libQt5UiTools.a, libQt5V8.so, libQt5WebKit.so, libQt5WebKitWidgets.so,
388 libQt5Widgets.so, libQt5X11Extras.so, libQt5XmlPatterns.so and libQt5Xml.so
389 </seg>
390 <seg>
391 /usr/include/qt5,
392 /usr/lib/qt5,
393 /usr/share/doc/qt5 and
394 /usr/share/qt5
395 </seg>
396 </seglistitem>
397 </segmentedlist>
398
399 <variablelist>
400 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
401 <?dbfo list-presentation="list"?>
402 <?dbhtml list-presentation="table"?>
403
404 <varlistentry id="assistant-qt5">
405 <term><command>assistant-qt5</command></term>
406 <listitem>
407 <para>
408 is a tool for presenting on-line documentation.
409 </para>
410 <indexterm zone="qt5 assistant-qt5">
411 <primary sortas="b-assistant-qt5">assistant-qt5</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415
416 <varlistentry id="designer-qt5">
417 <term><command>designer-qt5</command></term>
418 <listitem>
419 <para>
420 is a full-fledged GUI builder. It includes
421 powerful features such as preview mode, automatic widget
422 layout, support for custom widgets, and an advanced
423 property editor.
424 </para>
425 <indexterm zone="qt5 designer-qt5">
426 <primary sortas="b-designer-qt5">designer-qt5</primary>
427 </indexterm>
428 </listitem>
429 </varlistentry>
430
431 <varlistentry id="linguist-qt5">
432 <term><command>linguist-qt5</command></term>
433 <listitem>
434 <para>
435 provides support for translating applications into
436 local languages.
437 </para>
438 <indexterm zone="qt5 linguist-qt5">
439 <primary sortas="b-linguist-qt5">linguist-qt5</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
444 <varlistentry id="lrelease-qt5">
445 <term><command>lrelease-qt5</command></term>
446 <listitem>
447 <para>
448 is a simple command line tool. It reads a Qt project
449 file and produces message files used by the application.
450 </para>
451 <indexterm zone="qt5 lrelease-qt5">
452 <primary sortas="b-lrelease-qt5">lrelease-qt5</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
457 <varlistentry id="lupdate-qt5">
458 <term><command>lupdate-qt5</command></term>
459 <listitem>
460 <para>
461 reads a Qt project file, finds the translatable
462 strings in the specified source, header and Qt Designer
463 interface files, and produces or updates the translation
464 files listed in the project file.
465 </para>
466 <indexterm zone="qt5 lupdate-qt5">
467 <primary sortas="b-lupdate-qt5">lupdate-qt5</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
472 <varlistentry id="moc-qt5">
473 <term><command>moc-qt5</command></term>
474 <listitem>
475 <para>
476 generates Qt meta object support code.
477 </para>
478 <indexterm zone="qt5 moc-qt5">
479 <primary sortas="b-moc-qt5">moc-qt5</primary>
480 </indexterm>
481 </listitem>
482 </varlistentry>
483
484 <varlistentry id="pixeltool-qt5">
485 <term><command>pixeltool-qt5</command></term>
486 <listitem>
487 <para>
488 is a desktop magnifier and as you move your mouse around
489 the screen it will show the magnified contents in its window.
490 </para>
491 <indexterm zone="qt5 pixeltool-qt5">
492 <primary sortas="b-pixeltool-qt5">pixeltool-qt5</primary>
493 </indexterm>
494 </listitem>
495 </varlistentry>
496
497 <varlistentry id="qmake-qt5">
498 <term><command>qmake-qt5</command></term>
499 <listitem>
500 <para>
501 uses information stored in project files to
502 determine what should go in the makefiles it
503 generates.
504 </para>
505 <indexterm zone="qt5 qmake-qt5">
506 <primary sortas="b-qmake-qt5">qmake-qt5</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
510
511 <varlistentry id="rcc-qt5">
512 <term><command>rcc-qt5</command></term>
513 <listitem>
514 <para>
515 is a resource compiler used in conjunction with designer.
516 </para>
517 <indexterm zone="qt5 rcc-qt5">
518 <primary sortas="b-rcc-qt5">rcc-qt5</primary>
519 </indexterm>
520 </listitem>
521 </varlistentry>
522
523 <varlistentry id="uic-qt5">
524 <term><command>uic-qt5</command></term>
525 <listitem>
526 <para>
527 is a Qt user interface compiler.
528 </para>
529 <indexterm zone="qt5 uic-qt5">
530 <primary sortas="b-uic-qt5">uic-qt5</primary>
531 </indexterm>
532 </listitem>
533 </varlistentry>
534
535 </variablelist>
536
537 </sect2>
538
539</sect1>
Note: See TracBrowser for help on using the repository browser.