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