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 "7afb5f9235d8d42b5b6e832442a32a5d">
|
---|
15 | <!ENTITY qt5-size "278 MB">
|
---|
16 | <!ENTITY qt5-buildsize "6.6 GB (172 MB installed)">
|
---|
17 | <!ENTITY qt5-time "69 SBU">
|
---|
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;
|
---|
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 | <ulink url="https://code.google.com/p/ibus/">IBus</ulink>,
|
---|
123 | <ulink url="http://xkbcommon.org/">libxkbcommon</ulink>,
|
---|
124 | <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
|
---|
125 | <xref linkend="postgresql"/>,
|
---|
126 | <xref linkend="pulseaudio"/>, and
|
---|
127 | <xref linkend="unixodbc"/>
|
---|
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 | -optimized-qmake &&
|
---|
200 | make</userinput></screen>
|
---|
201 |
|
---|
202 | <para>
|
---|
203 | This package does not come with a test suite.
|
---|
204 | </para>
|
---|
205 |
|
---|
206 | <para>
|
---|
207 | Remove references to the build directory from the
|
---|
208 | <filename class="extension">.pc</filename> files by running
|
---|
209 | the following command:
|
---|
210 | </para>
|
---|
211 |
|
---|
212 | <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
|
---|
213 |
|
---|
214 | <para>
|
---|
215 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
216 | </para>
|
---|
217 |
|
---|
218 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
219 |
|
---|
220 | <para>
|
---|
221 | Remove references to the build directory from installed files by
|
---|
222 | running the following commands as the
|
---|
223 | <systemitem class="username">root</systemitem> user:
|
---|
224 | </para>
|
---|
225 |
|
---|
226 | <screen role="root"><userinput>sed -e "s:$PWD/qtbase:/usr/lib/qt5:g" \
|
---|
227 | -i /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &&
|
---|
228 |
|
---|
229 | find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -r \
|
---|
230 | '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' {} \;</userinput></screen>
|
---|
231 |
|
---|
232 | <!-- ==== Method 2 ====== -->
|
---|
233 |
|
---|
234 | <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt5-version;</bridgehead>
|
---|
235 |
|
---|
236 | <para>
|
---|
237 | This section provides instructions for installing Qt5 in the
|
---|
238 | <filename class="directory">/opt</filename> directory.
|
---|
239 | </para>
|
---|
240 |
|
---|
241 | <screen><userinput>export QT5DIR=/opt/qt-&qt5-version; &&
|
---|
242 | export QT5LINK=/opt/qt5 &&
|
---|
243 |
|
---|
244 | ./configure -prefix $QT5DIR \
|
---|
245 | -sysconfdir /etc/xdg \
|
---|
246 | -confirm-license \
|
---|
247 | -opensource \
|
---|
248 | -dbus-linked \
|
---|
249 | -openssl-linked \<!--
|
---|
250 | -system-harfbuzz \-->
|
---|
251 | -system-sqlite \
|
---|
252 | -no-nis \
|
---|
253 | -nomake examples \
|
---|
254 | -skip qtwebengine \
|
---|
255 | -optimized-qmake &&
|
---|
256 | make</userinput></screen>
|
---|
257 |
|
---|
258 | <para>
|
---|
259 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
260 | </para>
|
---|
261 |
|
---|
262 | <screen role="root"><userinput>make install &&
|
---|
263 | ln -svfn $QT5DIR /opt/qt5</userinput></screen>
|
---|
264 |
|
---|
265 | <para>
|
---|
266 | Remove references to the build directory from installed files by
|
---|
267 | running the following commands as the
|
---|
268 | <systemitem class="username">root</systemitem> user:
|
---|
269 | </para>
|
---|
270 |
|
---|
271 | <screen role="root"><userinput>find $QT5DIR -name qt_lib_bootstrap_private.pri \
|
---|
272 | -exec sed -i -e "s:$PWD/qtbase:/$QT5DIR/lib/:g" {} \; &&
|
---|
273 |
|
---|
274 | find $QT5DIR -name \*.prl \
|
---|
275 | -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
---|
276 |
|
---|
277 | <!-- This is useful for packages looking explicitly for Qt apps with -qt5 suffix.
|
---|
278 |
|
---|
279 | <para>
|
---|
280 | Symlink the <application>Qt5</application> executables into
|
---|
281 | <filename class="directory">/usr/bin</filename> by running the
|
---|
282 | following commands as the
|
---|
283 | <systemitem class="username">root</systemitem> user:
|
---|
284 | </para>
|
---|
285 |
|
---|
286 | <screen role="root"><userinput>ln -svf $QT5DIR /opt/qt5 &&
|
---|
287 |
|
---|
288 | for file in /opt/qt5/bin/*; do
|
---|
289 | ln -sfv $file /usr/bin/$(basename $file)-qt5
|
---|
290 | done</userinput></screen> -->
|
---|
291 |
|
---|
292 | <!-- ==== Common ====== -->
|
---|
293 | <bridgehead renderas="sect3">Continuing for Both Methods</bridgehead>
|
---|
294 |
|
---|
295 | <para>
|
---|
296 | For all methods, install images and create the menu entries
|
---|
297 | for installed applications. Be sure that the <envar>QT5LINK</envar>
|
---|
298 | variable is defined in root's environment and
|
---|
299 | as the <systemitem class="username">root</systemitem> user:
|
---|
300 | </para>
|
---|
301 |
|
---|
302 | <screen role="root"><userinput>install -v -dm755 /usr/share/pixmaps/ &&
|
---|
303 |
|
---|
304 | install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
---|
305 | /usr/share/pixmaps/assistant-qt5.png &&
|
---|
306 |
|
---|
307 | install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
---|
308 | /usr/share/pixmaps/designer-qt5.png &&
|
---|
309 |
|
---|
310 | install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
311 | /usr/share/pixmaps/linguist-qt5.png &&
|
---|
312 |
|
---|
313 | install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
314 | /usr/share/pixmaps/qdbusviewer-qt5.png &&
|
---|
315 |
|
---|
316 | install -dm755 /usr/share/applications &&
|
---|
317 |
|
---|
318 | cat > /usr/share/applications/assistant-qt5.desktop << EOF
|
---|
319 | <literal>[Desktop Entry]
|
---|
320 | Name=Qt5 Assistant
|
---|
321 | Comment=Shows Qt5 documentation and examples
|
---|
322 | Exec=$QT5LINK/bin/assistant
|
---|
323 | Icon=assistant-qt5.png
|
---|
324 | Terminal=false
|
---|
325 | Encoding=UTF-8
|
---|
326 | Type=Application
|
---|
327 | Categories=Qt;Development;Documentation;</literal>
|
---|
328 | EOF
|
---|
329 |
|
---|
330 | cat > /usr/share/applications/designer-qt5.desktop << EOF
|
---|
331 | <literal>[Desktop Entry]
|
---|
332 | Name=Qt5 Designer
|
---|
333 | GenericName=Interface Designer
|
---|
334 | Comment=Design GUIs for Qt5 applications
|
---|
335 | Exec=$QT5LINK/bin/designer
|
---|
336 | Icon=designer-qt5.png
|
---|
337 | MimeType=application/x-designer;
|
---|
338 | Terminal=false
|
---|
339 | Encoding=UTF-8
|
---|
340 | Type=Application
|
---|
341 | Categories=Qt;Development;</literal>
|
---|
342 | EOF
|
---|
343 |
|
---|
344 | cat > /usr/share/applications/linguist-qt5.desktop << EOF
|
---|
345 | <literal>[Desktop Entry]
|
---|
346 | Name=Qt5 Linguist
|
---|
347 | Comment=Add translations to Qt5 applications
|
---|
348 | Exec=$QT5LINK/bin/linguist
|
---|
349 | Icon=linguist-qt5.png
|
---|
350 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
351 | Terminal=false
|
---|
352 | Encoding=UTF-8
|
---|
353 | Type=Application
|
---|
354 | Categories=Qt;Development;</literal>
|
---|
355 | EOF
|
---|
356 |
|
---|
357 | cat > /usr/share/applications/qdbusviewer-qt5.desktop << EOF
|
---|
358 | <literal>[Desktop Entry]
|
---|
359 | Name=Qt5 QDbusViewer
|
---|
360 | GenericName=D-Bus Debugger
|
---|
361 | Comment=Debug D-Bus applications
|
---|
362 | Exec=$QT5LINK/bin/qdbusviewer
|
---|
363 | Icon=qdbusviewer-qt5.png
|
---|
364 | Terminal=false
|
---|
365 | Encoding=UTF-8
|
---|
366 | Type=Application
|
---|
367 | Categories=Qt;Development;Debugger;</literal>
|
---|
368 | EOF</userinput></screen>
|
---|
369 |
|
---|
370 | </sect2>
|
---|
371 |
|
---|
372 | <sect2 role="commands">
|
---|
373 | <title>Command Explanations</title>
|
---|
374 |
|
---|
375 | <para>
|
---|
376 | <parameter>-confirm-license</parameter>: Accept license
|
---|
377 | without prompting user during configuration.
|
---|
378 | </para>
|
---|
379 |
|
---|
380 | <para>
|
---|
381 | <parameter>-opensource</parameter>: Install the opensource
|
---|
382 | version of <application>Qt</application>.
|
---|
383 | </para>
|
---|
384 |
|
---|
385 | <para>
|
---|
386 | <parameter>-release</parameter>: This switch disables
|
---|
387 | building with debugging symbols.
|
---|
388 | </para>
|
---|
389 |
|
---|
390 | <para>
|
---|
391 | <parameter>-nomake examples</parameter>: This switch
|
---|
392 | disables building of the example programs included
|
---|
393 | in the source tarball. Remove it if you want to build
|
---|
394 | them.
|
---|
395 | </para>
|
---|
396 |
|
---|
397 | <para>
|
---|
398 | <parameter>-system-sqlite</parameter>: This switch enables use
|
---|
399 | of the system version of <application>SQLite</application>.
|
---|
400 | </para>
|
---|
401 |
|
---|
402 | <para>
|
---|
403 | <parameter>-no-nis</parameter>: This switch disables support
|
---|
404 | for Network Information Service (NIS) which has been
|
---|
405 | removed from recent versions of <application>Glibc</application>.
|
---|
406 | </para>
|
---|
407 |
|
---|
408 | <para>
|
---|
409 | <parameter>-dbus-linked -openssl-linked</parameter>: These
|
---|
410 | switches enable explicit linking of the
|
---|
411 | <application>D-Bus</application> and
|
---|
412 | <application>OpenSSL</application> libraries into
|
---|
413 | <application>Qt5</application> libraries instead of
|
---|
414 | <command>dlopen()</command>-ing them.
|
---|
415 | </para>
|
---|
416 |
|
---|
417 | <para>
|
---|
418 | <parameter>-skip qtwebengine</parameter>: This switch disables
|
---|
419 | building the Qt Web Engine. It is not presently used by
|
---|
420 | any applications. Note that building the Qt Web Engine increases the
|
---|
421 | build time and the installed size by almost 50%.
|
---|
422 | </para>
|
---|
423 |
|
---|
424 | <para>
|
---|
425 | <parameter>-optimized-qmake</parameter>: This switch enables
|
---|
426 | building of the optimized <command>qmake</command> program.
|
---|
427 | </para>
|
---|
428 |
|
---|
429 | <para>
|
---|
430 | <option>-system-harfbuzz</option>: This switch enables use
|
---|
431 | of the system version of <application>Harfbuzz</application>
|
---|
432 | which fixes some font rendering issues in
|
---|
433 | <application>Qt5</application> applications but doesn't have all the
|
---|
434 | features that the included one has.
|
---|
435 | </para>
|
---|
436 |
|
---|
437 | </sect2>
|
---|
438 |
|
---|
439 | <sect2 role="configuration">
|
---|
440 | <title>Configuring Qt5</title>
|
---|
441 |
|
---|
442 | <sect3 id="qt5-config">
|
---|
443 | <title>Configuration Information</title>
|
---|
444 |
|
---|
445 | <para>
|
---|
446 | If you installed <application>Qt5</application> in
|
---|
447 | <filename class="directory">/usr</filename>, create an
|
---|
448 | environment variable needed by certain packages.
|
---|
449 | As the <systemitem class="username">root</systemitem> user:
|
---|
450 | </para>
|
---|
451 |
|
---|
452 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
453 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
454 |
|
---|
455 | QT5DIR=/usr
|
---|
456 | export QT5DIR
|
---|
457 |
|
---|
458 | # End /etc/profile.d/qt5.sh</literal>
|
---|
459 | EOF</userinput></screen>
|
---|
460 |
|
---|
461 | <para>
|
---|
462 | If you installed <application>Qt5</application> in a location other
|
---|
463 | than <filename class="directory">/usr</filename>, you need to update the
|
---|
464 | following configuration files so that <application>Qt5</application> is
|
---|
465 | correctly found by other packages and system processes.
|
---|
466 | </para>
|
---|
467 |
|
---|
468 | <para>
|
---|
469 | As the <systemitem class="username">root</systemitem> user, update
|
---|
470 | the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
---|
471 | run-time cache file:
|
---|
472 | </para>
|
---|
473 |
|
---|
474 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
475 | <literal># Begin Qt addition
|
---|
476 |
|
---|
477 | /opt/qt5/lib
|
---|
478 |
|
---|
479 | # End Qt addition</literal>
|
---|
480 | EOF
|
---|
481 |
|
---|
482 | ldconfig</userinput></screen>
|
---|
483 |
|
---|
484 | <indexterm zone="qt5 qt5-config">
|
---|
485 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
486 | </indexterm>
|
---|
487 |
|
---|
488 | <para>
|
---|
489 | As the <systemitem class="username">root</systemitem> user, create
|
---|
490 | the <filename>/etc/profile.d/qt5.sh</filename> file:
|
---|
491 | </para>
|
---|
492 |
|
---|
493 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
494 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
495 |
|
---|
496 | QT5DIR=/opt/qt5
|
---|
497 |
|
---|
498 | pathappend /opt/qt5/bin PATH
|
---|
499 | pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
|
---|
500 |
|
---|
501 | export QT5DIR
|
---|
502 |
|
---|
503 | # End /etc/profile.d/qt5.sh</literal>
|
---|
504 | EOF</userinput></screen>
|
---|
505 |
|
---|
506 | </sect3>
|
---|
507 |
|
---|
508 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
509 | href="../../xincludes/setqt.xml"/>
|
---|
510 | </sect2>
|
---|
511 |
|
---|
512 | <sect2 role="content">
|
---|
513 | <title>Contents</title>
|
---|
514 |
|
---|
515 | <segmentedlist>
|
---|
516 | <segtitle>Installed Programs</segtitle>
|
---|
517 | <segtitle>Installed Libraries</segtitle>
|
---|
518 | <segtitle>Installed Directories</segtitle>
|
---|
519 |
|
---|
520 | <seglistitem>
|
---|
521 | <seg>
|
---|
522 | assistant, designer, lconvert, linguist, lrelease,
|
---|
523 | lupdate, moc, pixeltool, qcollectiongenerator, qdbuscpp2xml,
|
---|
524 | qdbus, qdbusviewer, qdbusxml2cpp, qdoc, qhelpconverter,
|
---|
525 | qhelpgenerator, qlalr, qmake, qml1plugindump, qmlbundle, qmleasing,
|
---|
526 | qmlimportscanner, qmllint, qmlmin, qmlplugindump, qmlprofiler, qml,
|
---|
527 | qmlscene, qmltestrunner, qmlviewer, qtdiag, qtpaths, rcc,
|
---|
528 | syncqt.pl, uic, xmlpatterns, and xmlpatternsvalidator
|
---|
529 | </seg>
|
---|
530 | <seg>
|
---|
531 | libEnginio.so, libqgsttools_p.so, libQt5Bluetooth.so,
|
---|
532 | libQt5Bootstrap.a, libQt5CLucene.so, libQt5Concurrent.so,
|
---|
533 | libQt5Core.so, libQt5DBus.so, libQt5Declarative.so,
|
---|
534 | libQt5DesignerComponents.so, libQt5Designer.so, libQt5Gui.so,
|
---|
535 | libQt5Help.so, libQt5Location.so, libQt5MultimediaQuick_p.so,
|
---|
536 | libQt5Multimedia.so, libQt5MultimediaWidgets.so, libQt5Network.so,
|
---|
537 | libQt5Nfc.so, libQt5OpenGLExtensions.a, libQt5OpenGL.so,
|
---|
538 | libQt5PlatformSupport.a, libQt5Positioning.so, libQt5PrintSupport.so,
|
---|
539 | libQt5QmlDevTools.a, libQt5Qml.so, libQt5QuickParticles.so,
|
---|
540 | libQt5QuickWidgets.so, libQt5Quick.so, libQt5QuickTest.so,
|
---|
541 | libQt5Script.so, libQt5ScriptTools.so, libQt5Sensors.so,
|
---|
542 | libQt5SerialPort.so, libQt5Sql.so, libQt5Svg.so, libQt5Test.so,
|
---|
543 | libQt5UiTools.a, libQt5WebChannel.so, libQt5WebKit.so,
|
---|
544 | libQt5WebKitWidgets.so, libQt5WebSockets.so, libQt5Widgets.so,
|
---|
545 | libQt5X11Extras.so, libQt5XmlPatterns.so, libQt5Xml.so, and
|
---|
546 | several plugins under /opt/qt5/{imports,plugins,qml}
|
---|
547 | </seg>
|
---|
548 | <seg>
|
---|
549 | /usr/include/qt5,
|
---|
550 | /usr/lib/qt5,
|
---|
551 | /usr/share/doc/qt5, and
|
---|
552 | /usr/share/qt5
|
---|
553 | OR
|
---|
554 | /opt/qt5 and
|
---|
555 | /opt/qt-&qt5-version;
|
---|
556 | </seg>
|
---|
557 | </seglistitem>
|
---|
558 | </segmentedlist>
|
---|
559 |
|
---|
560 | <variablelist>
|
---|
561 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
562 | <?dbfo list-presentation="list"?>
|
---|
563 | <?dbhtml list-presentation="table"?>
|
---|
564 |
|
---|
565 | <varlistentry id="assistant-qt5">
|
---|
566 | <term><command>assistant</command></term>
|
---|
567 | <listitem>
|
---|
568 | <para>
|
---|
569 | is a tool for presenting on-line documentation.
|
---|
570 | </para>
|
---|
571 | <indexterm zone="qt5 assistant-qt5">
|
---|
572 | <primary sortas="b-assistant-qt5">assistant</primary>
|
---|
573 | </indexterm>
|
---|
574 | </listitem>
|
---|
575 | </varlistentry>
|
---|
576 |
|
---|
577 | <varlistentry id="designer-qt5">
|
---|
578 | <term><command>designer</command></term>
|
---|
579 | <listitem>
|
---|
580 | <para>
|
---|
581 | is a full-fledged GUI builder. It includes
|
---|
582 | powerful features such as preview mode, automatic widget
|
---|
583 | layout, support for custom widgets, and an advanced
|
---|
584 | property editor.
|
---|
585 | </para>
|
---|
586 | <indexterm zone="qt5 designer-qt5">
|
---|
587 | <primary sortas="b-designer-qt5">designer</primary>
|
---|
588 | </indexterm>
|
---|
589 | </listitem>
|
---|
590 | </varlistentry>
|
---|
591 |
|
---|
592 | <varlistentry id="lconvert-qt5">
|
---|
593 | <term><command>lconvert</command></term>
|
---|
594 | <listitem>
|
---|
595 | <para>
|
---|
596 | is part of Qt5's Linguist tool chain. It can be used as a
|
---|
597 | standalone tool to convert and filter translation data files.
|
---|
598 | </para>
|
---|
599 | <indexterm zone="qt5 lconvert-qt5">
|
---|
600 | <primary sortas="b-lconvert-qt5">lconvert</primary>
|
---|
601 | </indexterm>
|
---|
602 | </listitem>
|
---|
603 | </varlistentry>
|
---|
604 |
|
---|
605 | <varlistentry id="linguist-qt5">
|
---|
606 | <term><command>linguist</command></term>
|
---|
607 | <listitem>
|
---|
608 | <para>
|
---|
609 | provides support for translating applications into
|
---|
610 | local languages.
|
---|
611 | </para>
|
---|
612 | <indexterm zone="qt5 linguist-qt5">
|
---|
613 | <primary sortas="b-linguist-qt5">linguist</primary>
|
---|
614 | </indexterm>
|
---|
615 | </listitem>
|
---|
616 | </varlistentry>
|
---|
617 |
|
---|
618 | <varlistentry id="lrelease-qt5">
|
---|
619 | <term><command>lrelease</command></term>
|
---|
620 | <listitem>
|
---|
621 | <para>
|
---|
622 | is a simple command line tool. It reads a Qt project
|
---|
623 | file and produces message files used by the application.
|
---|
624 | </para>
|
---|
625 | <indexterm zone="qt5 lrelease-qt5">
|
---|
626 | <primary sortas="b-lrelease-qt5">lrelease</primary>
|
---|
627 | </indexterm>
|
---|
628 | </listitem>
|
---|
629 | </varlistentry>
|
---|
630 |
|
---|
631 | <varlistentry id="lupdate-qt5">
|
---|
632 | <term><command>lupdate</command></term>
|
---|
633 | <listitem>
|
---|
634 | <para>
|
---|
635 | reads a Qt project file, finds the translatable
|
---|
636 | strings in the specified source, header and Qt Designer
|
---|
637 | interface files, and produces or updates the translation
|
---|
638 | files listed in the project file.
|
---|
639 | </para>
|
---|
640 | <indexterm zone="qt5 lupdate-qt5">
|
---|
641 | <primary sortas="b-lupdate-qt5">lupdate</primary>
|
---|
642 | </indexterm>
|
---|
643 | </listitem>
|
---|
644 | </varlistentry>
|
---|
645 |
|
---|
646 | <varlistentry id="moc-qt5">
|
---|
647 | <term><command>moc</command></term>
|
---|
648 | <listitem>
|
---|
649 | <para>
|
---|
650 | generates Qt meta object support code.
|
---|
651 | </para>
|
---|
652 | <indexterm zone="qt5 moc-qt5">
|
---|
653 | <primary sortas="b-moc-qt5">moc</primary>
|
---|
654 | </indexterm>
|
---|
655 | </listitem>
|
---|
656 | </varlistentry>
|
---|
657 |
|
---|
658 | <varlistentry id="pixeltool-qt5">
|
---|
659 | <term><command>pixeltool</command></term>
|
---|
660 | <listitem>
|
---|
661 | <para>
|
---|
662 | is a desktop magnifier and as you move your mouse around
|
---|
663 | the screen it will show the magnified contents in its window.
|
---|
664 | </para>
|
---|
665 | <indexterm zone="qt5 pixeltool-qt5">
|
---|
666 | <primary sortas="b-pixeltool-qt5">pixeltool</primary>
|
---|
667 | </indexterm>
|
---|
668 | </listitem>
|
---|
669 | </varlistentry>
|
---|
670 |
|
---|
671 | <varlistentry id="qdbus-qt5">
|
---|
672 | <term><command>qdbus</command></term>
|
---|
673 | <listitem>
|
---|
674 | <para>
|
---|
675 | lists available services, object paths, methods, signals, and
|
---|
676 | properties of objects on a bus.
|
---|
677 | </para>
|
---|
678 | <indexterm zone="qt5 qdbus-qt5">
|
---|
679 | <primary sortas="b-qdbus-qt5">qdbus</primary>
|
---|
680 | </indexterm>
|
---|
681 | </listitem>
|
---|
682 | </varlistentry>
|
---|
683 |
|
---|
684 | <varlistentry id="qmake-qt5">
|
---|
685 | <term><command>qmake</command></term>
|
---|
686 | <listitem>
|
---|
687 | <para>
|
---|
688 | uses information stored in project files to
|
---|
689 | determine what should go in the makefiles it
|
---|
690 | generates.
|
---|
691 | </para>
|
---|
692 | <indexterm zone="qt5 qmake-qt5">
|
---|
693 | <primary sortas="b-qmake-qt5">qmake</primary>
|
---|
694 | </indexterm>
|
---|
695 | </listitem>
|
---|
696 | </varlistentry>
|
---|
697 |
|
---|
698 | <varlistentry id="rcc-qt5">
|
---|
699 | <term><command>rcc</command></term>
|
---|
700 | <listitem>
|
---|
701 | <para>
|
---|
702 | is a resource compiler used in conjunction with designer.
|
---|
703 | </para>
|
---|
704 | <indexterm zone="qt5 rcc-qt5">
|
---|
705 | <primary sortas="b-rcc-qt5">rcc</primary>
|
---|
706 | </indexterm>
|
---|
707 | </listitem>
|
---|
708 | </varlistentry>
|
---|
709 |
|
---|
710 | <varlistentry id="uic-qt5">
|
---|
711 | <term><command>uic</command></term>
|
---|
712 | <listitem>
|
---|
713 | <para>
|
---|
714 | is a Qt user interface compiler.
|
---|
715 | </para>
|
---|
716 | <indexterm zone="qt5 uic-qt5">
|
---|
717 | <primary sortas="b-uic-qt5">uic</primary>
|
---|
718 | </indexterm>
|
---|
719 | </listitem>
|
---|
720 | </varlistentry>
|
---|
721 |
|
---|
722 | </variablelist>
|
---|
723 |
|
---|
724 | </sect2>
|
---|
725 |
|
---|
726 | </sect1>
|
---|