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