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.2">
|
---|
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 "8f60b47ca9461831d940f579ee90517e">
|
---|
13 | <!ENTITY qt5-size "166 MB">
|
---|
14 | <!ENTITY qt5-buildsize "2.6 GB (160 MB installed)">
|
---|
15 | <!ENTITY qt5-time "60 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 Qt5</title>
|
---|
34 |
|
---|
35 | <para>
|
---|
36 | <application>Qt5</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
|
---|
39 | <application>Qt5</application> is classified as a widget toolkit), and
|
---|
40 | also used for developing non-GUI programs such as command-line tools
|
---|
41 | and consoles for servers. One of the major users of
|
---|
42 | <application>Qt5</application> is <application>KDE Frameworks 5</application>.
|
---|
43 | </para>
|
---|
44 |
|
---|
45 | &lfs74_checked;
|
---|
46 |
|
---|
47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
48 | <itemizedlist spacing="compact">
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download (HTTP): <ulink url="&qt5-download-http;"/>
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download (FTP): <ulink url="&qt5-download-ftp;"/>
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Download MD5 sum: &qt5-md5sum;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Download size: &qt5-size;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | <listitem>
|
---|
70 | <para>
|
---|
71 | Estimated disk space required: &qt5-buildsize;
|
---|
72 | </para>
|
---|
73 | </listitem>
|
---|
74 | <listitem>
|
---|
75 | <para>
|
---|
76 | Estimated build time: &qt5-time;
|
---|
77 | </para>
|
---|
78 | </listitem>
|
---|
79 | </itemizedlist>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect3">Qt5 Dependencies</bridgehead>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
84 | <para role="required">
|
---|
85 | <xref linkend="alsa-lib"/>,
|
---|
86 | <xref linkend="mesalib"/>,
|
---|
87 | <xref linkend="xcb-util-image"/>,
|
---|
88 | <xref linkend="xcb-util-keysyms"/>,
|
---|
89 | <xref linkend="xcb-util-renderutil"/>, and
|
---|
90 | <xref linkend="xcb-util-wm"/>
|
---|
91 | </para>
|
---|
92 |
|
---|
93 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
94 | <para role="recommended">
|
---|
95 | <xref linkend="cacerts"/>,
|
---|
96 | <xref linkend="cups"/>,
|
---|
97 | <xref linkend="dbus"/>,
|
---|
98 | <xref linkend="glib2"/>,
|
---|
99 | <xref linkend="gst-plugins-base"/>,
|
---|
100 | <xref linkend="icu"/>,
|
---|
101 | <xref linkend="libjpeg"/>,
|
---|
102 | <xref linkend="libmng"/>,
|
---|
103 | <xref linkend="libpng"/>,
|
---|
104 | <xref linkend="libtiff"/>,
|
---|
105 | <xref linkend="openssl"/>,
|
---|
106 | <xref linkend="pcre"/>, and
|
---|
107 | <xref linkend="sqlite"/>
|
---|
108 | </para>
|
---|
109 |
|
---|
110 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
111 | <para role="optional">
|
---|
112 | <xref linkend="gst10-plugins-base"/> (QtWebKit HTML5 Video Support),
|
---|
113 | <xref linkend="gtk2"/> (GTK+ Theme Support),
|
---|
114 | <ulink url="http://xkbcommon.org/">libxkbcommon</ulink>,
|
---|
115 | <xref linkend="mariadb"/> or <xref linkend="mysql"/>,
|
---|
116 | <xref linkend="postgresql"/>,
|
---|
117 | <xref linkend="pulseaudio"/>, and
|
---|
118 | <xref linkend="unixodbc"/>
|
---|
119 | </para>
|
---|
120 |
|
---|
121 | <bridgehead renderas="sect4">Required (Runtime)</bridgehead>
|
---|
122 | <para role="required">
|
---|
123 | <xref linkend="qtchooser"/> (if installing both
|
---|
124 | <application>Qt4</application> and <application>Qt5</application>
|
---|
125 | and installing in <filename class="directory">/usr</filename>)
|
---|
126 | </para>
|
---|
127 |
|
---|
128 | <para condition="html" role="usernotes">User Notes:
|
---|
129 | <ulink url="&blfs-wiki;/qt5"/>
|
---|
130 | </para>
|
---|
131 | </sect2>
|
---|
132 |
|
---|
133 | <sect2 role="installation">
|
---|
134 | <title>Installation of Qt5</title>
|
---|
135 |
|
---|
136 | <para>
|
---|
137 | There are several ways to install a complicated package such as
|
---|
138 | <application>Qt5</application>. The files are not completely position
|
---|
139 | independent. Installation procedures execute the program
|
---|
140 | <command>pkg-config</command> to determine the location of package
|
---|
141 | executables, libraries, headers, and other files. For
|
---|
142 | <application>Qt5</application>, <command>pkg-config</command> will look
|
---|
143 | for the appropriate <filename>lib/pkgconfig/Qt5*.pc</filename> files
|
---|
144 | which must be modified if relocating the package. These files are set up
|
---|
145 | correctly by the build process.
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | <para>
|
---|
149 | The default installation places the files in <filename
|
---|
150 | class="directory">/usr/local/qt</filename>. Many
|
---|
151 | distributions place the files in the system's <filename
|
---|
152 | class="directory">/usr</filename> hierarchy. The package can
|
---|
153 | also be installed in an arbitrary directory.
|
---|
154 | </para>
|
---|
155 |
|
---|
156 | <para>
|
---|
157 | The advantage of installing in <filename
|
---|
158 | class="directory">/usr</filename> is that no updates to the
|
---|
159 | <filename>/etc/ld.so.conf</filename> or
|
---|
160 | <filename>/etc/man_db.conf</filename> files are required. The package
|
---|
161 | files are distributed within several subdirectories of the <filename
|
---|
162 | class="directory">/usr</filename> hierarchy. This is the method that
|
---|
163 | most distributions use.
|
---|
164 | </para>
|
---|
165 |
|
---|
166 | <para>
|
---|
167 | The disadvantage of installing in <filename
|
---|
168 | class="directory">/usr</filename> is that the executable filenames
|
---|
169 | for <application>Qt4</application> and <application>Qt5</application>
|
---|
170 | conflict if both packages are installed in the
|
---|
171 | same directory. The instructions below give a workaround for
|
---|
172 | this problem using the helper programs from <xref linkend="qtchooser"/>.
|
---|
173 | <!-- renaming is not required because of this, only using a different
|
---|
174 | bindir is -->
|
---|
175 | </para>
|
---|
176 |
|
---|
177 | <para>
|
---|
178 | The advantage of installing <application>Qt5</application> in a custom
|
---|
179 | directory such as <filename
|
---|
180 | class="directory">/opt/qt-&qt5-version;</filename> is that it keeps all
|
---|
181 | the package files consolidated in a dedicated directory hierarchy. By
|
---|
182 | using this method, an update can be made without overwriting a previous
|
---|
183 | installation and users can easily revert to a previous version by
|
---|
184 | changing one symbolic link or merely changing the <envar>PATH</envar>
|
---|
185 | variable. It also allows a developer to maintain multiple versions of
|
---|
186 | <application>Qt4</application> or <application>Qt5</application>
|
---|
187 | for testing.
|
---|
188 | </para>
|
---|
189 |
|
---|
190 | <caution>
|
---|
191 | <para>
|
---|
192 | If you did not install some of the recommended dependencies, examine
|
---|
193 | <command>./configure --help</command> output to check how to disable
|
---|
194 | them or use internal versions bundled in the source tarball.
|
---|
195 | </para>
|
---|
196 | </caution>
|
---|
197 |
|
---|
198 | <warning>
|
---|
199 | <para>
|
---|
200 | If <application>Qt5</application> is being reinstalled into the
|
---|
201 | same directory as an existing instance, run the
|
---|
202 | following commands from a console or non-Qt5 based window manager.
|
---|
203 | It overwrites <application>Qt5</application> libraries that should
|
---|
204 | not be in use during the install process.
|
---|
205 | </para>
|
---|
206 | </warning>
|
---|
207 |
|
---|
208 | <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>
|
---|
209 |
|
---|
210 | <para>
|
---|
211 | Install <application>Qt5</application> by running the
|
---|
212 | following commands:
|
---|
213 | </para>
|
---|
214 |
|
---|
215 | <note>
|
---|
216 | <para>
|
---|
217 | If <emphasis>not</emphasis> also installing <application>Qt4</application>
|
---|
218 | into the /usr directory, change the entry for -bindir below to /usr/bin.
|
---|
219 | </para>
|
---|
220 | </note>
|
---|
221 |
|
---|
222 | <screen><userinput>sed -e "s:#if MNG:#if defined(MNG_VERSION_MAJOR)\n&:" \
|
---|
223 | -e "s:#endif:&\n#endif:" \
|
---|
224 | -i qtimageformats/config.tests/libmng/libmng.cpp
|
---|
225 |
|
---|
226 | ./configure -prefix /usr \
|
---|
227 | -sysconfdir /etc/xdg \
|
---|
228 | -bindir /usr/lib/qt5/bin \
|
---|
229 | -headerdir /usr/include/qt5 \
|
---|
230 | -archdatadir /usr/lib/qt5 \
|
---|
231 | -datadir /usr/share/qt5 \
|
---|
232 | -docdir /usr/share/doc/qt5 \
|
---|
233 | -translationdir /usr/share/qt5/translations \
|
---|
234 | -examplesdir /usr/share/doc/qt5/examples \
|
---|
235 | -confirm-license \
|
---|
236 | -opensource \
|
---|
237 | -dbus-linked \
|
---|
238 | -openssl-linked \
|
---|
239 | -system-sqlite \
|
---|
240 | -no-nis \
|
---|
241 | -nomake examples \
|
---|
242 | -opengl es2 \
|
---|
243 | -optimized-qmake &&
|
---|
244 | make</userinput></screen>
|
---|
245 |
|
---|
246 | <para>
|
---|
247 | Remove references to the build directory from the
|
---|
248 | <filename class="extension">.pc</filename> files by running
|
---|
249 | the following command:
|
---|
250 | </para>
|
---|
251 |
|
---|
252 | <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
|
---|
253 |
|
---|
254 | <para>
|
---|
255 | This package does not come with a test suite.
|
---|
256 | </para>
|
---|
257 |
|
---|
258 | <para>
|
---|
259 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
260 | </para>
|
---|
261 |
|
---|
262 | <screen role="root"><userinput>make install &&
|
---|
263 | install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
---|
264 | /usr/share/pixmaps/assistant-qt5.png &&
|
---|
265 | install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
---|
266 | /usr/share/pixmaps/designer-qt5.png &&
|
---|
267 | install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
268 | /usr/share/pixmaps/linguist-qt5.png &&
|
---|
269 | install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
270 | /usr/share/pixmaps/qdbusviewer-qt5.png</userinput></screen>
|
---|
271 |
|
---|
272 | <para>
|
---|
273 | Remove references to the build directory from installed files by
|
---|
274 | running the following commands as the
|
---|
275 | <systemitem class="username">root</systemitem> user:
|
---|
276 | </para>
|
---|
277 |
|
---|
278 | <screen role="root"><userinput>sed -i -e "s:$PWD/qtbase:/usr/lib/qt5:g" \
|
---|
279 | /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &&
|
---|
280 | find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -e \
|
---|
281 | '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;</userinput></screen>
|
---|
282 |
|
---|
283 | <para>
|
---|
284 | If you didn't modify the -bindir switch above, symlink the
|
---|
285 | <application>Qt5</application> executables into
|
---|
286 | <filename class="directory">/usr/bin</filename> by running the
|
---|
287 | following commands as the
|
---|
288 | <systemitem class="username">root</systemitem> user:
|
---|
289 | </para>
|
---|
290 |
|
---|
291 | <screen role="root"><userinput>for file in /usr/lib/qt5/bin/*
|
---|
292 | do
|
---|
293 | ln -sfv ../lib/qt5/bin/$(basename $file) /usr/bin/$(basename $file)-qt5
|
---|
294 | done</userinput></screen>
|
---|
295 |
|
---|
296 | <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt5-version;</bridgehead>
|
---|
297 |
|
---|
298 | <para>
|
---|
299 | This section provides an alternate way to install <application>Qt5</application>
|
---|
300 | by installing almost all of the files in the <filename
|
---|
301 | class="directory">/opt</filename> directory. This allows management of all
|
---|
302 | <application>Qt5</application> related files in one unit. For instance, a new
|
---|
303 | version of <application>Qt5</application> can be installed without over-writing
|
---|
304 | the existing installation and entire <application>Qt5</application> instances can
|
---|
305 | be easily removed. However, it has the disadvantage of needing some extra
|
---|
306 | configuration and you need to switch manually between <application>Qt4</application>
|
---|
307 | and <application>Qt5</application> executables when needed.
|
---|
308 | </para>
|
---|
309 |
|
---|
310 | <screen><userinput>sed -e "s:#if MNG:#if defined(MNG_VERSION_MAJOR)\n&:" \
|
---|
311 | -e "s:#endif:&\n#endif:" \
|
---|
312 | -i qtimageformats/config.tests/libmng/libmng.cpp
|
---|
313 |
|
---|
314 | QT5DIR=/opt/qt-&qt5-version;
|
---|
315 |
|
---|
316 | ./configure -prefix $QT5DIR \
|
---|
317 | -sysconfdir /etc/xdg \
|
---|
318 | -confirm-license \
|
---|
319 | -opensource \
|
---|
320 | -dbus-linked \
|
---|
321 | -openssl-linked \
|
---|
322 | -system-sqlite \
|
---|
323 | -plugin-sql-sqlite \
|
---|
324 | -no-nis \
|
---|
325 | -nomake examples \
|
---|
326 | -opengl es2 \
|
---|
327 | -optimized-qmake &&
|
---|
328 | make</userinput></screen>
|
---|
329 |
|
---|
330 | <para>
|
---|
331 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
332 | </para>
|
---|
333 |
|
---|
334 | <screen role="root"><userinput>make install &&
|
---|
335 |
|
---|
336 | install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
---|
337 | /usr/share/pixmaps/assistant-qt5.png &&
|
---|
338 | install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
---|
339 | /usr/share/pixmaps/designer-qt5.png &&
|
---|
340 | install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
341 | /usr/share/pixmaps/linguist-qt5.png &&
|
---|
342 | install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
343 | /usr/share/pixmaps/qdbusviewer-qt5.png</userinput></screen>
|
---|
344 |
|
---|
345 | <para>
|
---|
346 | Remove references to the build directory from installed files by
|
---|
347 | running the following commands as the
|
---|
348 | <systemitem class="username">root</systemitem> user:
|
---|
349 | </para>
|
---|
350 |
|
---|
351 | <screen role="root"><userinput>find $QT5DIR -name qt_lib_bootstrap_private.pri \
|
---|
352 | -exec sed -i -e "s:$PWD/qtbase:/$QT5DIR/lib/:g" {} \; &&
|
---|
353 |
|
---|
354 | find $QT5DIR -name \*.prl \
|
---|
355 | -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
---|
356 |
|
---|
357 | <!-- This is useful for packages looking explicitly for Qt apps with -qt5 suffix,
|
---|
358 | and is *required* for the desktop files below to work correctly. -->
|
---|
359 |
|
---|
360 | <para>
|
---|
361 | Symlink the <application>Qt5</application> executables into
|
---|
362 | <filename class="directory">/usr/bin</filename> by running the
|
---|
363 | following commands as the
|
---|
364 | <systemitem class="username">root</systemitem> user:
|
---|
365 | </para>
|
---|
366 |
|
---|
367 | <screen role="root"><userinput>ln -svf $QT5DIR /opt/qt5 &&
|
---|
368 |
|
---|
369 | for file in /opt/qt5/bin/*; do
|
---|
370 | ln -sfv $file /usr/bin/$(basename $file)-qt5
|
---|
371 | done</userinput></screen>
|
---|
372 |
|
---|
373 | </sect2>
|
---|
374 |
|
---|
375 | <sect2 role="commands">
|
---|
376 | <title>Command Explanations</title>
|
---|
377 |
|
---|
378 | <para>
|
---|
379 | <command>sed -e "..." -e "..." -i ...</command>: This
|
---|
380 | command fixes detection of
|
---|
381 | <application>libmng</application> 2.0.
|
---|
382 | </para>
|
---|
383 |
|
---|
384 | <para>
|
---|
385 | <parameter>-confirm-license</parameter>: Accept license
|
---|
386 | without prompting user during configuration.
|
---|
387 | </para>
|
---|
388 |
|
---|
389 | <para>
|
---|
390 | <parameter>-opensource</parameter>: Install the opensource
|
---|
391 | version of <application>Qt</application>.
|
---|
392 | </para>
|
---|
393 |
|
---|
394 | <para>
|
---|
395 | <parameter>-release</parameter>: This switch disables
|
---|
396 | building with debugging symbols.
|
---|
397 | </para>
|
---|
398 |
|
---|
399 | <para>
|
---|
400 | <parameter>-nomake examples</parameter>: This switch
|
---|
401 | disables building of the example 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-linkend -openssl-linkend</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>-opengl es2</parameter>: This switch enables OpenGL ES2
|
---|
428 | support in <application>Qt5</application>.
|
---|
429 | </para>
|
---|
430 |
|
---|
431 | <para>
|
---|
432 | <parameter>-optimized-qmake</parameter>: This switch enables
|
---|
433 | building of the optimized <command>qmake</command> program.
|
---|
434 | </para>
|
---|
435 |
|
---|
436 | </sect2>
|
---|
437 |
|
---|
438 | <sect2 role="configuration">
|
---|
439 | <title>Configuring Qt5</title>
|
---|
440 |
|
---|
441 | <sect3 id="qt5-config">
|
---|
442 | <title>Configuration Information</title>
|
---|
443 |
|
---|
444 | <para>
|
---|
445 | Create the menu entries for installed applications by running the
|
---|
446 | following commands <systemitem class="username">root</systemitem>
|
---|
447 | user:
|
---|
448 | </para>
|
---|
449 |
|
---|
450 | <screen role="root"><userinput>install -dm755 /usr/share/applications
|
---|
451 | cat > /usr/share/applications/assistant-qt5.desktop << "EOF"
|
---|
452 | <literal>[Desktop Entry]
|
---|
453 | Name=Qt5 Assistant
|
---|
454 | Comment=Shows Qt5 documentation and examples
|
---|
455 | Exec=assistant-qt5
|
---|
456 | Icon=assistant-qt5
|
---|
457 | Terminal=false
|
---|
458 | Encoding=UTF-8
|
---|
459 | Type=Application
|
---|
460 | Categories=Qt;Development;Documentation;</literal>
|
---|
461 | EOF
|
---|
462 | cat > /usr/share/applications/designer-qt5.desktop << "EOF"
|
---|
463 | <literal>[Desktop Entry]
|
---|
464 | Name=Qt5 Designer
|
---|
465 | GenericName=Interface Designer
|
---|
466 | Comment=Design GUIs for Qt5 applications
|
---|
467 | Exec=designer-qt5
|
---|
468 | Icon=designer-qt5
|
---|
469 | MimeType=application/x-designer;
|
---|
470 | Terminal=false
|
---|
471 | Encoding=UTF-8
|
---|
472 | Type=Application
|
---|
473 | Categories=Qt;Development;</literal>
|
---|
474 | EOF
|
---|
475 | cat > /usr/share/applications/linguist-qt5.desktop << "EOF"
|
---|
476 | <literal>[Desktop Entry]
|
---|
477 | Name=Qt5 Linguist
|
---|
478 | Comment=Add translations to Qt5 applications
|
---|
479 | Exec=linguist-qt5
|
---|
480 | Icon=linguist-qt5
|
---|
481 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
482 | Terminal=false
|
---|
483 | Encoding=UTF-8
|
---|
484 | Type=Application
|
---|
485 | Categories=Qt;Development;</literal>
|
---|
486 | EOF
|
---|
487 | cat > /usr/share/applications/qdbusviewer-qt5.desktop << "EOF"
|
---|
488 | <literal>[Desktop Entry]
|
---|
489 | Name=Qt5 QDbusViewer
|
---|
490 | GenericName=D-Bus Debugger
|
---|
491 | Comment=Debug D-Bus applications
|
---|
492 | Exec=qdbusviewer-qt5
|
---|
493 | Icon=qdbusviewer-qt5
|
---|
494 | Terminal=false
|
---|
495 | Encoding=UTF-8
|
---|
496 | Type=Application
|
---|
497 | Categories=Qt;Development;Debugger;</literal>
|
---|
498 | EOF</userinput></screen>
|
---|
499 |
|
---|
500 | <!-- No package uses this at the moment.
|
---|
501 |
|
---|
502 | <para>
|
---|
503 | If you installed <application>Qt5</application> in
|
---|
504 | <filename class="directory">/usr</filename>, create an
|
---|
505 | environment variable needed by certain packages.
|
---|
506 | As the <systemitem class="username">root</systemitem> user:
|
---|
507 | </para>
|
---|
508 |
|
---|
509 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
510 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
511 |
|
---|
512 | QTDIR=/usr
|
---|
513 |
|
---|
514 | export QT5DIR
|
---|
515 |
|
---|
516 | # End /etc/profile.d/qt5.sh</literal>
|
---|
517 | EOF</userinput></screen>
|
---|
518 |
|
---|
519 | -->
|
---|
520 |
|
---|
521 | <note>
|
---|
522 | <para>
|
---|
523 | If you have installed <application>Qt5</application> in
|
---|
524 | <filename class="directory">/usr</filename>, you can skip
|
---|
525 | rest of this section.
|
---|
526 | </para>
|
---|
527 | </note>
|
---|
528 |
|
---|
529 | <para>
|
---|
530 | If you installed <application>Qt5</application> in a location other
|
---|
531 | than <filename class="directory">/usr</filename>, you need to update the
|
---|
532 | following configuration files so that <application>Qt5</application> is
|
---|
533 | correctly found by other packages and system processes.
|
---|
534 | </para>
|
---|
535 |
|
---|
536 | <para>
|
---|
537 | As the <systemitem class="username">root</systemitem> user, update
|
---|
538 | the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
---|
539 | run-time cache file:
|
---|
540 | </para>
|
---|
541 |
|
---|
542 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
543 | <literal># Begin Qt addition
|
---|
544 |
|
---|
545 | /opt/qt5/lib
|
---|
546 |
|
---|
547 | # End Qt addition</literal>
|
---|
548 | EOF
|
---|
549 |
|
---|
550 | ldconfig</userinput></screen>
|
---|
551 |
|
---|
552 | <indexterm zone="qt5 qt5-config">
|
---|
553 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
554 | </indexterm>
|
---|
555 |
|
---|
556 | <para>
|
---|
557 | As the <systemitem class="username">root</systemitem> user, create
|
---|
558 | the <filename>/etc/profile.d/qt5.sh</filename> file:
|
---|
559 | </para>
|
---|
560 |
|
---|
561 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
562 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
563 |
|
---|
564 | QT5DIR=/opt/qt5
|
---|
565 |
|
---|
566 | pathappend /opt/qt5/bin PATH
|
---|
567 | pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
|
---|
568 |
|
---|
569 | export QT5DIR
|
---|
570 |
|
---|
571 | # End /etc/profile.d/qt5.sh</literal>
|
---|
572 | EOF</userinput></screen>
|
---|
573 |
|
---|
574 | <note>
|
---|
575 | <para>
|
---|
576 | If you also installed <application>Qt4</application> and need to use
|
---|
577 | the <application>Qt5</application> version of an executable such as
|
---|
578 | <command>qmake</command> for building a program, make sure that
|
---|
579 | the <application>Qt5</application> bin directory is listed prior to
|
---|
580 | the <application>Qt5</application> bin directory in the
|
---|
581 | <envar>PATH</envar> variable.
|
---|
582 | </para>
|
---|
583 | </note>
|
---|
584 |
|
---|
585 | </sect3>
|
---|
586 |
|
---|
587 | </sect2>
|
---|
588 |
|
---|
589 | <sect2 role="content">
|
---|
590 | <title>Contents</title>
|
---|
591 |
|
---|
592 | <segmentedlist>
|
---|
593 | <segtitle>Installed Programs</segtitle>
|
---|
594 | <segtitle>Installed Libraries</segtitle>
|
---|
595 | <segtitle>Installed Directories</segtitle>
|
---|
596 |
|
---|
597 | <seglistitem>
|
---|
598 | <seg>
|
---|
599 | assistant-qt5, designer-qt5, lconvert-qt5, linguist-qt5, lrelease-qt5,
|
---|
600 | lupdate-qt5, moc-qt5, pixeltool-qt5, qcollectiongenerator-qt5, qdbuscpp2xml-qt5,
|
---|
601 | qdbus-qt5, qdbusviewer-qt5, qdbusxml2cpp-qt5, qdoc-qt5, qhelpconverter-qt5,
|
---|
602 | qhelpgenerator-qt5, qmake-qt5, qml1plugindump-qt5, qmlbundle-qt5,
|
---|
603 | qmlimportscanner-qt5, qmlmin-qt5, qmlplugindump-qt5, qmlprofiler-qt5, qml-qt5,
|
---|
604 | qmlscene-qt5, qmltestrunner-qt5, qmlviewer-qt5, qtpaths-qt5, rcc-qt5,
|
---|
605 | syncqt.pl-qt5, uic-qt5, xmlpatterns-qt5, and xmlpatternsvalidator-qt5
|
---|
606 | </seg>
|
---|
607 | <seg>
|
---|
608 | libqgsttools_p.so, libQt5Bluetooth.so, libQt5Bootstrap.a, libQt5CLucene.so,
|
---|
609 | libQt5Concurrent.so, libQt5Core.so, libQt5DBus.so, libQt5Declarative.so,
|
---|
610 | libQt5DesignerComponents.so, libQt5Designer.so, libQt5Gui.so, libQt5Help.so,
|
---|
611 | libQt5MultimediaQuick_p.so, libQt5Multimedia.so, libQt5MultimediaWidgets.so,
|
---|
612 | libQt5Network.so, libQt5Nfc.so, libQt5OpenGLExtensions.a, libQt5OpenGL.so,
|
---|
613 | libQt5PlatformSupport.a, libQt5Positioning.so, libQt5PrintSupport.so,
|
---|
614 | libQt5QmlDevTools.a, libQt5Qml.so, libQt5QuickParticles.so, libQt5Quick.so,
|
---|
615 | libQt5QuickTest.so, libQt5Script.so, libQt5ScriptTools.so, libQt5Sensors.so,
|
---|
616 | libQt5SerialPort.so, libQt5Sql.so, libQt5Svg.so, libQt5Test.so, libQt5UiTools.a,
|
---|
617 | libQt5WebKit.so, libQt5WebKitWidgets.so, libQt5Widgets.so, libQt5X11Extras.so,
|
---|
618 | libQt5XmlPatterns.so, and libQt5Xml.so
|
---|
619 | </seg>
|
---|
620 | <seg>
|
---|
621 | /usr/include/qt5,
|
---|
622 | /usr/lib/qt5,
|
---|
623 | /usr/share/doc/qt5, and
|
---|
624 | /usr/share/qt5
|
---|
625 | </seg>
|
---|
626 | </seglistitem>
|
---|
627 | </segmentedlist>
|
---|
628 |
|
---|
629 | <variablelist>
|
---|
630 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
631 | <?dbfo list-presentation="list"?>
|
---|
632 | <?dbhtml list-presentation="table"?>
|
---|
633 |
|
---|
634 | <varlistentry id="assistant-qt5">
|
---|
635 | <term><command>assistant-qt5</command></term>
|
---|
636 | <listitem>
|
---|
637 | <para>
|
---|
638 | is a tool for presenting on-line documentation.
|
---|
639 | </para>
|
---|
640 | <indexterm zone="qt5 assistant-qt5">
|
---|
641 | <primary sortas="b-assistant-qt5">assistant-qt5</primary>
|
---|
642 | </indexterm>
|
---|
643 | </listitem>
|
---|
644 | </varlistentry>
|
---|
645 |
|
---|
646 | <varlistentry id="designer-qt5">
|
---|
647 | <term><command>designer-qt5</command></term>
|
---|
648 | <listitem>
|
---|
649 | <para>
|
---|
650 | is a full-fledged GUI builder. It includes
|
---|
651 | powerful features such as preview mode, automatic widget
|
---|
652 | layout, support for custom widgets, and an advanced
|
---|
653 | property editor.
|
---|
654 | </para>
|
---|
655 | <indexterm zone="qt5 designer-qt5">
|
---|
656 | <primary sortas="b-designer-qt5">designer-qt5</primary>
|
---|
657 | </indexterm>
|
---|
658 | </listitem>
|
---|
659 | </varlistentry>
|
---|
660 |
|
---|
661 | <varlistentry id="linguist-qt5">
|
---|
662 | <term><command>linguist-qt5</command></term>
|
---|
663 | <listitem>
|
---|
664 | <para>
|
---|
665 | provides support for translating applications into
|
---|
666 | local languages.
|
---|
667 | </para>
|
---|
668 | <indexterm zone="qt5 linguist-qt5">
|
---|
669 | <primary sortas="b-linguist-qt5">linguist-qt5</primary>
|
---|
670 | </indexterm>
|
---|
671 | </listitem>
|
---|
672 | </varlistentry>
|
---|
673 |
|
---|
674 | <varlistentry id="lrelease-qt5">
|
---|
675 | <term><command>lrelease-qt5</command></term>
|
---|
676 | <listitem>
|
---|
677 | <para>
|
---|
678 | is a simple command line tool. It reads a Qt project
|
---|
679 | file and produces message files used by the application.
|
---|
680 | </para>
|
---|
681 | <indexterm zone="qt5 lrelease-qt5">
|
---|
682 | <primary sortas="b-lrelease-qt5">lrelease-qt5</primary>
|
---|
683 | </indexterm>
|
---|
684 | </listitem>
|
---|
685 | </varlistentry>
|
---|
686 |
|
---|
687 | <varlistentry id="lupdate-qt5">
|
---|
688 | <term><command>lupdate-qt5</command></term>
|
---|
689 | <listitem>
|
---|
690 | <para>
|
---|
691 | reads a Qt project file, finds the translatable
|
---|
692 | strings in the specified source, header and Qt Designer
|
---|
693 | interface files, and produces or updates the translation
|
---|
694 | files listed in the project file.
|
---|
695 | </para>
|
---|
696 | <indexterm zone="qt5 lupdate-qt5">
|
---|
697 | <primary sortas="b-lupdate-qt5">lupdate-qt5</primary>
|
---|
698 | </indexterm>
|
---|
699 | </listitem>
|
---|
700 | </varlistentry>
|
---|
701 |
|
---|
702 | <varlistentry id="moc-qt5">
|
---|
703 | <term><command>moc-qt5</command></term>
|
---|
704 | <listitem>
|
---|
705 | <para>
|
---|
706 | generates Qt meta object support code.
|
---|
707 | </para>
|
---|
708 | <indexterm zone="qt5 moc-qt5">
|
---|
709 | <primary sortas="b-moc-qt5">moc-qt5</primary>
|
---|
710 | </indexterm>
|
---|
711 | </listitem>
|
---|
712 | </varlistentry>
|
---|
713 |
|
---|
714 | <varlistentry id="pixeltool-qt5">
|
---|
715 | <term><command>pixeltool-qt5</command></term>
|
---|
716 | <listitem>
|
---|
717 | <para>
|
---|
718 | is a desktop magnifier and as you move your mouse around
|
---|
719 | the screen it will show the magnified contents in its window.
|
---|
720 | </para>
|
---|
721 | <indexterm zone="qt5 pixeltool-qt5">
|
---|
722 | <primary sortas="b-pixeltool-qt5">pixeltool-qt5</primary>
|
---|
723 | </indexterm>
|
---|
724 | </listitem>
|
---|
725 | </varlistentry>
|
---|
726 |
|
---|
727 | <varlistentry id="qmake-qt5">
|
---|
728 | <term><command>qmake-qt5</command></term>
|
---|
729 | <listitem>
|
---|
730 | <para>
|
---|
731 | uses information stored in project files to
|
---|
732 | determine what should go in the makefiles it
|
---|
733 | generates.
|
---|
734 | </para>
|
---|
735 | <indexterm zone="qt5 qmake-qt5">
|
---|
736 | <primary sortas="b-qmake-qt5">qmake-qt5</primary>
|
---|
737 | </indexterm>
|
---|
738 | </listitem>
|
---|
739 | </varlistentry>
|
---|
740 |
|
---|
741 | <varlistentry id="rcc-qt5">
|
---|
742 | <term><command>rcc-qt5</command></term>
|
---|
743 | <listitem>
|
---|
744 | <para>
|
---|
745 | is a resource compiler used in conjunction with designer.
|
---|
746 | </para>
|
---|
747 | <indexterm zone="qt5 rcc-qt5">
|
---|
748 | <primary sortas="b-rcc-qt5">rcc-qt5</primary>
|
---|
749 | </indexterm>
|
---|
750 | </listitem>
|
---|
751 | </varlistentry>
|
---|
752 |
|
---|
753 | <varlistentry id="uic-qt5">
|
---|
754 | <term><command>uic-qt5</command></term>
|
---|
755 | <listitem>
|
---|
756 | <para>
|
---|
757 | is a Qt user interface compiler.
|
---|
758 | </para>
|
---|
759 | <indexterm zone="qt5 uic-qt5">
|
---|
760 | <primary sortas="b-uic-qt5">uic-qt5</primary>
|
---|
761 | </indexterm>
|
---|
762 | </listitem>
|
---|
763 | </varlistentry>
|
---|
764 |
|
---|
765 | </variablelist>
|
---|
766 |
|
---|
767 | </sect2>
|
---|
768 |
|
---|
769 | </sect1>
|
---|