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 | &lfs75_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="xorg7-lib"/>
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
86 | <para role="recommended">
|
---|
87 | <xref linkend="alsa-lib"/>,
|
---|
88 | <xref linkend="mesalib"/>,
|
---|
89 | <xref linkend="cacerts"/>,
|
---|
90 | <xref linkend="dbus"/>,
|
---|
91 | <xref linkend="glib2"/>,
|
---|
92 | <xref linkend="icu"/> (unicode support),
|
---|
93 | <xref linkend="libjpeg"/>,
|
---|
94 | <xref linkend="libmng"/>,
|
---|
95 | <xref linkend="libpng"/>,
|
---|
96 | <xref linkend="libtiff"/>,
|
---|
97 | <xref linkend="openssl"/>, and
|
---|
98 | <xref linkend="sqlite"/>
|
---|
99 | </para>
|
---|
100 |
|
---|
101 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
102 | <para role="optional">
|
---|
103 | <xref linkend="cups"/>,
|
---|
104 | <xref linkend="gtk2"/> (GTK+ 2 theme support),
|
---|
105 | <xref linkend="gst-plugins-base"/> (For QtWebKit HTML5 Video),
|
---|
106 | <xref linkend="mariadb"/> or <xref linkend="mysql"/>,
|
---|
107 | <xref linkend="postgresql"/>,
|
---|
108 | <xref linkend="pulseaudio"/>, and
|
---|
109 | <xref linkend="unixodbc"/>
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <para condition="html" role="usernotes">User Notes:
|
---|
113 | <ulink url="&blfs-wiki;/qt4"/>
|
---|
114 | </para>
|
---|
115 | </sect2>
|
---|
116 |
|
---|
117 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../xincludes/qt-alternatives.xml"/>
|
---|
118 |
|
---|
119 | <sect2 role="installation">
|
---|
120 | <title>Installation of Qt</title>
|
---|
121 |
|
---|
122 | <caution>
|
---|
123 | <para>
|
---|
124 | If you did not install some of the recommended dependencies, examine
|
---|
125 | <command>./configure --help</command> output to check how to disable
|
---|
126 | them or use internal versions bundled in the source tarball.
|
---|
127 | </para>
|
---|
128 | </caution>
|
---|
129 |
|
---|
130 | <warning>
|
---|
131 | <para>
|
---|
132 | If <application>Qt4</application> is being reinstalled into the
|
---|
133 | same directory as an existing instance, run the
|
---|
134 | following commands from a console or non-Qt4 based window manager.
|
---|
135 | It overwrites <application>Qt4</application> libraries that should
|
---|
136 | not be in use during the install process.
|
---|
137 | </para>
|
---|
138 | </warning>
|
---|
139 |
|
---|
140 | <note>
|
---|
141 | <para>
|
---|
142 | The build time and space required for the full
|
---|
143 | <application>Qt</application> is quite long. The instructions below
|
---|
144 | do not build the tutorials and examples. Removing the
|
---|
145 | <parameter>-nomake</parameter> lines will create a complete build.
|
---|
146 | </para>
|
---|
147 | </note>
|
---|
148 |
|
---|
149 | <!-- ==== Method 1 ====== -->
|
---|
150 | <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>
|
---|
151 |
|
---|
152 | <para>
|
---|
153 | Install <application>Qt4</application> into the <filename
|
---|
154 | class='directory'>/usr</filename> hierarchy by running the following
|
---|
155 | commands:
|
---|
156 | </para>
|
---|
157 |
|
---|
158 | <screen><userinput>export QT4LINK=/usr
|
---|
159 |
|
---|
160 | sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
|
---|
161 | config.tests/unix/libmng/libmng.cpp &&
|
---|
162 |
|
---|
163 | sed -i '/CONFIG -/ a\isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../..' \
|
---|
164 | src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro &&
|
---|
165 |
|
---|
166 | ./configure -prefix /usr \
|
---|
167 | -bindir /usr/bin \
|
---|
168 | -plugindir /usr/lib/qt4/plugins \
|
---|
169 | -importdir /usr/lib/qt4/imports \
|
---|
170 | -headerdir /usr/include/qt4 \
|
---|
171 | -datadir /usr/share/qt4 \
|
---|
172 | -sysconfdir /etc/xdg \
|
---|
173 | -docdir /usr/share/doc/qt4 \
|
---|
174 | -demosdir /usr/share/doc/qt4/demos \
|
---|
175 | -examplesdir /usr/share/doc/qt4/examples \
|
---|
176 | -translationdir /usr/share/qt4/translations \
|
---|
177 | -confirm-license \
|
---|
178 | -opensource \
|
---|
179 | -release \
|
---|
180 | -dbus-linked \
|
---|
181 | -openssl-linked \
|
---|
182 | -system-sqlite \
|
---|
183 | -no-phonon \
|
---|
184 | -no-phonon-backend \
|
---|
185 | -no-nis \
|
---|
186 | -no-openvg \
|
---|
187 | -nomake demos \
|
---|
188 | -nomake examples \
|
---|
189 | -optimized-qmake &&
|
---|
190 |
|
---|
191 | make</userinput></screen>
|
---|
192 |
|
---|
193 | <para>
|
---|
194 | This package does not come with a test suite.
|
---|
195 | </para>
|
---|
196 |
|
---|
197 | <para>
|
---|
198 | Remove references to the build directory from the
|
---|
199 | <filename class="extension">.pc</filename> files by running
|
---|
200 | the following command:
|
---|
201 | </para>
|
---|
202 |
|
---|
203 | <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
|
---|
204 |
|
---|
205 | <para>Now as the <systemitem class="username">root</systemitem> user:</para>
|
---|
206 |
|
---|
207 | <screen role="root"><userinput>make install &&
|
---|
208 | rm -rf /usr/tests</userinput></screen>
|
---|
209 |
|
---|
210 | <para>
|
---|
211 | Remove references to the build directory from installed files by
|
---|
212 | running the following command as the
|
---|
213 | <systemitem class="username">root</systemitem> user:
|
---|
214 | </para>
|
---|
215 |
|
---|
216 | <screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \
|
---|
217 | Designer Gui Help Multimedia Network OpenGL Script \
|
---|
218 | ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml phonon; do
|
---|
219 |
|
---|
220 | [ -e /usr/lib/libQt${file}.prl ] &&
|
---|
221 | sed -r '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' \
|
---|
222 | -i /usr/lib/libQt${file}.prl
|
---|
223 | done
|
---|
224 | unset file</userinput></screen>
|
---|
225 |
|
---|
226 | <!-- ==== Method 2 ====== -->
|
---|
227 | <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt4-version;</bridgehead>
|
---|
228 |
|
---|
229 | <para>
|
---|
230 | This section provides for installing Qt4 almost all of the files in the
|
---|
231 | <filename class="directory">/opt</filename> directory.
|
---|
232 | </para>
|
---|
233 |
|
---|
234 | <screen><userinput>export QT4DIR=/opt/qt-&qt4-version; &&
|
---|
235 | export QT4LINK=/opt/qt4 &&
|
---|
236 |
|
---|
237 | sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
|
---|
238 | config.tests/unix/libmng/libmng.cpp &&
|
---|
239 |
|
---|
240 | sed -i '/CONFIG -/ a\isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../..' \
|
---|
241 | src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro &&
|
---|
242 |
|
---|
243 | ./configure -prefix $QT4DIR \
|
---|
244 | -sysconfdir /etc/xdg \
|
---|
245 | -confirm-license \
|
---|
246 | -opensource \
|
---|
247 | -release \
|
---|
248 | -dbus-linked \
|
---|
249 | -openssl-linked \
|
---|
250 | -system-sqlite \
|
---|
251 | -plugin-sql-sqlite \
|
---|
252 | -no-phonon \
|
---|
253 | -no-phonon-backend \
|
---|
254 | -no-nis \
|
---|
255 | -no-openvg \
|
---|
256 | -nomake demos \
|
---|
257 | -nomake examples \
|
---|
258 | -optimized-qmake &&
|
---|
259 |
|
---|
260 | make</userinput></screen>
|
---|
261 |
|
---|
262 | <para>
|
---|
263 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
264 | </para>
|
---|
265 |
|
---|
266 | <screen role="root"><userinput>make install
|
---|
267 | ln -svfn $QT4DIR /opt/qt4</userinput></screen>
|
---|
268 |
|
---|
269 | <para>
|
---|
270 | Remove references to the build directory from installed files by
|
---|
271 | running the following command as the
|
---|
272 | <systemitem class="username">root</systemitem> user:
|
---|
273 | </para>
|
---|
274 |
|
---|
275 | <screen role="root"><userinput>for file in `basename -a -s .prl $QT4DIR/lib/lib*.prl`; do
|
---|
276 | sed -r -e '/^QMAKE_PRL_BUILD_DIR/d' \
|
---|
277 | -e 's/(QMAKE_PRL_LIBS =).*/\1/' \
|
---|
278 | -i $QT4DIR/lib/${file}.prl
|
---|
279 |
|
---|
280 | perl -pi -e "s, -L$PWD/?\S+,,g" $QT4DIR/lib/pkgconfig/${file##lib}.pc
|
---|
281 | done
|
---|
282 |
|
---|
283 | unset file</userinput></screen>
|
---|
284 |
|
---|
285 | <!-- ==== Common ====== -->
|
---|
286 | <bridgehead renderas="sect3">Continuing for Both Methods</bridgehead>
|
---|
287 |
|
---|
288 | <para>
|
---|
289 | For all methods, install images and create the menu entries
|
---|
290 | for installed applications. Be sure that the <envar>QT4LINK</envar>
|
---|
291 | variable is defined in root's environment and
|
---|
292 | as the <systemitem class="username">root</systemitem> user:
|
---|
293 | </para>
|
---|
294 |
|
---|
295 | <screen role="root"><userinput>install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
---|
296 | /usr/share/pixmaps/qt4logo.png &&
|
---|
297 |
|
---|
298 | install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \
|
---|
299 | /usr/share/pixmaps/assistant-qt4.png &&
|
---|
300 |
|
---|
301 | install -v -Dm644 tools/designer/src/designer/images/designer.png \
|
---|
302 | /usr/share/pixmaps/designer-qt4.png &&
|
---|
303 |
|
---|
304 | install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
305 | /usr/share/pixmaps/linguist-qt4.png &&
|
---|
306 |
|
---|
307 | install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
308 | /usr/share/pixmaps/qdbusviewer-qt4.png &&
|
---|
309 |
|
---|
310 | install -dm755 /usr/share/applications &&
|
---|
311 |
|
---|
312 | cat > /usr/share/applications/assistant-qt4.desktop << EOF
|
---|
313 | <literal>[Desktop Entry]
|
---|
314 | Name=Qt4 Assistant
|
---|
315 | Comment=Shows Qt4 documentation and examples
|
---|
316 | Exec=$QT4LINK/bin/assistant
|
---|
317 | Icon=assistant-qt4.png
|
---|
318 | Terminal=false
|
---|
319 | Encoding=UTF-8
|
---|
320 | Type=Application
|
---|
321 | Categories=Qt;Development;Documentation;</literal>
|
---|
322 | EOF
|
---|
323 |
|
---|
324 | cat > /usr/share/applications/designer-qt4.desktop << EOF
|
---|
325 | <literal>[Desktop Entry]
|
---|
326 | Name=Qt4 Designer
|
---|
327 | Comment=Design GUIs for Qt4 applications
|
---|
328 | Exec=$QT4LINK/bin/designer
|
---|
329 | Icon=designer-qt4.png
|
---|
330 | MimeType=application/x-designer;
|
---|
331 | Terminal=false
|
---|
332 | Encoding=UTF-8
|
---|
333 | Type=Application
|
---|
334 | Categories=Qt;Development;</literal>
|
---|
335 | EOF
|
---|
336 |
|
---|
337 | cat > /usr/share/applications/linguist-qt4.desktop << EOF
|
---|
338 | <literal>[Desktop Entry]
|
---|
339 | Name=Qt4 Linguist
|
---|
340 | Comment=Add translations to Qt4 applications
|
---|
341 | Exec=$QT4LINK/bin/linguist
|
---|
342 | Icon=linguist-qt4.png
|
---|
343 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
344 | Terminal=false
|
---|
345 | Encoding=UTF-8
|
---|
346 | Type=Application
|
---|
347 | Categories=Qt;Development;</literal>
|
---|
348 | EOF
|
---|
349 |
|
---|
350 | cat > /usr/share/applications/qdbusviewer-qt4.desktop << EOF
|
---|
351 | <literal>[Desktop Entry]
|
---|
352 | Name=Qt4 QDbusViewer
|
---|
353 | GenericName=D-Bus Debugger
|
---|
354 | Comment=Debug D-Bus applications
|
---|
355 | Exec=$QT4LINK/bin/qdbusviewer
|
---|
356 | Icon=qdbusviewer-qt4.png
|
---|
357 | Terminal=false
|
---|
358 | Encoding=UTF-8
|
---|
359 | Type=Application
|
---|
360 | Categories=Qt;Development;Debugger;</literal>
|
---|
361 | EOF
|
---|
362 |
|
---|
363 | cat > /usr/share/applications/qtconfig-qt4.desktop << EOF
|
---|
364 | <literal>[Desktop Entry]
|
---|
365 | Name=Qt4 Config
|
---|
366 | Comment=Configure Qt4 behavior, styles, fonts
|
---|
367 | Exec=$QT4LINK/bin/qtconfig
|
---|
368 | Icon=qt4logo.png
|
---|
369 | Terminal=false
|
---|
370 | Encoding=UTF-8
|
---|
371 | Type=Application
|
---|
372 | Categories=Qt;Settings;</literal>
|
---|
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 detection of
|
---|
382 | <application>libmng</application> 2.0 and second one prevents configure
|
---|
383 | script from writing to the root directory if building as privileged user.
|
---|
384 | </para>
|
---|
385 |
|
---|
386 | <para>
|
---|
387 | <parameter>-confirm-license</parameter>: Accept license
|
---|
388 | without prompting user during configuration.
|
---|
389 | </para>
|
---|
390 |
|
---|
391 | <para>
|
---|
392 | <parameter>-opensource</parameter>: Install the opensource
|
---|
393 | version of <application>Qt</application>.
|
---|
394 | </para>
|
---|
395 |
|
---|
396 | <para>
|
---|
397 | <parameter>-release</parameter>: This switch disables
|
---|
398 | building with debugging symbols.
|
---|
399 | </para>
|
---|
400 |
|
---|
401 | <para>
|
---|
402 | <parameter>-nomake examples -nomake demos</parameter>:
|
---|
403 | These switches disable building programs that are only of
|
---|
404 | interest to a developer using <application>Qt</application>.
|
---|
405 | </para>
|
---|
406 |
|
---|
407 | <para>
|
---|
408 | <parameter>-system-sqlite</parameter>: This switch enables use
|
---|
409 | the system version of <application>SQLite</application>.
|
---|
410 | </para>
|
---|
411 |
|
---|
412 | <para>
|
---|
413 | <parameter>-no-nis</parameter>: This switch disables support
|
---|
414 | for Network Information Service (NIS) which has been
|
---|
415 | deprecated in recent versions of <application>Glibc</application>.
|
---|
416 | </para>
|
---|
417 |
|
---|
418 | <para>
|
---|
419 | <parameter>-no-phonon -no-phonon-backend</parameter>: These
|
---|
420 | switches disable building of the bundled
|
---|
421 | <application>Phonon</application> library. Better version
|
---|
422 | is provided by <xref linkend="phonon"/> package.
|
---|
423 | </para>
|
---|
424 |
|
---|
425 | <para>
|
---|
426 | <parameter>-dbus-linked -openssl-linked</parameter>: These
|
---|
427 | switches enable explicit linking of the
|
---|
428 | <application>D-Bus</application> and
|
---|
429 | <application>OpenSSL</application> libraries into
|
---|
430 | <application>Qt</application> libraries instead of
|
---|
431 | <command>dlopen()</command>-ing them.
|
---|
432 | </para>
|
---|
433 |
|
---|
434 | <para>
|
---|
435 | <parameter>-no-openvg</parameter>: This switch disables
|
---|
436 | <application>OpenVG</application> support in
|
---|
437 | <application>Qt</application>.
|
---|
438 | </para>
|
---|
439 |
|
---|
440 | <para>
|
---|
441 | <parameter>-optimized-qmake</parameter>: This switch enables
|
---|
442 | building of the optimized <command>qmake</command> program.
|
---|
443 | </para>
|
---|
444 |
|
---|
445 | <para>
|
---|
446 | <option>-no-dbus</option>: Use this switch if you don't have
|
---|
447 | <application>D-Bus</application> installed.
|
---|
448 | </para>
|
---|
449 |
|
---|
450 | </sect2>
|
---|
451 |
|
---|
452 | <sect2 role="configuration">
|
---|
453 | <title>Configuring Qt</title>
|
---|
454 |
|
---|
455 | <sect3 id="qt4-config">
|
---|
456 | <title>Configuration Information</title>
|
---|
457 |
|
---|
458 | <para>
|
---|
459 | If you installed <application>Qt</application> in /usr,
|
---|
460 | create an environment variable needed by certain packages.
|
---|
461 | As the <systemitem class="username">root</systemitem> user:
|
---|
462 | </para>
|
---|
463 |
|
---|
464 | <screen role="root"><userinput>cat > /etc/profile.d/qt4.sh << EOF
|
---|
465 | <literal># Begin /etc/profile.d/qt4.sh
|
---|
466 |
|
---|
467 | QT4DIR=/usr
|
---|
468 | export QT4DIR
|
---|
469 |
|
---|
470 | # End /etc/profile.d/qt4.sh</literal>
|
---|
471 | EOF</userinput></screen>
|
---|
472 |
|
---|
473 | <para>
|
---|
474 | If you installed <application>Qt</application> in a location other
|
---|
475 | than /usr, you need to update the following configuration files so
|
---|
476 | that <application>Qt</application> is correctly found by other packages
|
---|
477 | and system processes.</para>
|
---|
478 |
|
---|
479 | <para>As the <systemitem class="username">root</systemitem> user, update
|
---|
480 | the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
---|
481 | run-time cache file:
|
---|
482 | </para>
|
---|
483 |
|
---|
484 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
485 | <literal># Begin Qt addition
|
---|
486 |
|
---|
487 | /opt/qt4/lib
|
---|
488 |
|
---|
489 | # End Qt addition</literal>
|
---|
490 | EOF
|
---|
491 |
|
---|
492 | ldconfig</userinput></screen>
|
---|
493 |
|
---|
494 | <indexterm zone="qt4 qt4-config">
|
---|
495 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
496 | </indexterm>
|
---|
497 |
|
---|
498 | <para>
|
---|
499 | As the <systemitem class="username">root</systemitem> user, create
|
---|
500 | the <filename>/etc/profile.d/qt4.sh</filename> file:
|
---|
501 | </para>
|
---|
502 |
|
---|
503 | <screen role="root"><userinput>cat > /etc/profile.d/qt4.sh << EOF
|
---|
504 | <literal># Begin /etc/profile.d/qt4.sh
|
---|
505 |
|
---|
506 | QT4DIR=/opt/qt4
|
---|
507 |
|
---|
508 | pathappend /opt/qt4/bin PATH
|
---|
509 | pathappend /opt/qt4/lib/pkgconfig PKG_CONFIG_PATH
|
---|
510 |
|
---|
511 | export QT4DIR
|
---|
512 |
|
---|
513 | # End /etc/profile.d/qt4.sh</literal>
|
---|
514 | EOF</userinput></screen>
|
---|
515 |
|
---|
516 |
|
---|
517 | </sect3>
|
---|
518 |
|
---|
519 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
520 | href="../../xincludes/setqt.xml"/>
|
---|
521 | </sect2>
|
---|
522 |
|
---|
523 | <sect2 role="content">
|
---|
524 | <title>Contents</title>
|
---|
525 |
|
---|
526 | <segmentedlist>
|
---|
527 | <segtitle>Installed Programs</segtitle>
|
---|
528 | <segtitle>Installed Libraries</segtitle>
|
---|
529 | <segtitle>Installed Directories</segtitle>
|
---|
530 |
|
---|
531 | <seglistitem>
|
---|
532 | <seg>
|
---|
533 | assistant, designer, lconvert, linguist,
|
---|
534 | lrelease, lupdate, moc, pixeltool,
|
---|
535 | qcollectiongenerator, qdbuscpp2xml, qdbus,
|
---|
536 | qdbusviewer, qdbusxml2cpp, qdoc3, qhelpconverter,
|
---|
537 | qhelpgenerator, qmake, qmlplugindump, qmlviewer,
|
---|
538 | qt3to4, qtconfig, qttracereplay, rcc, uic3,
|
---|
539 | uic, xmlpatterns, and xmlpatternsvalidator
|
---|
540 | </seg>
|
---|
541 | <seg>
|
---|
542 | libQt3Support.so, libQtCLucene.so, libQtCore.so, libQtDBus.so,
|
---|
543 | libQtDeclarative.so, libQtDesignerComponents.so,
|
---|
544 | libQtDesigner.so, libQtGui.so, libQtHelp.so, libQtMultimedia.so,
|
---|
545 | libQtNetwork.so, libQtOpenGL.so, libQtScript.so, libQtScriptTools.so,
|
---|
546 | libQtSql.so, libQtSvg.so, libQtTest.so, libQtWebKit.so,
|
---|
547 | libQtXmlPatterns.so, and libQtXml.so
|
---|
548 | </seg>
|
---|
549 | <seg>
|
---|
550 | /usr/include/qt4,
|
---|
551 | /usr/lib/qt4,
|
---|
552 | /usr/share/doc/qt4, and
|
---|
553 | /usr/share/qt4
|
---|
554 | OR
|
---|
555 | /opt/qt4 and
|
---|
556 | /opt/qt-&qt4-version;
|
---|
557 | </seg>
|
---|
558 | </seglistitem>
|
---|
559 | </segmentedlist>
|
---|
560 |
|
---|
561 | <variablelist>
|
---|
562 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
563 | <?dbfo list-presentation="list"?>
|
---|
564 | <?dbhtml list-presentation="table"?>
|
---|
565 |
|
---|
566 | <varlistentry id="assistant-qt4">
|
---|
567 | <term><command>assistant</command></term>
|
---|
568 | <listitem>
|
---|
569 | <para>
|
---|
570 | is a tool for presenting on-line documentation.
|
---|
571 | </para>
|
---|
572 | <indexterm zone="qt4 assistant-qt4">
|
---|
573 | <primary sortas="b-assistant-qt4">assistant</primary>
|
---|
574 | </indexterm>
|
---|
575 | </listitem>
|
---|
576 | </varlistentry>
|
---|
577 |
|
---|
578 | <varlistentry id="designer-qt4">
|
---|
579 | <term><command>designer</command></term>
|
---|
580 | <listitem>
|
---|
581 | <para>
|
---|
582 | is a full-fledged GUI builder. It includes
|
---|
583 | powerful features such as preview mode, automatic widget
|
---|
584 | layout, support for custom widgets, and an advanced
|
---|
585 | property editor.
|
---|
586 | </para>
|
---|
587 | <indexterm zone="qt4 designer-qt4">
|
---|
588 | <primary sortas="b-designer-qt4">designer</primary>
|
---|
589 | </indexterm>
|
---|
590 | </listitem>
|
---|
591 | </varlistentry>
|
---|
592 |
|
---|
593 | <varlistentry id="linguist-qt4">
|
---|
594 | <term><command>linguist</command></term>
|
---|
595 | <listitem>
|
---|
596 | <para>
|
---|
597 | provides support for translating applications into
|
---|
598 | local languages.
|
---|
599 | </para>
|
---|
600 | <indexterm zone="qt4 linguist-qt4">
|
---|
601 | <primary sortas="b-linguist-qt4">linguist</primary>
|
---|
602 | </indexterm>
|
---|
603 | </listitem>
|
---|
604 | </varlistentry>
|
---|
605 |
|
---|
606 | <varlistentry id="lrelease-qt4">
|
---|
607 | <term><command>lrelease</command></term>
|
---|
608 | <listitem>
|
---|
609 | <para>
|
---|
610 | is a simple command line tool. It reads a Qt project
|
---|
611 | file and produces message files used by the application.
|
---|
612 | </para>
|
---|
613 | <indexterm zone="qt4 lrelease-qt4">
|
---|
614 | <primary sortas="b-lrelease-qt4">lrelease</primary>
|
---|
615 | </indexterm>
|
---|
616 | </listitem>
|
---|
617 | </varlistentry>
|
---|
618 |
|
---|
619 | <varlistentry id="lupdate-qt4">
|
---|
620 | <term><command>lupdate</command></term>
|
---|
621 | <listitem>
|
---|
622 | <para>
|
---|
623 | reads a Qt project file, finds the translatable
|
---|
624 | strings in the specified source, header and Qt Designer
|
---|
625 | interface files, and produces or updates the translation
|
---|
626 | files listed in the project file.
|
---|
627 | </para>
|
---|
628 | <indexterm zone="qt4 lupdate-qt4">
|
---|
629 | <primary sortas="b-lupdate-qt4">lupdate</primary>
|
---|
630 | </indexterm>
|
---|
631 | </listitem>
|
---|
632 | </varlistentry>
|
---|
633 |
|
---|
634 | <varlistentry id="moc-qt4">
|
---|
635 | <term><command>moc</command></term>
|
---|
636 | <listitem>
|
---|
637 | <para>
|
---|
638 | generates Qt meta object support code.
|
---|
639 | </para>
|
---|
640 | <indexterm zone="qt4 moc-qt4">
|
---|
641 | <primary sortas="b-moc-qt4">moc</primary>
|
---|
642 | </indexterm>
|
---|
643 | </listitem>
|
---|
644 | </varlistentry>
|
---|
645 |
|
---|
646 | <varlistentry id="pixeltool-qt4">
|
---|
647 | <term><command>pixeltool</command></term>
|
---|
648 | <listitem>
|
---|
649 | <para>
|
---|
650 | is a desktop magnifier and as you move your mouse around
|
---|
651 | the screen it will show the magnified contents in its window.
|
---|
652 | </para>
|
---|
653 | <indexterm zone="qt4 pixeltool-qt4">
|
---|
654 | <primary sortas="b-pixeltool-qt4">pixeltool</primary>
|
---|
655 | </indexterm>
|
---|
656 | </listitem>
|
---|
657 | </varlistentry>
|
---|
658 |
|
---|
659 | <varlistentry id="qmake-qt4">
|
---|
660 | <term><command>qmake</command></term>
|
---|
661 | <listitem>
|
---|
662 | <para>
|
---|
663 | uses information stored in project files to
|
---|
664 | determine what should go in the makefiles it
|
---|
665 | generates.
|
---|
666 | </para>
|
---|
667 | <indexterm zone="qt4 qmake-qt4">
|
---|
668 | <primary sortas="b-qmake-qt4">qmake</primary>
|
---|
669 | </indexterm>
|
---|
670 | </listitem>
|
---|
671 | </varlistentry>
|
---|
672 |
|
---|
673 | <varlistentry id="qt3to4-qt4">
|
---|
674 | <term><command>qt3to4</command></term>
|
---|
675 | <listitem>
|
---|
676 | <para>
|
---|
677 | qt3to4 is a tool to help update Qt3 code to Qt4.
|
---|
678 | </para>
|
---|
679 | <indexterm zone="qt4 qt3to4-qt4">
|
---|
680 | <primary sortas="b-qt3to4-qt4">qt3to4</primary>
|
---|
681 | </indexterm>
|
---|
682 | </listitem>
|
---|
683 | </varlistentry>
|
---|
684 |
|
---|
685 | <varlistentry id="qtconfig-qt4">
|
---|
686 | <term><command>qtconfig</command></term>
|
---|
687 | <listitem>
|
---|
688 | <para>
|
---|
689 | is used to customize the appearance of Qt applications.
|
---|
690 | </para>
|
---|
691 | <indexterm zone="qt4 qtconfig-qt4">
|
---|
692 | <primary sortas="b-qtconfig-qt4">qtconfig</primary>
|
---|
693 | </indexterm>
|
---|
694 | </listitem>
|
---|
695 | </varlistentry>
|
---|
696 |
|
---|
697 | <varlistentry id="rcc-qt4">
|
---|
698 | <term><command>rcc</command></term>
|
---|
699 | <listitem>
|
---|
700 | <para>
|
---|
701 | is a resource compiler used in conjunction with designer.
|
---|
702 | </para>
|
---|
703 | <indexterm zone="qt4 rcc-qt4">
|
---|
704 | <primary sortas="b-rcc-qt4">rcc</primary>
|
---|
705 | </indexterm>
|
---|
706 | </listitem>
|
---|
707 | </varlistentry>
|
---|
708 |
|
---|
709 | <varlistentry id="uic-qt4">
|
---|
710 | <term><command>uic</command></term>
|
---|
711 | <listitem>
|
---|
712 | <para>
|
---|
713 | is a Qt user interface compiler.
|
---|
714 | </para>
|
---|
715 | <indexterm zone="qt4 uic-qt4">
|
---|
716 | <primary sortas="b-uic-qt4">uic</primary>
|
---|
717 | </indexterm>
|
---|
718 | </listitem>
|
---|
719 | </varlistentry>
|
---|
720 |
|
---|
721 | <varlistentry id="uic3-qt4">
|
---|
722 | <term><command>uic3</command></term>
|
---|
723 | <listitem>
|
---|
724 | <para>
|
---|
725 | is a tool to generate Qt4 code out of
|
---|
726 | user interface files generated by the Qt3
|
---|
727 | version of designer.
|
---|
728 | </para>
|
---|
729 | <indexterm zone="qt4 uic3-qt4">
|
---|
730 | <primary sortas="b-uic3-qt4">uic3</primary>
|
---|
731 | </indexterm>
|
---|
732 | </listitem>
|
---|
733 | </varlistentry>
|
---|
734 |
|
---|
735 | </variablelist>
|
---|
736 |
|
---|
737 | </sect2>
|
---|
738 |
|
---|
739 | </sect1>
|
---|