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 | <!-- Change for new minor releases !!! -->
|
---|
8 |
|
---|
9 | <!ENTITY qt5-major "5.4">
|
---|
10 | <!ENTITY qt5-url "http://download.qt.io/archive/qt/&qt5-major;/&qt5-version;/single">
|
---|
11 |
|
---|
12 | <!ENTITY qt5-download-http "&qt5-url;/qt-everywhere-opensource-src-&qt5-version;.tar.xz">
|
---|
13 | <!ENTITY qt5-download-ftp " ">
|
---|
14 | <!ENTITY qt5-md5sum "c23bd0f14d66e7901d24906a1edce9b0">
|
---|
15 | <!ENTITY qt5-size "269 MB">
|
---|
16 | <!ENTITY qt5-buildsize "6.9 GB (172 MB installed)">
|
---|
17 | <!ENTITY qt5-time "24 SBU, using parallelism=4">
|
---|
18 | ]>
|
---|
19 |
|
---|
20 | <sect1 id="qt5" xreflabel="Qt-&qt5-version;">
|
---|
21 | <?dbhtml filename="qt5.html" ?>
|
---|
22 |
|
---|
23 | <sect1info>
|
---|
24 | <othername>$LastChangedBy$</othername>
|
---|
25 | <date>$Date$</date>
|
---|
26 | </sect1info>
|
---|
27 |
|
---|
28 | <title>Qt-&qt5-version;</title>
|
---|
29 |
|
---|
30 | <indexterm zone="qt5">
|
---|
31 | <primary sortas="a-Qt">Qt</primary>
|
---|
32 | </indexterm>
|
---|
33 |
|
---|
34 | <sect2 role="package">
|
---|
35 | <title>Introduction to Qt5</title>
|
---|
36 |
|
---|
37 | <para>
|
---|
38 | <application>Qt5</application> is a cross-platform application
|
---|
39 | framework that is widely used for developing application software
|
---|
40 | with a graphical user interface (GUI) (in which cases
|
---|
41 | <application>Qt5</application> is classified as a widget toolkit), and
|
---|
42 | also used for developing non-GUI programs such as command-line tools
|
---|
43 | and consoles for servers.
|
---|
44 | </para>
|
---|
45 |
|
---|
46 | &lfs77_checked; &gcc5_checked;
|
---|
47 |
|
---|
48 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
49 | <itemizedlist spacing="compact">
|
---|
50 | <listitem>
|
---|
51 | <para>
|
---|
52 | Download (HTTP): <ulink url="&qt5-download-http;"/>
|
---|
53 | </para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>
|
---|
57 | Download (FTP): <ulink url="&qt5-download-ftp;"/>
|
---|
58 | </para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>
|
---|
62 | Download MD5 sum: &qt5-md5sum;
|
---|
63 | </para>
|
---|
64 | </listitem>
|
---|
65 | <listitem>
|
---|
66 | <para>
|
---|
67 | Download size: &qt5-size;
|
---|
68 | </para>
|
---|
69 | </listitem>
|
---|
70 | <listitem>
|
---|
71 | <para>
|
---|
72 | Estimated disk space required: &qt5-buildsize;
|
---|
73 | </para>
|
---|
74 | </listitem>
|
---|
75 | <listitem>
|
---|
76 | <para>
|
---|
77 | Estimated build time: &qt5-time;
|
---|
78 | </para>
|
---|
79 | </listitem>
|
---|
80 | </itemizedlist>
|
---|
81 |
|
---|
82 | <bridgehead renderas="sect3">Qt5 Dependencies</bridgehead>
|
---|
83 |
|
---|
84 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
85 | <para role="required">
|
---|
86 | <xref linkend="xorg7-lib"/>
|
---|
87 | </para>
|
---|
88 |
|
---|
89 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
90 | <para role="recommended">
|
---|
91 | <xref linkend="alsa-lib"/>,
|
---|
92 | <xref linkend="cacerts"/>,
|
---|
93 | <xref linkend="cups"/>,
|
---|
94 | <xref linkend="dbus"/> (required for QtWebKit),
|
---|
95 | <xref linkend="glib2"/>,
|
---|
96 | <xref linkend="gst-plugins-base"/>,
|
---|
97 | <xref linkend="icu"/> (required for QtWebKit),
|
---|
98 | <xref linkend="jasper"/>,
|
---|
99 | <xref linkend="libjpeg"/>,
|
---|
100 | <xref linkend="libmng"/>,
|
---|
101 | <xref linkend="libpng"/>,
|
---|
102 | <xref linkend="libtiff"/>,
|
---|
103 | <xref linkend="libwebp"/>,
|
---|
104 | <xref linkend="mesalib"/>,
|
---|
105 | <xref linkend="mtdev"/>,
|
---|
106 | <xref linkend="openssl"/>,
|
---|
107 | <xref linkend="pcre"/>,
|
---|
108 | <xref linkend="sqlite"/>,
|
---|
109 | <xref linkend="ruby"/> (required for QtWebKit),
|
---|
110 | <xref linkend="xcb-util-image"/>,
|
---|
111 | <xref linkend="xcb-util-keysyms"/>,
|
---|
112 | <xref linkend="xcb-util-renderutil"/>, and
|
---|
113 | <xref linkend="xcb-util-wm"/>
|
---|
114 | </para>
|
---|
115 |
|
---|
116 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
117 | <para role="optional">
|
---|
118 | <xref linkend="geoclue"/>,
|
---|
119 | <xref linkend="gst10-plugins-base"/> (QtWebKit HTML5 Video Support),
|
---|
120 | <xref linkend="gtk2"/> (GTK+ Theme Support),
|
---|
121 | <xref linkend="harfbuzz"/>, <!-- Doesn't have all the features that the included one has. -->
|
---|
122 | <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
|
---|
123 | <xref linkend="postgresql"/>,
|
---|
124 | <xref linkend="pulseaudio"/>,
|
---|
125 | <xref linkend="unixodbc"/>,
|
---|
126 | <ulink url="https://code.google.com/p/ibus/">IBus</ulink>, and
|
---|
127 | <ulink url="http://xkbcommon.org/">libxkbcommon</ulink>
|
---|
128 | </para>
|
---|
129 |
|
---|
130 | <para condition="html" role="usernotes">User Notes:
|
---|
131 | <ulink url="&blfs-wiki;/qt5"/>
|
---|
132 | </para>
|
---|
133 | </sect2>
|
---|
134 |
|
---|
135 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
136 | href="../../xincludes/qt-alternatives.xml"/>
|
---|
137 |
|
---|
138 | <sect2 role="installation">
|
---|
139 | <title>Installation of Qt5</title>
|
---|
140 |
|
---|
141 | <caution>
|
---|
142 | <para>
|
---|
143 | If you did not install some of the recommended dependencies, examine
|
---|
144 | <command>./configure --help</command> output to check how to disable
|
---|
145 | them or use internal versions bundled in the source tarball.
|
---|
146 | </para>
|
---|
147 | </caution>
|
---|
148 |
|
---|
149 | <warning>
|
---|
150 | <para>
|
---|
151 | If <application>Qt5</application> is being reinstalled into the
|
---|
152 | same directory as an existing instance, run the commands done by
|
---|
153 | <systemitem class="username">root</systemitem>, such as
|
---|
154 | <command>make install</command>, from a console or non-Qt5 based
|
---|
155 | window manager. It overwrites <application>Qt5</application>
|
---|
156 | libraries that should not be in use during the install process.
|
---|
157 | </para>
|
---|
158 | </warning>
|
---|
159 |
|
---|
160 | <!-- ==== Method 1 ====== -->
|
---|
161 | <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>
|
---|
162 |
|
---|
163 | <para>
|
---|
164 | Install <application>Qt5</application> by running the
|
---|
165 | following commands:
|
---|
166 | </para>
|
---|
167 |
|
---|
168 | <!-- This is rather a bad idea. Most apps that I've seen using Qt5 look for
|
---|
169 | -qt5 suffixed programs. On the other hand, the developer is used to
|
---|
170 | running qmake, linguist, etc from the command line.
|
---|
171 |
|
---|
172 | <note>
|
---|
173 | <para>
|
---|
174 | If <emphasis>not</emphasis> also installing <application>Qt4</application>
|
---|
175 | into the /usr directory, change the entry for -bindir below to /usr/bin.
|
---|
176 | </para>
|
---|
177 | </note> -->
|
---|
178 |
|
---|
179 | <screen><userinput>export QT5LINK=/usr
|
---|
180 |
|
---|
181 | ./configure -prefix /usr \
|
---|
182 | -sysconfdir /etc/xdg \
|
---|
183 | -bindir /usr/bin \
|
---|
184 | -headerdir /usr/include/qt5 \
|
---|
185 | -archdatadir /usr/lib/qt5 \
|
---|
186 | -datadir /usr/share/qt5 \
|
---|
187 | -docdir /usr/share/doc/qt5 \
|
---|
188 | -translationdir /usr/share/qt5/translations \
|
---|
189 | -examplesdir /usr/share/doc/qt5/examples \
|
---|
190 | -confirm-license \
|
---|
191 | -opensource \
|
---|
192 | -dbus-linked \
|
---|
193 | -openssl-linked \<!--
|
---|
194 | -system-harfbuzz \-->
|
---|
195 | -system-sqlite \
|
---|
196 | -no-nis \
|
---|
197 | -skip qtwebengine \
|
---|
198 | -nomake examples \
|
---|
199 | -nomake tests \
|
---|
200 | -optimized-qmake &&
|
---|
201 | make</userinput></screen>
|
---|
202 |
|
---|
203 | <para>
|
---|
204 | This package does not come with a test suite.
|
---|
205 | </para>
|
---|
206 |
|
---|
207 | <para>
|
---|
208 | Remove references to the build directory from the
|
---|
209 | <filename class="extension">.pc</filename> files by running
|
---|
210 | the following command:
|
---|
211 | </para>
|
---|
212 |
|
---|
213 | <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
|
---|
214 |
|
---|
215 | <para>
|
---|
216 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
217 | </para>
|
---|
218 |
|
---|
219 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
220 |
|
---|
221 | <para>
|
---|
222 | Remove references to the build directory from installed files by
|
---|
223 | running the following commands as the
|
---|
224 | <systemitem class="username">root</systemitem> user:
|
---|
225 | </para>
|
---|
226 |
|
---|
227 | <screen role="root"><userinput>sed -e "s:$PWD/qtbase:/usr/lib/qt5:g" \
|
---|
228 | -i /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &&
|
---|
229 |
|
---|
230 | find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -r \
|
---|
231 | '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' {} \;</userinput></screen>
|
---|
232 |
|
---|
233 | <!-- ==== Method 2 ====== -->
|
---|
234 |
|
---|
235 | <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt5-version;</bridgehead>
|
---|
236 |
|
---|
237 | <para>
|
---|
238 | This section provides instructions for installing Qt5 in the
|
---|
239 | <filename class="directory">/opt</filename> directory.
|
---|
240 | </para>
|
---|
241 |
|
---|
242 | <screen><userinput>export QT5DIR=/opt/qt-&qt5-version; &&
|
---|
243 | export QT5LINK=/opt/qt5 &&
|
---|
244 |
|
---|
245 | ./configure -prefix $QT5DIR \
|
---|
246 | -sysconfdir /etc/xdg \
|
---|
247 | -confirm-license \
|
---|
248 | -opensource \
|
---|
249 | -dbus-linked \
|
---|
250 | -openssl-linked \<!--
|
---|
251 | -system-harfbuzz \-->
|
---|
252 | -system-sqlite \
|
---|
253 | -no-nis \
|
---|
254 | -nomake examples \
|
---|
255 | -nomake tests \
|
---|
256 | -skip qtwebengine \
|
---|
257 | -optimized-qmake &&
|
---|
258 | make</userinput></screen>
|
---|
259 |
|
---|
260 | <para>
|
---|
261 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
262 | </para>
|
---|
263 |
|
---|
264 | <screen role="root"><userinput>make install &&
|
---|
265 | ln -svfn $QT5DIR /opt/qt5</userinput></screen>
|
---|
266 |
|
---|
267 | <para>
|
---|
268 | Remove references to the build directory from installed files by
|
---|
269 | running the following commands as the
|
---|
270 | <systemitem class="username">root</systemitem> user:
|
---|
271 | </para>
|
---|
272 |
|
---|
273 | <screen role="root"><userinput>find $QT5DIR -name qt_lib_bootstrap_private.pri \
|
---|
274 | -exec sed -i -e "s:$PWD/qtbase:/$QT5DIR/lib/:g" {} \; &&
|
---|
275 |
|
---|
276 | find $QT5DIR -name \*.prl \
|
---|
277 | -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
---|
278 |
|
---|
279 | <!-- This is useful for packages looking explicitly for Qt apps with -qt5 suffix.
|
---|
280 |
|
---|
281 | <para>
|
---|
282 | Symlink the <application>Qt5</application> executables into
|
---|
283 | <filename class="directory">/usr/bin</filename> by running the
|
---|
284 | following commands as the
|
---|
285 | <systemitem class="username">root</systemitem> user:
|
---|
286 | </para>
|
---|
287 |
|
---|
288 | <screen role="root"><userinput>ln -svf $QT5DIR /opt/qt5 &&
|
---|
289 |
|
---|
290 | for file in /opt/qt5/bin/*; do
|
---|
291 | ln -sfv $file /usr/bin/$(basename $file)-qt5
|
---|
292 | done</userinput></screen> -->
|
---|
293 |
|
---|
294 | <!-- ==== Common ====== -->
|
---|
295 | <bridgehead renderas="sect3">Continuing for Both Methods</bridgehead>
|
---|
296 |
|
---|
297 | <para>
|
---|
298 | For all methods, install images and create the menu entries
|
---|
299 | for installed applications. Be sure that the <envar>QT5LINK</envar>
|
---|
300 | variable is defined in root's environment and
|
---|
301 | as the <systemitem class="username">root</systemitem> user:
|
---|
302 | </para>
|
---|
303 |
|
---|
304 | <screen role="root"><userinput>install -v -dm755 /usr/share/pixmaps/ &&
|
---|
305 |
|
---|
306 | install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
---|
307 | /usr/share/pixmaps/assistant-qt5.png &&
|
---|
308 |
|
---|
309 | install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
---|
310 | /usr/share/pixmaps/designer-qt5.png &&
|
---|
311 |
|
---|
312 | install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
313 | /usr/share/pixmaps/linguist-qt5.png &&
|
---|
314 |
|
---|
315 | install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
316 | /usr/share/pixmaps/qdbusviewer-qt5.png &&
|
---|
317 |
|
---|
318 | install -dm755 /usr/share/applications &&
|
---|
319 |
|
---|
320 | cat > /usr/share/applications/assistant-qt5.desktop << EOF
|
---|
321 | <literal>[Desktop Entry]
|
---|
322 | Name=Qt5 Assistant
|
---|
323 | Comment=Shows Qt5 documentation and examples
|
---|
324 | Exec=$QT5LINK/bin/assistant
|
---|
325 | Icon=assistant-qt5.png
|
---|
326 | Terminal=false
|
---|
327 | Encoding=UTF-8
|
---|
328 | Type=Application
|
---|
329 | Categories=Qt;Development;Documentation;</literal>
|
---|
330 | EOF
|
---|
331 |
|
---|
332 | cat > /usr/share/applications/designer-qt5.desktop << EOF
|
---|
333 | <literal>[Desktop Entry]
|
---|
334 | Name=Qt5 Designer
|
---|
335 | GenericName=Interface Designer
|
---|
336 | Comment=Design GUIs for Qt5 applications
|
---|
337 | Exec=$QT5LINK/bin/designer
|
---|
338 | Icon=designer-qt5.png
|
---|
339 | MimeType=application/x-designer;
|
---|
340 | Terminal=false
|
---|
341 | Encoding=UTF-8
|
---|
342 | Type=Application
|
---|
343 | Categories=Qt;Development;</literal>
|
---|
344 | EOF
|
---|
345 |
|
---|
346 | cat > /usr/share/applications/linguist-qt5.desktop << EOF
|
---|
347 | <literal>[Desktop Entry]
|
---|
348 | Name=Qt5 Linguist
|
---|
349 | Comment=Add translations to Qt5 applications
|
---|
350 | Exec=$QT5LINK/bin/linguist
|
---|
351 | Icon=linguist-qt5.png
|
---|
352 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
353 | Terminal=false
|
---|
354 | Encoding=UTF-8
|
---|
355 | Type=Application
|
---|
356 | Categories=Qt;Development;</literal>
|
---|
357 | EOF
|
---|
358 |
|
---|
359 | cat > /usr/share/applications/qdbusviewer-qt5.desktop << EOF
|
---|
360 | <literal>[Desktop Entry]
|
---|
361 | Name=Qt5 QDbusViewer
|
---|
362 | GenericName=D-Bus Debugger
|
---|
363 | Comment=Debug D-Bus applications
|
---|
364 | Exec=$QT5LINK/bin/qdbusviewer
|
---|
365 | Icon=qdbusviewer-qt5.png
|
---|
366 | Terminal=false
|
---|
367 | Encoding=UTF-8
|
---|
368 | Type=Application
|
---|
369 | Categories=Qt;Development;Debugger;</literal>
|
---|
370 | EOF</userinput></screen>
|
---|
371 |
|
---|
372 | </sect2>
|
---|
373 |
|
---|
374 | <sect2 role="commands">
|
---|
375 | <title>Command Explanations</title>
|
---|
376 |
|
---|
377 | <para>
|
---|
378 | <parameter>-confirm-license</parameter>: Accept license
|
---|
379 | without prompting user during configuration.
|
---|
380 | </para>
|
---|
381 |
|
---|
382 | <para>
|
---|
383 | <parameter>-opensource</parameter>: Install the opensource
|
---|
384 | version of <application>Qt</application>.
|
---|
385 | </para>
|
---|
386 |
|
---|
387 | <para>
|
---|
388 | <parameter>-release</parameter>: This switch disables
|
---|
389 | building with debugging symbols.
|
---|
390 | </para>
|
---|
391 |
|
---|
392 | <para>
|
---|
393 | <parameter>-nomake examples</parameter>: This switch
|
---|
394 | disables building of the example programs included
|
---|
395 | in the source tarball. Remove it if you want to build
|
---|
396 | them.
|
---|
397 | </para>
|
---|
398 |
|
---|
399 | <para>
|
---|
400 | <parameter>-nomake tests</parameter>: This switch
|
---|
401 | disables building of the test programs included
|
---|
402 | in the source tarball. Remove it if you want to build
|
---|
403 | them.
|
---|
404 | </para>
|
---|
405 |
|
---|
406 | <para>
|
---|
407 | <parameter>-system-sqlite</parameter>: This switch enables use
|
---|
408 | of the system version of <application>SQLite</application>.
|
---|
409 | </para>
|
---|
410 |
|
---|
411 | <para>
|
---|
412 | <parameter>-no-nis</parameter>: This switch disables support
|
---|
413 | for Network Information Service (NIS) which has been
|
---|
414 | removed from recent versions of <application>Glibc</application>.
|
---|
415 | </para>
|
---|
416 |
|
---|
417 | <para>
|
---|
418 | <parameter>-dbus-linked -openssl-linked</parameter>: These
|
---|
419 | switches enable explicit linking of the
|
---|
420 | <application>D-Bus</application> and
|
---|
421 | <application>OpenSSL</application> libraries into
|
---|
422 | <application>Qt5</application> libraries instead of
|
---|
423 | <command>dlopen()</command>-ing them.
|
---|
424 | </para>
|
---|
425 |
|
---|
426 | <para>
|
---|
427 | <parameter>-skip qtwebengine</parameter>: This switch disables
|
---|
428 | building the Qt Web Engine. It is not presently used by
|
---|
429 | any applications. Note that building the Qt Web Engine increases the
|
---|
430 | build time and the installed size by almost 50%.
|
---|
431 | </para>
|
---|
432 |
|
---|
433 | <para>
|
---|
434 | <parameter>-optimized-qmake</parameter>: This switch enables
|
---|
435 | building of the optimized <command>qmake</command> program.
|
---|
436 | </para>
|
---|
437 |
|
---|
438 | <para>
|
---|
439 | <option>-system-harfbuzz</option>: This switch enables use
|
---|
440 | of the system version of <application>Harfbuzz</application>
|
---|
441 | which fixes some font rendering issues in
|
---|
442 | <application>Qt5</application> applications but doesn't have all the
|
---|
443 | features that the included one has.
|
---|
444 | </para>
|
---|
445 |
|
---|
446 | </sect2>
|
---|
447 |
|
---|
448 | <sect2 role="configuration">
|
---|
449 | <title>Configuring Qt5</title>
|
---|
450 |
|
---|
451 | <sect3 id="qt5-config">
|
---|
452 | <title>Configuration Information</title>
|
---|
453 |
|
---|
454 | <para>
|
---|
455 | If you installed <application>Qt5</application> in
|
---|
456 | <filename class="directory">/usr</filename>, create an
|
---|
457 | environment variable needed by certain packages.
|
---|
458 | As the <systemitem class="username">root</systemitem> user:
|
---|
459 | </para>
|
---|
460 |
|
---|
461 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
462 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
463 |
|
---|
464 | QT5DIR=/usr
|
---|
465 | export QT5DIR
|
---|
466 |
|
---|
467 | # End /etc/profile.d/qt5.sh</literal>
|
---|
468 | EOF</userinput></screen>
|
---|
469 |
|
---|
470 | <para>
|
---|
471 | If you installed <application>Qt5</application> in a location other
|
---|
472 | than <filename class="directory">/usr</filename>, you need to update the
|
---|
473 | following configuration files so that <application>Qt5</application> is
|
---|
474 | correctly found by other packages and system processes.
|
---|
475 | </para>
|
---|
476 |
|
---|
477 | <para>
|
---|
478 | As the <systemitem class="username">root</systemitem> user, update
|
---|
479 | the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
---|
480 | run-time cache file:
|
---|
481 | </para>
|
---|
482 |
|
---|
483 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
484 | <literal># Begin Qt addition
|
---|
485 |
|
---|
486 | /opt/qt5/lib
|
---|
487 |
|
---|
488 | # End Qt addition</literal>
|
---|
489 | EOF
|
---|
490 |
|
---|
491 | ldconfig</userinput></screen>
|
---|
492 |
|
---|
493 | <indexterm zone="qt5 qt5-config">
|
---|
494 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
495 | </indexterm>
|
---|
496 |
|
---|
497 | <para>
|
---|
498 | As the <systemitem class="username">root</systemitem> user, create
|
---|
499 | the <filename>/etc/profile.d/qt5.sh</filename> file:
|
---|
500 | </para>
|
---|
501 |
|
---|
502 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
503 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
504 |
|
---|
505 | QT5DIR=/opt/qt5
|
---|
506 |
|
---|
507 | pathappend /opt/qt5/bin PATH
|
---|
508 | pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
|
---|
509 |
|
---|
510 | export QT5DIR
|
---|
511 |
|
---|
512 | # End /etc/profile.d/qt5.sh</literal>
|
---|
513 | EOF</userinput></screen>
|
---|
514 |
|
---|
515 | </sect3>
|
---|
516 |
|
---|
517 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
518 | href="../../xincludes/setqt.xml"/>
|
---|
519 | </sect2>
|
---|
520 |
|
---|
521 | <sect2 role="content">
|
---|
522 | <title>Contents</title>
|
---|
523 |
|
---|
524 | <segmentedlist>
|
---|
525 | <segtitle>Installed Programs</segtitle>
|
---|
526 | <segtitle>Installed Libraries</segtitle>
|
---|
527 | <segtitle>Installed Directories</segtitle>
|
---|
528 |
|
---|
529 | <seglistitem>
|
---|
530 | <seg>
|
---|
531 | assistant, designer, lconvert, linguist, lrelease,
|
---|
532 | lupdate, moc, pixeltool, qcollectiongenerator, qdbuscpp2xml,
|
---|
533 | qdbus, qdbusviewer, qdbusxml2cpp, qdoc, qhelpconverter,
|
---|
534 | qhelpgenerator, qlalr, qmake, qml1plugindump, qmlbundle, qmleasing,
|
---|
535 | qmlimportscanner, qmllint, qmlmin, qmlplugindump, qmlprofiler, qml,
|
---|
536 | qmlscene, qmltestrunner, qmlviewer, qtdiag, qtpaths, rcc,
|
---|
537 | syncqt.pl, uic, xmlpatterns, and xmlpatternsvalidator
|
---|
538 | </seg>
|
---|
539 | <seg>
|
---|
540 | libEnginio.so, libqgsttools_p.so, libQt5Bluetooth.so,
|
---|
541 | libQt5Bootstrap.a, libQt5CLucene.so, libQt5Concurrent.so,
|
---|
542 | libQt5Core.so, libQt5DBus.so, libQt5Declarative.so,
|
---|
543 | libQt5DesignerComponents.so, libQt5Designer.so, libQt5Gui.so,
|
---|
544 | libQt5Help.so, libQt5Location.so, libQt5MultimediaQuick_p.so,
|
---|
545 | libQt5Multimedia.so, libQt5MultimediaWidgets.so, libQt5Network.so,
|
---|
546 | libQt5Nfc.so, libQt5OpenGLExtensions.a, libQt5OpenGL.so,
|
---|
547 | libQt5PlatformSupport.a, libQt5Positioning.so, libQt5PrintSupport.so,
|
---|
548 | libQt5QmlDevTools.a, libQt5Qml.so, libQt5QuickParticles.so,
|
---|
549 | libQt5Quick.so, libQt5QuickTest.so, libQt5QuickWidgets.so,
|
---|
550 | libQt5Script.so, libQt5ScriptTools.so, libQt5Sensors.so,
|
---|
551 | libQt5SerialPort.so, libQt5Sql.so, libQt5Svg.so, libQt5Test.so,
|
---|
552 | libQt5UiTools.a, libQt5WebChannel.so, libQt5WebEngineCore.so,
|
---|
553 | libQt5WebEngine.so, libQt5WebEngineWidgets.so, libQt5WebKit.so,
|
---|
554 | libQt5WebKitWidgets.so, libQt5WebSockets.so, libQt5Widgets.so,
|
---|
555 | libQt5X11Extras.so, libQt5XmlPatterns.so, libQt5Xml.so, and several
|
---|
556 | plugins under /opt/qt5/{imports,plugins,qml}
|
---|
557 | </seg>
|
---|
558 | <seg>
|
---|
559 | /usr/include/qt5,
|
---|
560 | /usr/lib/qt5,
|
---|
561 | /usr/share/doc/qt5, and
|
---|
562 | /usr/share/qt5
|
---|
563 | OR
|
---|
564 | /opt/qt5 and
|
---|
565 | /opt/qt-&qt5-version;
|
---|
566 | </seg>
|
---|
567 | </seglistitem>
|
---|
568 | </segmentedlist>
|
---|
569 |
|
---|
570 | <variablelist>
|
---|
571 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
572 | <?dbfo list-presentation="list"?>
|
---|
573 | <?dbhtml list-presentation="table"?>
|
---|
574 |
|
---|
575 | <varlistentry id="assistant-qt5">
|
---|
576 | <term><command>assistant</command></term>
|
---|
577 | <listitem>
|
---|
578 | <para>
|
---|
579 | is a tool for presenting on-line documentation.
|
---|
580 | </para>
|
---|
581 | <indexterm zone="qt5 assistant-qt5">
|
---|
582 | <primary sortas="b-assistant-qt5">assistant</primary>
|
---|
583 | </indexterm>
|
---|
584 | </listitem>
|
---|
585 | </varlistentry>
|
---|
586 |
|
---|
587 | <varlistentry id="designer-qt5">
|
---|
588 | <term><command>designer</command></term>
|
---|
589 | <listitem>
|
---|
590 | <para>
|
---|
591 | is a full-fledged GUI builder. It includes
|
---|
592 | powerful features such as preview mode, automatic widget
|
---|
593 | layout, support for custom widgets, and an advanced
|
---|
594 | property editor.
|
---|
595 | </para>
|
---|
596 | <indexterm zone="qt5 designer-qt5">
|
---|
597 | <primary sortas="b-designer-qt5">designer</primary>
|
---|
598 | </indexterm>
|
---|
599 | </listitem>
|
---|
600 | </varlistentry>
|
---|
601 |
|
---|
602 | <varlistentry id="lconvert-qt5">
|
---|
603 | <term><command>lconvert</command></term>
|
---|
604 | <listitem>
|
---|
605 | <para>
|
---|
606 | is part of Qt5's Linguist tool chain. It can be used as a
|
---|
607 | standalone tool to convert and filter translation data files.
|
---|
608 | </para>
|
---|
609 | <indexterm zone="qt5 lconvert-qt5">
|
---|
610 | <primary sortas="b-lconvert-qt5">lconvert</primary>
|
---|
611 | </indexterm>
|
---|
612 | </listitem>
|
---|
613 | </varlistentry>
|
---|
614 |
|
---|
615 | <varlistentry id="linguist-qt5">
|
---|
616 | <term><command>linguist</command></term>
|
---|
617 | <listitem>
|
---|
618 | <para>
|
---|
619 | provides support for translating applications into
|
---|
620 | local languages.
|
---|
621 | </para>
|
---|
622 | <indexterm zone="qt5 linguist-qt5">
|
---|
623 | <primary sortas="b-linguist-qt5">linguist</primary>
|
---|
624 | </indexterm>
|
---|
625 | </listitem>
|
---|
626 | </varlistentry>
|
---|
627 |
|
---|
628 | <varlistentry id="lrelease-qt5">
|
---|
629 | <term><command>lrelease</command></term>
|
---|
630 | <listitem>
|
---|
631 | <para>
|
---|
632 | is a simple command line tool. It reads a Qt project
|
---|
633 | file and produces message files used by the application.
|
---|
634 | </para>
|
---|
635 | <indexterm zone="qt5 lrelease-qt5">
|
---|
636 | <primary sortas="b-lrelease-qt5">lrelease</primary>
|
---|
637 | </indexterm>
|
---|
638 | </listitem>
|
---|
639 | </varlistentry>
|
---|
640 |
|
---|
641 | <varlistentry id="lupdate-qt5">
|
---|
642 | <term><command>lupdate</command></term>
|
---|
643 | <listitem>
|
---|
644 | <para>
|
---|
645 | reads a Qt project file, finds the translatable
|
---|
646 | strings in the specified source, header and Qt Designer
|
---|
647 | interface files, and produces or updates the translation
|
---|
648 | files listed in the project file.
|
---|
649 | </para>
|
---|
650 | <indexterm zone="qt5 lupdate-qt5">
|
---|
651 | <primary sortas="b-lupdate-qt5">lupdate</primary>
|
---|
652 | </indexterm>
|
---|
653 | </listitem>
|
---|
654 | </varlistentry>
|
---|
655 |
|
---|
656 | <varlistentry id="moc-qt5">
|
---|
657 | <term><command>moc</command></term>
|
---|
658 | <listitem>
|
---|
659 | <para>
|
---|
660 | generates Qt meta object support code.
|
---|
661 | </para>
|
---|
662 | <indexterm zone="qt5 moc-qt5">
|
---|
663 | <primary sortas="b-moc-qt5">moc</primary>
|
---|
664 | </indexterm>
|
---|
665 | </listitem>
|
---|
666 | </varlistentry>
|
---|
667 |
|
---|
668 | <varlistentry id="pixeltool-qt5">
|
---|
669 | <term><command>pixeltool</command></term>
|
---|
670 | <listitem>
|
---|
671 | <para>
|
---|
672 | is a desktop magnifier and as you move your mouse around
|
---|
673 | the screen it will show the magnified contents in its window.
|
---|
674 | </para>
|
---|
675 | <indexterm zone="qt5 pixeltool-qt5">
|
---|
676 | <primary sortas="b-pixeltool-qt5">pixeltool</primary>
|
---|
677 | </indexterm>
|
---|
678 | </listitem>
|
---|
679 | </varlistentry>
|
---|
680 |
|
---|
681 | <varlistentry id="qdbus-qt5">
|
---|
682 | <term><command>qdbus</command></term>
|
---|
683 | <listitem>
|
---|
684 | <para>
|
---|
685 | lists available services, object paths, methods, signals, and
|
---|
686 | properties of objects on a bus.
|
---|
687 | </para>
|
---|
688 | <indexterm zone="qt5 qdbus-qt5">
|
---|
689 | <primary sortas="b-qdbus-qt5">qdbus</primary>
|
---|
690 | </indexterm>
|
---|
691 | </listitem>
|
---|
692 | </varlistentry>
|
---|
693 |
|
---|
694 | <varlistentry id="qmake-qt5">
|
---|
695 | <term><command>qmake</command></term>
|
---|
696 | <listitem>
|
---|
697 | <para>
|
---|
698 | uses information stored in project files to
|
---|
699 | determine what should go in the makefiles it
|
---|
700 | generates.
|
---|
701 | </para>
|
---|
702 | <indexterm zone="qt5 qmake-qt5">
|
---|
703 | <primary sortas="b-qmake-qt5">qmake</primary>
|
---|
704 | </indexterm>
|
---|
705 | </listitem>
|
---|
706 | </varlistentry>
|
---|
707 |
|
---|
708 | <varlistentry id="rcc-qt5">
|
---|
709 | <term><command>rcc</command></term>
|
---|
710 | <listitem>
|
---|
711 | <para>
|
---|
712 | is a resource compiler used in conjunction with designer.
|
---|
713 | </para>
|
---|
714 | <indexterm zone="qt5 rcc-qt5">
|
---|
715 | <primary sortas="b-rcc-qt5">rcc</primary>
|
---|
716 | </indexterm>
|
---|
717 | </listitem>
|
---|
718 | </varlistentry>
|
---|
719 |
|
---|
720 | <varlistentry id="uic-qt5">
|
---|
721 | <term><command>uic</command></term>
|
---|
722 | <listitem>
|
---|
723 | <para>
|
---|
724 | is a Qt user interface compiler.
|
---|
725 | </para>
|
---|
726 | <indexterm zone="qt5 uic-qt5">
|
---|
727 | <primary sortas="b-uic-qt5">uic</primary>
|
---|
728 | </indexterm>
|
---|
729 | </listitem>
|
---|
730 | </varlistentry>
|
---|
731 |
|
---|
732 | </variablelist>
|
---|
733 |
|
---|
734 | </sect2>
|
---|
735 |
|
---|
736 | </sect1>
|
---|