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