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 qt4-download-http
|
---|
8 | "http://download.qt-project.org/official_releases/qt/4.8/&qt4-version;/qt-everywhere-opensource-src-&qt4-version;.tar.gz">
|
---|
9 | <!ENTITY qt4-download-ftp " ">
|
---|
10 | <!ENTITY qt4-md5sum "1864987bdbb2f58f8ae8b350dfdbe133">
|
---|
11 | <!ENTITY qt4-size "231 MB">
|
---|
12 | <!ENTITY qt4-buildsize "1.9 GB">
|
---|
13 | <!ENTITY qt4-time "41 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="qt4" xreflabel="Qt-&qt4-version;">
|
---|
17 | <?dbhtml filename="qt4.html" ?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>Qt-&qt4-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="qt4">
|
---|
27 | <primary sortas="a-Qt">Qt</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to Qt</title>
|
---|
32 |
|
---|
33 | <para>
|
---|
34 | <application>Qt</application> is a cross-platform application
|
---|
35 | framework that is widely used for developing application software
|
---|
36 | with a graphical user interface (GUI) (in which cases Qt is classified
|
---|
37 | as a widget toolkit), and also used for developing non-GUI programs such
|
---|
38 | as command-line tools and consoles for servers. One of the major users
|
---|
39 | of <application>Qt</application> is <application>KDE</application>.
|
---|
40 | </para>
|
---|
41 |
|
---|
42 | &lfs74_checked;
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (HTTP): <ulink url="&qt4-download-http;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download (FTP): <ulink url="&qt4-download-ftp;"/>
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download MD5 sum: &qt4-md5sum;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Download size: &qt4-size;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated disk space required: &qt4-buildsize;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | <listitem>
|
---|
72 | <para>
|
---|
73 | Estimated build time: &qt4-time;
|
---|
74 | </para>
|
---|
75 | </listitem>
|
---|
76 | </itemizedlist>
|
---|
77 |
|
---|
78 | <bridgehead renderas="sect3">Qt Dependencies</bridgehead>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
81 | <para role="required">
|
---|
82 | <xref linkend="alsa-lib"/> and
|
---|
83 | <xref linkend="mesalib"/>
|
---|
84 | </para>
|
---|
85 |
|
---|
86 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
87 | <para role="recommended">
|
---|
88 | <xref linkend="cacerts"/>,
|
---|
89 | <xref linkend="dbus"/>,
|
---|
90 | <xref linkend="glib2"/>,
|
---|
91 | <xref linkend="icu"/> (unicode support),
|
---|
92 | <xref linkend="libjpeg"/>,
|
---|
93 | <xref linkend="libmng"/>,
|
---|
94 | <xref linkend="libpng"/>,
|
---|
95 | <xref linkend="libtiff"/>,
|
---|
96 | <xref linkend="openssl"/>, and
|
---|
97 | <xref linkend="sqlite"/>
|
---|
98 | </para>
|
---|
99 |
|
---|
100 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
101 | <para role="optional">
|
---|
102 | <xref linkend="cups"/>,
|
---|
103 | <xref linkend="gtk2"/> (GTK+ 2 theme support),
|
---|
104 | <xref linkend="gst-plugins-base"/> (For QtWebKit HTML5 Video),
|
---|
105 | <xref linkend="mysql"/>,
|
---|
106 | <xref linkend="postgresql"/>,
|
---|
107 | <xref linkend="pulseaudio"/>,
|
---|
108 | <xref linkend="unixodbc"/>, and
|
---|
109 | <xref linkend="qtchooser"/> (runtime, if also installing Qt5 and
|
---|
110 | installing in /usr)
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <para condition="html" role="usernotes">User Notes:
|
---|
114 | <ulink url="&blfs-wiki;/qt4"/>
|
---|
115 | </para>
|
---|
116 | </sect2>
|
---|
117 |
|
---|
118 | <sect2 role="installation">
|
---|
119 | <title>Installation of Qt</title>
|
---|
120 |
|
---|
121 | <para>
|
---|
122 | There are several ways to install a complicated package such as
|
---|
123 | <application>Qt</application>. The files are not completely position
|
---|
124 | independent. Installation procedures execute the program
|
---|
125 | <command>pkg-config</command> to determine the location of package
|
---|
126 | executables, libraries, headers, and other files. For
|
---|
127 | <application>Qt</application>, <command>pkg-config</command> will look
|
---|
128 | for the appropriate <filename>lib/pkgconfig/Qt*.pc</filename> files
|
---|
129 | which must be modified if relocating the package. These files are set up
|
---|
130 | correctly by the build process.
|
---|
131 | </para>
|
---|
132 |
|
---|
133 | <para>
|
---|
134 | The default installation places the files in <filename
|
---|
135 | class='directory'>/usr/local/qt/</filename>. Many commercial
|
---|
136 | distributions place the files in the system's <filename
|
---|
137 | class='directory'>/usr</filename> hierarchy. The package can also be
|
---|
138 | installed in an arbitrary directory.
|
---|
139 | </para>
|
---|
140 |
|
---|
141 | <para>
|
---|
142 | The advantage of installing in <filename
|
---|
143 | class='directory'>/usr</filename> is that no updates to the
|
---|
144 | <filename>/etc/ld.so.conf</filename> or
|
---|
145 | <filename>/etc/man_db.conf</filename> files are required. The package
|
---|
146 | files are distributed within several subdirectories of the <filename
|
---|
147 | class='directory'>/usr</filename> hierarchy. This is the method that
|
---|
148 | most commercial distributions use. It is also supported by the
|
---|
149 | optional <application>qtchooser</application> application.
|
---|
150 | </para>
|
---|
151 |
|
---|
152 | <para>
|
---|
153 | The disadvantage of installing in <filename
|
---|
154 | class='directory'>/usr</filename> is that the executable filenames
|
---|
155 | for <application>Qt4</application> and <application>Qt5</application>
|
---|
156 | conflict if both packages are installed in the
|
---|
157 | same directory. The instructions below give a workaround for
|
---|
158 | this problem using the helper program <xref linkend='qtchooser'/>.
|
---|
159 | This requires renaming the Qt executables with a version suffix.
|
---|
160 | </para>
|
---|
161 |
|
---|
162 | <para>
|
---|
163 | The advantage of installing <application>Qt4</application> in a custom
|
---|
164 | directory such as <filename
|
---|
165 | class='directory'>/opt/qt-&qt4-version;</filename> is that it keeps all
|
---|
166 | the package files consolidated in a dedicated directory hierarchy. By
|
---|
167 | using this method, an update can be made without overwriting a previous
|
---|
168 | installation and users can easily revert to a previous version by
|
---|
169 | changing one symbolic link or merely changing the PATH variable. It
|
---|
170 | also allows a developer to maintain multiple versions of
|
---|
171 | <application>Qt4</application> or <application>Qt5</application>
|
---|
172 | for testing.
|
---|
173 | </para>
|
---|
174 |
|
---|
175 | <caution>
|
---|
176 | <para>
|
---|
177 | If you did not install some of the recommended dependencies, examine
|
---|
178 | <command>./configure --help</command> output to check how to disable
|
---|
179 | them or use internal versions bundled in the source tarball.
|
---|
180 | </para>
|
---|
181 | </caution>
|
---|
182 |
|
---|
183 | <warning>
|
---|
184 | <para>
|
---|
185 | If <application>Qt4</application> is being reinstalled into the
|
---|
186 | same directory as an existing instance, run the
|
---|
187 | following commands from a console or non-Qt4 based window manager.
|
---|
188 | It overwrites <application>Qt4</application> libraries that should
|
---|
189 | not be in use during the install process.
|
---|
190 | </para>
|
---|
191 | </warning>
|
---|
192 |
|
---|
193 | <note>
|
---|
194 | <para>
|
---|
195 | The build time and space required for the full
|
---|
196 | <application>Qt</application> is quite long. The instructions below
|
---|
197 | do not build the tutorials and examples. Removing the
|
---|
198 | <parameter>-nomake</parameter> lines will create a complete build.
|
---|
199 | </para>
|
---|
200 | </note>
|
---|
201 |
|
---|
202 | <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>
|
---|
203 |
|
---|
204 | <para>
|
---|
205 | Install <application>Qt4</application> by running the
|
---|
206 | following commands:
|
---|
207 | </para>
|
---|
208 |
|
---|
209 | <note><para>
|
---|
210 | If <emphasis>not</emphasis> also installing <application>Qt5</application>
|
---|
211 | into the /usr directory, change the entry for -bindir below to /usr/bin.
|
---|
212 | </para></note>
|
---|
213 |
|
---|
214 |
|
---|
215 | <screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
|
---|
216 | config.tests/unix/libmng/libmng.cpp &&
|
---|
217 |
|
---|
218 | ./configure -prefix /usr \
|
---|
219 | -bindir /usr/lib/qt4/bin \
|
---|
220 | -plugindir /usr/lib/qt4/plugins \
|
---|
221 | -importdir /usr/lib/qt4/imports \
|
---|
222 | -headerdir /usr/include/qt4 \
|
---|
223 | -datadir /usr/share/qt4 \
|
---|
224 | -sysconfdir /etc/xdg \
|
---|
225 | -docdir /usr/share/doc/qt4 \
|
---|
226 | -demosdir /usr/share/doc/qt4/demos \
|
---|
227 | -examplesdir /usr/share/doc/qt4/examples \
|
---|
228 | -translationdir /usr/share/qt4/translations \
|
---|
229 | -confirm-license \
|
---|
230 | -opensource \
|
---|
231 | -release \
|
---|
232 | -dbus-linked \
|
---|
233 | -openssl-linked \
|
---|
234 | -system-sqlite \
|
---|
235 | -no-phonon \
|
---|
236 | -no-phonon-backend \
|
---|
237 | -no-nis \
|
---|
238 | -no-openvg \
|
---|
239 | -nomake demos \
|
---|
240 | -nomake examples \
|
---|
241 | -optimized-qmake &&
|
---|
242 |
|
---|
243 | make</userinput></screen>
|
---|
244 |
|
---|
245 | <para>
|
---|
246 | This package does not come with a test suite.
|
---|
247 | </para>
|
---|
248 |
|
---|
249 | <para>
|
---|
250 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
251 | </para>
|
---|
252 |
|
---|
253 | <screen role="root"><userinput>make install &&
|
---|
254 | rm -rf /usr/tests &&
|
---|
255 | install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
---|
256 | /usr/share/pixmaps/qt4logo.png &&
|
---|
257 | install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \
|
---|
258 | /usr/share/pixmaps/assistant-qt4.png &&
|
---|
259 | install -v -Dm644 tools/designer/src/designer/images/designer.png \
|
---|
260 | /usr/share/pixmaps/designer-qt4.png &&
|
---|
261 | install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
262 | /usr/share/pixmaps/linguist-qt4.png &&
|
---|
263 | install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
264 | /usr/share/pixmaps/qdbusviewer-qt4.png</userinput></screen>
|
---|
265 |
|
---|
266 | <para>
|
---|
267 | Remove references to the build directory from installed files by
|
---|
268 | running the following command as the
|
---|
269 | <systemitem class="username">root</systemitem> user:
|
---|
270 | </para>
|
---|
271 |
|
---|
272 | <screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \
|
---|
273 | Designer Gui Help Multimedia Network OpenGL Script \
|
---|
274 | ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml
|
---|
275 | do
|
---|
276 | sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' \
|
---|
277 | /usr/lib/libQt${file}.prl
|
---|
278 | perl -pi -e "s, -L$PWD/?\S+,,g" /usr/lib/pkgconfig/Qt${file}.pc
|
---|
279 | done
|
---|
280 | unset file</userinput></screen>
|
---|
281 |
|
---|
282 | <para>
|
---|
283 | If also installing Qt5 into /usr,
|
---|
284 | symlink the <application>Qt4</application> executables into
|
---|
285 | <filename class="directory">/usr/bin</filename> by running the
|
---|
286 | following commands as the
|
---|
287 | <systemitem class="username">root</systemitem> user:
|
---|
288 | </para>
|
---|
289 |
|
---|
290 | <screen role="root"><userinput>for file in /usr/lib/qt4/bin/*
|
---|
291 | do
|
---|
292 | ln -sfv ../lib/qt4/bin/$(basename $file) /usr/bin/$(basename $file)-qt4
|
---|
293 | done</userinput></screen>
|
---|
294 |
|
---|
295 | <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt4-version;</bridgehead>
|
---|
296 |
|
---|
297 | <para>
|
---|
298 | This section provides an alternate way to install Qt4 by installing
|
---|
299 | almost all of the files in the <filename class="directory">/opt</filename>
|
---|
300 | directory. This allows management of all Qt4 related files in one unit.
|
---|
301 | For instance, a new version of Qt4 can be installed without over-writing
|
---|
302 | the existing installation and entire Qt4 instances can be easily removed.
|
---|
303 | However, it has the disadvantage of needing some extra configuration.
|
---|
304 | </para>
|
---|
305 |
|
---|
306 |
|
---|
307 | <para>
|
---|
308 | Install <application>Qt</application> in /opt/qt-&qt4-version;
|
---|
309 | by running the following commands:
|
---|
310 | </para>
|
---|
311 |
|
---|
312 | <screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
|
---|
313 | config.tests/unix/libmng/libmng.cpp &&
|
---|
314 |
|
---|
315 | export QTDIR=/opt/qt-&qt4-version;
|
---|
316 |
|
---|
317 | ./configure -prefix $QTDIR \
|
---|
318 | -sysconfdir /etc/xdg \
|
---|
319 | -confirm-license \
|
---|
320 | -opensource \
|
---|
321 | -release \
|
---|
322 | -dbus-linked \
|
---|
323 | -openssl-linked \
|
---|
324 | -system-sqlite \
|
---|
325 | -plugin-sql-sqlite \
|
---|
326 | -no-phonon \
|
---|
327 | -no-phonon-backend \
|
---|
328 | -no-nis \
|
---|
329 | -no-openvg \
|
---|
330 | -nomake demos \
|
---|
331 | -nomake examples \
|
---|
332 | -optimized-qmake &&
|
---|
333 |
|
---|
334 | make</userinput></screen>
|
---|
335 |
|
---|
336 | <para>
|
---|
337 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
338 | </para>
|
---|
339 |
|
---|
340 | <screen role="root"><userinput>make install &&
|
---|
341 | ln -svfn qt-&qt4-version; /opt/qt &&
|
---|
342 |
|
---|
343 | install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
---|
344 | /usr/share/pixmaps/qt4logo.png &&
|
---|
345 | install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \
|
---|
346 | /usr/share/pixmaps/assistant-qt4.png &&
|
---|
347 | install -v -Dm644 tools/designer/src/designer/images/designer.png \
|
---|
348 | /usr/share/pixmaps/designer-qt4.png &&
|
---|
349 | install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
350 | /usr/share/pixmaps/linguist-qt4.png &&
|
---|
351 | install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
352 | /usr/share/pixmaps/qdbusviewer-qt4.png</userinput></screen>
|
---|
353 |
|
---|
354 | <para>
|
---|
355 | Remove references to the build directory from installed files by
|
---|
356 | running the following command as the
|
---|
357 | <systemitem class="username">root</systemitem> user:
|
---|
358 | </para>
|
---|
359 |
|
---|
360 | <screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \
|
---|
361 | Designer Gui Help Multimedia Network OpenGL Script \
|
---|
362 | ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml; do
|
---|
363 | sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' \
|
---|
364 | $QTDIR/lib/libQt${file}.prl
|
---|
365 | perl -pi -e "s, -L$PWD/?\S+,,g" $QTDIR/lib/pkgconfig/Qt${file}.pc
|
---|
366 | done
|
---|
367 |
|
---|
368 | unset file</userinput></screen>
|
---|
369 |
|
---|
370 | </sect2>
|
---|
371 |
|
---|
372 | <sect2 role="commands">
|
---|
373 | <title>Command Explanations</title>
|
---|
374 |
|
---|
375 | <para>
|
---|
376 | <command>sed -i "..." ...</command>: This command fixes
|
---|
377 | detection of <application>libmng</application> 2.0.
|
---|
378 | </para>
|
---|
379 |
|
---|
380 | <para>
|
---|
381 | <parameter>-confirm-license</parameter>: Accept license
|
---|
382 | without prompting user during configuration.
|
---|
383 | </para>
|
---|
384 |
|
---|
385 | <para>
|
---|
386 | <parameter>-opensource</parameter>: Install the opensource
|
---|
387 | version of <application>Qt</application>.
|
---|
388 | </para>
|
---|
389 |
|
---|
390 | <para>
|
---|
391 | <parameter>-release</parameter>: This switch disables
|
---|
392 | building with debugging symbols.
|
---|
393 | </para>
|
---|
394 |
|
---|
395 | <para>
|
---|
396 | <parameter>-nomake examples -nomake demos</parameter>:
|
---|
397 | These switches disable building programs that are only of
|
---|
398 | interest to a <application>Qt</application> developer.
|
---|
399 | </para>
|
---|
400 |
|
---|
401 | <para>
|
---|
402 | <parameter>-system-sqlite</parameter>: This switch enables use
|
---|
403 | the system version of <application>SQLite</application>.
|
---|
404 | </para>
|
---|
405 |
|
---|
406 | <para>
|
---|
407 | <parameter>-no-nis</parameter>: This switch disables support
|
---|
408 | for Network Information Service (NIS) which has been
|
---|
409 | deprecated in recent versions of <application>Glibc</application>.
|
---|
410 | </para>
|
---|
411 |
|
---|
412 | <para>
|
---|
413 | <parameter>-no-phonon -no-phonon-backend</parameter>: These
|
---|
414 | switches disable building of the bundled
|
---|
415 | <application>Phonon</application> library. Better version
|
---|
416 | is provided by <xref linkend="phonon"/> package.
|
---|
417 | </para>
|
---|
418 |
|
---|
419 | <para>
|
---|
420 | <parameter>-dbus-linkend -openssl-linkend</parameter>: These
|
---|
421 | switches enable explicit linking of the
|
---|
422 | <application>D-Bus</application> and
|
---|
423 | <application>OpenSSL</application> libraries into
|
---|
424 | <application>Qt</application> libraries instead of
|
---|
425 | <command>dlopen()</command>-ing them.
|
---|
426 | </para>
|
---|
427 |
|
---|
428 | <para>
|
---|
429 | <parameter>-no-openvg</parameter>: This switch disables
|
---|
430 | <application>OpenVG</application> support in
|
---|
431 | <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="qt4-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 QTDIR
|
---|
459 |
|
---|
460 | # End /etc/profile.d/qt.sh</literal>
|
---|
461 | EOF</userinput></screen>
|
---|
462 |
|
---|
463 | <para>
|
---|
464 | If you installed <application>Qt</application> in a location other
|
---|
465 | than /usr, you need to update the following configuration files so
|
---|
466 | that <application>Qt</application> is correctly found by other packages
|
---|
467 | and system processes.</para>
|
---|
468 |
|
---|
469 | <para>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/qt/lib
|
---|
478 |
|
---|
479 | # End Qt addition</literal>
|
---|
480 | EOF
|
---|
481 |
|
---|
482 | ldconfig</userinput></screen>
|
---|
483 |
|
---|
484 | <indexterm zone="qt4 qt4-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/qt.sh</filename> file:
|
---|
491 | </para>
|
---|
492 |
|
---|
493 | <screen role="root"><userinput>cat > /etc/profile.d/qt.sh << EOF
|
---|
494 | <literal># Begin /etc/profile.d/qt.sh
|
---|
495 |
|
---|
496 | QTDIR=/opt/qt
|
---|
497 |
|
---|
498 | pathappend /opt/qt/bin PATH
|
---|
499 | pathappend /opt/qt/lib/pkgconfig PKG_CONFIG_PATH
|
---|
500 |
|
---|
501 | export QTDIR
|
---|
502 |
|
---|
503 | # End /etc/profile.d/qt.sh</literal>
|
---|
504 | EOF</userinput></screen>
|
---|
505 |
|
---|
506 | <para>
|
---|
507 | For all methods, create the menu entries for installed applications.
|
---|
508 | As the <systemitem class="username">root</systemitem> user:
|
---|
509 | </para>
|
---|
510 |
|
---|
511 | <screen role="root"><userinput>install -dm755 /usr/share/applications
|
---|
512 |
|
---|
513 | cat > /usr/share/applications/qtconfig-qt4.desktop << "EOF"
|
---|
514 | <literal>[Desktop Entry]
|
---|
515 | Name=Qt4 Config
|
---|
516 | Comment=Configure Qt4 behavior, styles, fonts
|
---|
517 | Exec=qtconfig-qt4
|
---|
518 | Icon=qt4logo
|
---|
519 | Terminal=false
|
---|
520 | Encoding=UTF-8
|
---|
521 | Type=Application
|
---|
522 | Categories=Qt;Settings;</literal>
|
---|
523 | EOF
|
---|
524 |
|
---|
525 | cat > /usr/share/applications/assistant-qt4.desktop << "EOF"
|
---|
526 | <literal>[Desktop Entry]
|
---|
527 | Name=Qt4 Assistant
|
---|
528 | Comment=Shows Qt4 documentation and examples
|
---|
529 | Exec=assistant-qt4
|
---|
530 | Icon=assistant-qt4
|
---|
531 | Terminal=false
|
---|
532 | Encoding=UTF-8
|
---|
533 | Type=Application
|
---|
534 | Categories=Qt;Development;Documentation;</literal>
|
---|
535 | EOF
|
---|
536 |
|
---|
537 | cat > /usr/share/applications/designer-qt4.desktop << "EOF"
|
---|
538 | <literal>[Desktop Entry]
|
---|
539 | Name=Qt4 Designer
|
---|
540 | Comment=Design GUIs for Qt4 applications
|
---|
541 | Exec=designer-qt4
|
---|
542 | Icon=designer-qt4
|
---|
543 | MimeType=application/x-designer;
|
---|
544 | Terminal=false
|
---|
545 | Encoding=UTF-8
|
---|
546 | Type=Application
|
---|
547 | Categories=Qt;Development;</literal>
|
---|
548 | EOF
|
---|
549 |
|
---|
550 | cat > /usr/share/applications/linguist-qt4.desktop << "EOF"
|
---|
551 | <literal>[Desktop Entry]
|
---|
552 | Name=Qt4 Linguist
|
---|
553 | Comment=Add translations to Qt4 applications
|
---|
554 | Exec=linguist-qt4
|
---|
555 | Icon=linguist-qt4
|
---|
556 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
557 | Terminal=false
|
---|
558 | Encoding=UTF-8
|
---|
559 | Type=Application
|
---|
560 | Categories=Qt;Development;</literal>
|
---|
561 | EOF
|
---|
562 |
|
---|
563 | cat > /usr/share/applications/qdbusviewer-qt4.desktop << "EOF"
|
---|
564 | <literal>[Desktop Entry]
|
---|
565 | Name=Qt4 QDbusViewer
|
---|
566 | GenericName=D-Bus Debugger
|
---|
567 | Comment=Debug D-Bus applications
|
---|
568 | Exec=qdbusviewer-qt4
|
---|
569 | Icon=qdbusviewer-qt4
|
---|
570 | Terminal=false
|
---|
571 | Encoding=UTF-8
|
---|
572 | Type=Application
|
---|
573 | Categories=Qt;Development;Debugger;</literal>
|
---|
574 | EOF</userinput></screen>
|
---|
575 |
|
---|
576 | </sect3>
|
---|
577 |
|
---|
578 | </sect2>
|
---|
579 |
|
---|
580 | <sect2 role="content">
|
---|
581 | <title>Contents</title>
|
---|
582 |
|
---|
583 | <segmentedlist>
|
---|
584 | <segtitle>Installed Programs</segtitle>
|
---|
585 | <segtitle>Installed Libraries</segtitle>
|
---|
586 | <segtitle>Installed Directories</segtitle>
|
---|
587 |
|
---|
588 | <seglistitem>
|
---|
589 | <seg>
|
---|
590 | assistant-qt4, designer-qt4, lconvert-qt4, linguist-qt4,
|
---|
591 | lrelease-qt4, lupdate-qt4, moc-qt4, pixeltool-qt4,
|
---|
592 | qcollectiongenerator-qt4, qdbuscpp2xml-qt4, qdbus-qt4,
|
---|
593 | qdbusviewer-qt4, qdbusxml2cpp-qt4, qdoc3-qt4, qhelpconverter-qt4,
|
---|
594 | qhelpgenerator-qt4, qmake-qt4, qmlplugindump-qt4, qmlviewer-qt4,
|
---|
595 | qt3to4-qt4, qtconfig-qt4, qttracereplay-qt4, rcc-qt4, uic3-qt4,
|
---|
596 | uic-qt4, xmlpatterns-qt4 and xmlpatternsvalidator-qt4
|
---|
597 | </seg>
|
---|
598 | <seg>
|
---|
599 | libQt3Support.so, libQtCLucene.so, libQtCore.so, libQtDBus.so,
|
---|
600 | libQtDeclarative.so, libQtDesignerComponents.so,
|
---|
601 | libQtDesigner.so, libQtGui.so, libQtHelp.so, libQtMultimedia.so,
|
---|
602 | libQtNetwork.so, libQtOpenGL.so, libQtScript.so, libQtScriptTools.so,
|
---|
603 | libQtSql.so, libQtSvg.so, libQtTest.so, libQtWebKit.so,
|
---|
604 | libQtXmlPatterns.so and libQtXml.so
|
---|
605 | </seg>
|
---|
606 | <seg>
|
---|
607 | /usr/include/qt4,
|
---|
608 | /usr/lib/qt4,
|
---|
609 | /usr/share/doc/qt4, and
|
---|
610 | /usr/share/qt4 (OR $QTDIR)
|
---|
611 | (OR $QTDIR)
|
---|
612 | </seg>
|
---|
613 | </seglistitem>
|
---|
614 | </segmentedlist>
|
---|
615 |
|
---|
616 | <variablelist>
|
---|
617 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
618 | <?dbfo list-presentation="list"?>
|
---|
619 | <?dbhtml list-presentation="table"?>
|
---|
620 |
|
---|
621 | <varlistentry id="assistant-qt4">
|
---|
622 | <term><command>assistant-qt4</command></term>
|
---|
623 | <listitem>
|
---|
624 | <para>
|
---|
625 | is a tool for presenting on-line documentation.
|
---|
626 | </para>
|
---|
627 | <indexterm zone="qt4 assistant-qt4">
|
---|
628 | <primary sortas="b-assistant-qt4">assistant-qt4</primary>
|
---|
629 | </indexterm>
|
---|
630 | </listitem>
|
---|
631 | </varlistentry>
|
---|
632 |
|
---|
633 | <varlistentry id="designer-qt4">
|
---|
634 | <term><command>designer-qt4</command></term>
|
---|
635 | <listitem>
|
---|
636 | <para>
|
---|
637 | is a full-fledged GUI builder. It includes
|
---|
638 | powerful features such as preview mode, automatic widget
|
---|
639 | layout, support for custom widgets, and an advanced
|
---|
640 | property editor.
|
---|
641 | </para>
|
---|
642 | <indexterm zone="qt4 designer-qt4">
|
---|
643 | <primary sortas="b-designer-qt4">designer-qt4</primary>
|
---|
644 | </indexterm>
|
---|
645 | </listitem>
|
---|
646 | </varlistentry>
|
---|
647 |
|
---|
648 | <varlistentry id="linguist-qt4">
|
---|
649 | <term><command>linguist-qt4</command></term>
|
---|
650 | <listitem>
|
---|
651 | <para>
|
---|
652 | provides support for translating applications into
|
---|
653 | local languages.
|
---|
654 | </para>
|
---|
655 | <indexterm zone="qt4 linguist-qt4">
|
---|
656 | <primary sortas="b-linguist-qt4">linguist-qt4</primary>
|
---|
657 | </indexterm>
|
---|
658 | </listitem>
|
---|
659 | </varlistentry>
|
---|
660 |
|
---|
661 | <varlistentry id="lrelease-qt4">
|
---|
662 | <term><command>lrelease-qt4</command></term>
|
---|
663 | <listitem>
|
---|
664 | <para>
|
---|
665 | is a simple command line tool. It reads a Qt project
|
---|
666 | file and produces message files used by the application.
|
---|
667 | </para>
|
---|
668 | <indexterm zone="qt4 lrelease-qt4">
|
---|
669 | <primary sortas="b-lrelease-qt4">lrelease-qt4</primary>
|
---|
670 | </indexterm>
|
---|
671 | </listitem>
|
---|
672 | </varlistentry>
|
---|
673 |
|
---|
674 | <varlistentry id="lupdate-qt4">
|
---|
675 | <term><command>lupdate-qt4</command></term>
|
---|
676 | <listitem>
|
---|
677 | <para>
|
---|
678 | reads a Qt project file, finds the translatable
|
---|
679 | strings in the specified source, header and Qt Designer
|
---|
680 | interface files, and produces or updates the translation
|
---|
681 | files listed in the project file.
|
---|
682 | </para>
|
---|
683 | <indexterm zone="qt4 lupdate-qt4">
|
---|
684 | <primary sortas="b-lupdate-qt4">lupdate-qt4</primary>
|
---|
685 | </indexterm>
|
---|
686 | </listitem>
|
---|
687 | </varlistentry>
|
---|
688 |
|
---|
689 | <varlistentry id="moc-qt4">
|
---|
690 | <term><command>moc-qt4</command></term>
|
---|
691 | <listitem>
|
---|
692 | <para>
|
---|
693 | generates Qt meta object support code.
|
---|
694 | </para>
|
---|
695 | <indexterm zone="qt4 moc-qt4">
|
---|
696 | <primary sortas="b-moc-qt4">moc-qt4</primary>
|
---|
697 | </indexterm>
|
---|
698 | </listitem>
|
---|
699 | </varlistentry>
|
---|
700 |
|
---|
701 | <varlistentry id="pixeltool-qt4">
|
---|
702 | <term><command>pixeltool-qt4</command></term>
|
---|
703 | <listitem>
|
---|
704 | <para>
|
---|
705 | is a desktop magnifier and as you move your mouse around
|
---|
706 | the screen it will show the magnified contents in its window.
|
---|
707 | </para>
|
---|
708 | <indexterm zone="qt4 pixeltool-qt4">
|
---|
709 | <primary sortas="b-pixeltool-qt4">pixeltool-qt4</primary>
|
---|
710 | </indexterm>
|
---|
711 | </listitem>
|
---|
712 | </varlistentry>
|
---|
713 |
|
---|
714 | <varlistentry id="qmake-qt4">
|
---|
715 | <term><command>qmake-qt4</command></term>
|
---|
716 | <listitem>
|
---|
717 | <para>
|
---|
718 | uses information stored in project files to
|
---|
719 | determine what should go in the makefiles it
|
---|
720 | generates.
|
---|
721 | </para>
|
---|
722 | <indexterm zone="qt4 qmake-qt4">
|
---|
723 | <primary sortas="b-qmake-qt4">qmake-qt4</primary>
|
---|
724 | </indexterm>
|
---|
725 | </listitem>
|
---|
726 | </varlistentry>
|
---|
727 |
|
---|
728 | <varlistentry id="qt3to4-qt4">
|
---|
729 | <term><command>qt3to4-qt4</command></term>
|
---|
730 | <listitem>
|
---|
731 | <para>
|
---|
732 | qt3to4 is a tool to help update Qt3 code to Qt4.
|
---|
733 | </para>
|
---|
734 | <indexterm zone="qt4 qt3to4-qt4">
|
---|
735 | <primary sortas="b-qt3to4-qt4">qt3to4-qt4</primary>
|
---|
736 | </indexterm>
|
---|
737 | </listitem>
|
---|
738 | </varlistentry>
|
---|
739 |
|
---|
740 | <varlistentry id="qtconfig-qt4">
|
---|
741 | <term><command>qtconfig-qt4</command></term>
|
---|
742 | <listitem>
|
---|
743 | <para>
|
---|
744 | is used to customize the appearance of Qt applications.
|
---|
745 | </para>
|
---|
746 | <indexterm zone="qt4 qtconfig-qt4">
|
---|
747 | <primary sortas="b-qtconfig-qt4">qtconfig-qt4</primary>
|
---|
748 | </indexterm>
|
---|
749 | </listitem>
|
---|
750 | </varlistentry>
|
---|
751 |
|
---|
752 | <varlistentry id="rcc-qt4">
|
---|
753 | <term><command>rcc-qt4</command></term>
|
---|
754 | <listitem>
|
---|
755 | <para>
|
---|
756 | is a resource compiler used in conjunction with designer.
|
---|
757 | </para>
|
---|
758 | <indexterm zone="qt4 rcc-qt4">
|
---|
759 | <primary sortas="b-rcc-qt4">rcc-qt4</primary>
|
---|
760 | </indexterm>
|
---|
761 | </listitem>
|
---|
762 | </varlistentry>
|
---|
763 |
|
---|
764 | <varlistentry id="uic-qt4">
|
---|
765 | <term><command>uic-qt4</command></term>
|
---|
766 | <listitem>
|
---|
767 | <para>
|
---|
768 | is a Qt user interface compiler.
|
---|
769 | </para>
|
---|
770 | <indexterm zone="qt4 uic-qt4">
|
---|
771 | <primary sortas="b-uic-qt4">uic-qt4</primary>
|
---|
772 | </indexterm>
|
---|
773 | </listitem>
|
---|
774 | </varlistentry>
|
---|
775 |
|
---|
776 | <varlistentry id="uic3-qt4">
|
---|
777 | <term><command>uic3-qt4</command></term>
|
---|
778 | <listitem>
|
---|
779 | <para>
|
---|
780 | is a tool to generate Qt4 code out of
|
---|
781 | user interface files generated by the Qt3
|
---|
782 | version of designer.
|
---|
783 | </para>
|
---|
784 | <indexterm zone="qt4 uic3-qt4">
|
---|
785 | <primary sortas="b-uic3-qt4">uic3-qt4</primary>
|
---|
786 | </indexterm>
|
---|
787 | </listitem>
|
---|
788 | </varlistentry>
|
---|
789 |
|
---|
790 | </variablelist>
|
---|
791 |
|
---|
792 | </sect2>
|
---|
793 |
|
---|
794 | </sect1>
|
---|