2013-06-03 03:23:30 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2013-07-25 14:19:04 +08:00
|
|
|
<!ENTITY qt4-download-http
|
2013-08-24 04:05:56 +08:00
|
|
|
"http://download.qt-project.org/official_releases/qt/4.8/&qt4-version;/qt-everywhere-opensource-src-&qt4-version;.tar.gz">
|
2013-06-03 03:23:30 +08:00
|
|
|
<!ENTITY qt4-download-ftp " ">
|
2013-07-25 14:19:04 +08:00
|
|
|
<!ENTITY qt4-md5sum "1864987bdbb2f58f8ae8b350dfdbe133">
|
|
|
|
<!ENTITY qt4-size "231 MB">
|
2013-06-03 03:23:30 +08:00
|
|
|
<!ENTITY qt4-buildsize "1.9 GB">
|
2013-07-25 14:19:04 +08:00
|
|
|
<!ENTITY qt4-time "41 SBU">
|
2013-06-03 03:23:30 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="qt4" xreflabel="Qt-&qt4-version;">
|
|
|
|
<?dbhtml filename="qt4.html" ?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Qt-&qt4-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="qt4">
|
|
|
|
<primary sortas="a-Qt">Qt</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Qt</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<application>Qt</application> is a cross-platform application
|
|
|
|
framework that is widely used for developing application software
|
|
|
|
with a graphical user interface (GUI) (in which cases Qt is classified
|
|
|
|
as a widget toolkit), and also used for developing non-GUI programs such
|
|
|
|
as command-line tools and consoles for servers. One of the major users
|
|
|
|
of <application>Qt</application> is <application>KDE</application>.
|
|
|
|
</para>
|
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
&lfs74_checked;
|
2013-06-03 03:23:30 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&qt4-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&qt4-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &qt4-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &qt4-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &qt4-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &qt4-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Qt Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
2013-08-24 10:08:53 +08:00
|
|
|
<xref linkend="alsa-lib"/> and
|
|
|
|
<xref linkend="mesalib"/>
|
2013-06-03 03:23:30 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="cacerts"/>,
|
|
|
|
<xref linkend="dbus"/>,
|
|
|
|
<xref linkend="glib2"/>,
|
|
|
|
<xref linkend="icu"/> (unicode support),
|
|
|
|
<xref linkend="libjpeg"/>,
|
|
|
|
<xref linkend="libmng"/>,
|
|
|
|
<xref linkend="libpng"/>,
|
|
|
|
<xref linkend="libtiff"/>,
|
2013-08-24 10:08:53 +08:00
|
|
|
<xref linkend="openssl"/>, and
|
2013-06-03 03:23:30 +08:00
|
|
|
<xref linkend="sqlite"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="cups"/>,
|
|
|
|
<xref linkend="gtk2"/> (GTK+ 2 theme support),
|
|
|
|
<xref linkend="gst-plugins-base"/> (For QtWebKit HTML5 Video),
|
|
|
|
<xref linkend="mysql"/>,
|
|
|
|
<xref linkend="postgresql"/>,
|
2013-08-24 10:08:53 +08:00
|
|
|
<xref linkend="pulseaudio"/>,
|
2013-09-08 12:56:57 +08:00
|
|
|
<xref linkend="unixodbc"/>, and
|
|
|
|
<xref linkend="qtchooser"/> (runtime, if also installing Qt5 and
|
|
|
|
installing in /usr)
|
2013-06-03 03:23:30 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/qt4"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Qt</title>
|
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
<para>
|
|
|
|
There are several ways to install a complicated package such as
|
|
|
|
<application>Qt</application>. The files are not completely position
|
|
|
|
independent. Installation procedures execute the program
|
|
|
|
<command>pkg-config</command> to determine the location of package
|
|
|
|
executables, libraries, headers, and other files. For
|
|
|
|
<application>Qt</application>, <command>pkg-config</command> will look
|
|
|
|
for the appropriate <filename>lib/pkgconfig/Qt*.pc</filename> files
|
|
|
|
which must be modified if relocating the package. These files are set up
|
|
|
|
correctly by the build process.
|
|
|
|
</para>
|
2013-08-24 10:08:53 +08:00
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
<para>
|
|
|
|
The default installation places the files in <filename
|
2013-08-24 10:08:53 +08:00
|
|
|
class='directory'>/usr/local/qt/</filename>. Many commercial
|
2013-08-24 09:27:03 +08:00
|
|
|
distributions place the files in the system's <filename
|
2013-08-24 10:08:53 +08:00
|
|
|
class='directory'>/usr</filename> hierarchy. The package can also be
|
2013-08-24 09:27:03 +08:00
|
|
|
installed in an arbitrary directory.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The advantage of installing in <filename
|
2013-08-24 10:08:53 +08:00
|
|
|
class='directory'>/usr</filename> is that no updates to the
|
2013-08-24 09:27:03 +08:00
|
|
|
<filename>/etc/ld.so.conf</filename> or
|
|
|
|
<filename>/etc/man_db.conf</filename> files are required. The package
|
|
|
|
files are distributed within several subdirectories of the <filename
|
2013-08-24 10:08:53 +08:00
|
|
|
class='directory'>/usr</filename> hierarchy. This is the method that
|
|
|
|
most commercial distributions use. It is also supported by the
|
|
|
|
optional <application>qtchooser</application> application.
|
2013-08-24 09:27:03 +08:00
|
|
|
</para>
|
|
|
|
|
2013-09-08 12:56:57 +08:00
|
|
|
<para>
|
|
|
|
The disadvantage of installing in <filename
|
|
|
|
class='directory'>/usr</filename> is that the executable filenames
|
|
|
|
for <application>Qt4</application> and <application>Qt5</application>
|
|
|
|
conflict if both packages are installed in the
|
|
|
|
same directory. The instructions below give a workaround for
|
|
|
|
this problem using the helper program <xref linkend='qtchooser'/>.
|
|
|
|
This requires renaming the Qt executables with a version suffix.
|
|
|
|
</para>
|
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
<para>
|
2013-08-24 10:08:53 +08:00
|
|
|
The advantage of installing <application>Qt4</application> in a custom
|
2013-08-24 09:27:03 +08:00
|
|
|
directory such as <filename
|
2013-08-24 10:08:53 +08:00
|
|
|
class='directory'>/opt/qt-&qt4-version;</filename> is that it keeps all
|
2013-08-24 09:27:03 +08:00
|
|
|
the package files consolidated in a dedicated directory hierarchy. By
|
|
|
|
using this method, an update can be made without overwriting a previous
|
|
|
|
installation and users can easily revert to a previous version by
|
2013-08-24 10:08:53 +08:00
|
|
|
changing one symbolic link or merely changing the PATH variable. It
|
|
|
|
also allows a developer to maintain multiple versions of
|
2013-09-08 12:56:57 +08:00
|
|
|
<application>Qt4</application> or <application>Qt5</application>
|
|
|
|
for testing.
|
2013-08-24 09:27:03 +08:00
|
|
|
</para>
|
|
|
|
|
2013-09-08 12:56:57 +08:00
|
|
|
<caution>
|
2013-08-12 02:36:44 +08:00
|
|
|
<para>
|
|
|
|
If you did not install some of the recommended dependencies, examine
|
|
|
|
<command>./configure --help</command> output to check how to disable
|
|
|
|
them or use internal versions bundled in the source tarball.
|
|
|
|
</para>
|
2013-09-08 12:56:57 +08:00
|
|
|
</caution>
|
2013-08-12 02:36:44 +08:00
|
|
|
|
2013-09-08 12:56:57 +08:00
|
|
|
<warning>
|
2013-06-03 03:23:30 +08:00
|
|
|
<para>
|
2013-09-08 12:56:57 +08:00
|
|
|
If <application>Qt4</application> is being reinstalled into the
|
2013-08-24 09:27:03 +08:00
|
|
|
same directory as an existing instance, run the
|
2013-09-08 12:56:57 +08:00
|
|
|
following commands from a console or non-Qt4 based window manager.
|
|
|
|
It overwrites <application>Qt4</application> libraries that should
|
2013-06-03 03:23:30 +08:00
|
|
|
not be in use during the install process.
|
|
|
|
</para>
|
2013-09-08 12:56:57 +08:00
|
|
|
</warning>
|
2013-06-03 03:23:30 +08:00
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
The build time and space required for the full
|
|
|
|
<application>Qt</application> is quite long. The instructions below
|
|
|
|
do not build the tutorials and examples. Removing the
|
|
|
|
<parameter>-nomake</parameter> lines will create a complete build.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
<bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>
|
|
|
|
|
2013-06-03 03:23:30 +08:00
|
|
|
<para>
|
2013-09-08 12:56:57 +08:00
|
|
|
Install <application>Qt4</application> by running the
|
2013-06-03 03:23:30 +08:00
|
|
|
following commands:
|
|
|
|
</para>
|
|
|
|
|
2013-09-08 12:56:57 +08:00
|
|
|
<note><para>
|
|
|
|
If <emphasis>not</emphasis> also installing <application>Qt5</application>
|
|
|
|
into the /usr directory, change the entry for -bindir below to /usr/bin.
|
|
|
|
</para></note>
|
|
|
|
|
|
|
|
|
2013-08-24 04:05:56 +08:00
|
|
|
<screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
|
|
|
|
config.tests/unix/libmng/libmng.cpp &&
|
|
|
|
|
2013-08-24 10:08:53 +08:00
|
|
|
./configure -prefix /usr \
|
|
|
|
-bindir /usr/lib/qt4/bin \
|
|
|
|
-plugindir /usr/lib/qt4/plugins \
|
|
|
|
-importdir /usr/lib/qt4/imports \
|
|
|
|
-headerdir /usr/include/qt4 \
|
|
|
|
-datadir /usr/share/qt4 \
|
|
|
|
-sysconfdir /etc/xdg \
|
|
|
|
-docdir /usr/share/doc/qt4 \
|
|
|
|
-demosdir /usr/share/doc/qt4/demos \
|
|
|
|
-examplesdir /usr/share/doc/qt4/examples \
|
2013-06-03 03:23:30 +08:00
|
|
|
-translationdir /usr/share/qt4/translations \
|
2013-08-24 10:08:53 +08:00
|
|
|
-confirm-license \
|
|
|
|
-opensource \
|
|
|
|
-release \
|
|
|
|
-dbus-linked \
|
|
|
|
-openssl-linked \
|
|
|
|
-system-sqlite \
|
|
|
|
-no-phonon \
|
2013-06-03 03:23:30 +08:00
|
|
|
-no-phonon-backend \
|
2013-08-24 10:08:53 +08:00
|
|
|
-no-nis \
|
|
|
|
-no-openvg \
|
|
|
|
-nomake demos \
|
|
|
|
-nomake examples \
|
|
|
|
-optimized-qmake &&
|
|
|
|
|
2013-06-03 03:23:30 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
|
|
rm -rf /usr/tests &&
|
|
|
|
install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
2013-08-24 10:08:53 +08:00
|
|
|
/usr/share/pixmaps/qt4logo.png &&
|
2013-06-03 03:23:30 +08:00
|
|
|
install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \
|
|
|
|
/usr/share/pixmaps/assistant-qt4.png &&
|
|
|
|
install -v -Dm644 tools/designer/src/designer/images/designer.png \
|
2013-08-24 10:08:53 +08:00
|
|
|
/usr/share/pixmaps/designer-qt4.png &&
|
2013-06-03 03:23:30 +08:00
|
|
|
install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \
|
2013-08-24 10:08:53 +08:00
|
|
|
/usr/share/pixmaps/linguist-qt4.png &&
|
2013-06-03 03:23:30 +08:00
|
|
|
install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
|
|
|
/usr/share/pixmaps/qdbusviewer-qt4.png</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Remove references to the build directory from installed files by
|
|
|
|
running the following command as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2013-08-24 04:05:56 +08:00
|
|
|
<screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \
|
|
|
|
Designer Gui Help Multimedia Network OpenGL Script \
|
|
|
|
ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml
|
|
|
|
do
|
|
|
|
sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' \
|
|
|
|
/usr/lib/libQt${file}.prl
|
|
|
|
perl -pi -e "s, -L$PWD/?\S+,,g" /usr/lib/pkgconfig/Qt${file}.pc
|
|
|
|
done
|
|
|
|
unset file</userinput></screen>
|
2013-06-03 03:23:30 +08:00
|
|
|
|
|
|
|
<para>
|
2013-09-08 12:56:57 +08:00
|
|
|
If also installing Qt5 into /usr,
|
|
|
|
symlink the <application>Qt4</application> executables into
|
2013-06-03 03:23:30 +08:00
|
|
|
<filename class="directory">/usr/bin</filename> by running the
|
|
|
|
following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>for file in /usr/lib/qt4/bin/*
|
|
|
|
do
|
|
|
|
ln -sfv ../lib/qt4/bin/$(basename $file) /usr/bin/$(basename $file)-qt4
|
|
|
|
done</userinput></screen>
|
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
<bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt4-version;</bridgehead>
|
|
|
|
|
2013-09-08 12:56:57 +08:00
|
|
|
<para>
|
|
|
|
This section provides an alternate way to install Qt4 by installing
|
|
|
|
almost all of the files in the <filename class="directory">/opt</filename>
|
|
|
|
directory. This allows management of all Qt4 related files in one unit.
|
|
|
|
For instance, a new version of Qt4 can be installed without over-writing
|
|
|
|
the existing installation and entire Qt4 instances can be easily removed.
|
|
|
|
However, it has the disadvantage of needing some extra configuration.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
<para>
|
2013-08-24 10:08:53 +08:00
|
|
|
Install <application>Qt</application> in /opt/qt-&qt4-version;
|
2013-08-24 09:27:03 +08:00
|
|
|
by running the following commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
|
|
|
|
config.tests/unix/libmng/libmng.cpp &&
|
|
|
|
|
|
|
|
export QTDIR=/opt/qt-&qt4-version;
|
|
|
|
|
|
|
|
./configure -prefix $QTDIR \
|
|
|
|
-sysconfdir /etc/xdg \
|
|
|
|
-confirm-license \
|
|
|
|
-opensource \
|
|
|
|
-release \
|
|
|
|
-dbus-linked \
|
|
|
|
-openssl-linked \
|
|
|
|
-system-sqlite \
|
|
|
|
-plugin-sql-sqlite \
|
|
|
|
-no-phonon \
|
|
|
|
-no-phonon-backend \
|
|
|
|
-no-nis \
|
|
|
|
-no-openvg \
|
|
|
|
-nomake demos \
|
|
|
|
-nomake examples \
|
|
|
|
-optimized-qmake &&
|
|
|
|
|
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2013-09-24 04:26:00 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
|
|
|
ln -svfn qt-&qt4-version; /opt/qt &&
|
2013-08-24 09:27:03 +08:00
|
|
|
|
|
|
|
install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
|
|
|
/usr/share/pixmaps/qt4logo.png &&
|
|
|
|
install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \
|
|
|
|
/usr/share/pixmaps/assistant-qt4.png &&
|
|
|
|
install -v -Dm644 tools/designer/src/designer/images/designer.png \
|
|
|
|
/usr/share/pixmaps/designer-qt4.png &&
|
|
|
|
install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \
|
|
|
|
/usr/share/pixmaps/linguist-qt4.png &&
|
|
|
|
install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
|
|
|
/usr/share/pixmaps/qdbusviewer-qt4.png</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Remove references to the build directory from installed files by
|
|
|
|
running the following command as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \
|
|
|
|
Designer Gui Help Multimedia Network OpenGL Script \
|
|
|
|
ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml; do
|
|
|
|
sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' \
|
|
|
|
$QTDIR/lib/libQt${file}.prl
|
|
|
|
perl -pi -e "s, -L$PWD/?\S+,,g" $QTDIR/lib/pkgconfig/Qt${file}.pc
|
|
|
|
done
|
|
|
|
|
|
|
|
unset file</userinput></screen>
|
|
|
|
|
2013-06-03 03:23:30 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2013-08-24 04:05:56 +08:00
|
|
|
<para>
|
|
|
|
<command>sed -i "..." ...</command>: This command fixes
|
|
|
|
detection of <application>libmng</application> 2.0.
|
|
|
|
</para>
|
|
|
|
|
2013-06-03 03:23:30 +08:00
|
|
|
<para>
|
|
|
|
<parameter>-confirm-license</parameter>: Accept license
|
|
|
|
without prompting user during configuration.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>-opensource</parameter>: Install the opensource
|
|
|
|
version of <application>Qt</application>.
|
|
|
|
</para>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<para>
|
|
|
|
<parameter>-release</parameter>: This switch disables
|
|
|
|
building with debugging symbols.
|
|
|
|
</para>
|
2013-06-03 03:23:30 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>-nomake examples -nomake demos</parameter>:
|
|
|
|
These switches disable building programs that are only of
|
|
|
|
interest to a <application>Qt</application> developer.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>-system-sqlite</parameter>: This switch enables use
|
|
|
|
the system version of <application>SQLite</application>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>-no-nis</parameter>: This switch disables support
|
|
|
|
for Network Information Service (NIS) which has been
|
|
|
|
deprecated in recent versions of <application>Glibc</application>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>-no-phonon -no-phonon-backend</parameter>: These
|
|
|
|
switches disable building of the bundled
|
|
|
|
<application>Phonon</application> library. Better version
|
|
|
|
is provided by <xref linkend="phonon"/> package.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>-dbus-linkend -openssl-linkend</parameter>: These
|
|
|
|
switches enable explicit linking of the
|
|
|
|
<application>D-Bus</application> and
|
|
|
|
<application>OpenSSL</application> libraries into
|
|
|
|
<application>Qt</application> libraries instead of
|
|
|
|
<command>dlopen()</command>-ing them.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>-no-openvg</parameter>: This switch disables
|
|
|
|
<application>OpenVG</application> support in
|
|
|
|
<application>Qt</application>.
|
|
|
|
</para>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<para>
|
|
|
|
<parameter>-optimized-qmake</parameter>: This switch enables
|
|
|
|
building of the optimized <command>qmake</command> program.
|
|
|
|
</para>
|
|
|
|
|
2013-06-03 03:23:30 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring Qt</title>
|
|
|
|
|
|
|
|
<sect3 id="qt4-config">
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>
|
2013-08-24 10:08:53 +08:00
|
|
|
If you installed <application>Qt</application> in /usr,
|
|
|
|
create an environment variable needed by certain packages.
|
2013-06-03 03:23:30 +08:00
|
|
|
As the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cat > /etc/profile.d/qt.sh << EOF
|
|
|
|
<literal># Begin /etc/profile.d/qt.sh
|
|
|
|
|
|
|
|
QTDIR=/usr
|
|
|
|
|
|
|
|
export QTDIR
|
|
|
|
|
|
|
|
# End /etc/profile.d/qt.sh</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
<para>
|
|
|
|
If you installed <application>Qt</application> in a location other
|
2013-08-24 10:08:53 +08:00
|
|
|
than /usr, you need to update the following configuration files so
|
|
|
|
that <application>Qt</application> is correctly found by other packages
|
|
|
|
and system processes.</para>
|
|
|
|
|
|
|
|
<para>As the <systemitem class="username">root</systemitem> user, update
|
2013-08-24 09:27:03 +08:00
|
|
|
the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
|
|
|
run-time cache file:
|
|
|
|
</para>
|
2013-08-24 10:08:53 +08:00
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
<screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
2013-09-08 12:56:57 +08:00
|
|
|
<literal># Begin Qt addition
|
2013-08-24 09:27:03 +08:00
|
|
|
|
|
|
|
/opt/qt/lib
|
|
|
|
|
|
|
|
# End Qt addition</literal>
|
|
|
|
EOF
|
|
|
|
|
|
|
|
ldconfig</userinput></screen>
|
2013-08-24 10:08:53 +08:00
|
|
|
|
2013-09-08 12:56:57 +08:00
|
|
|
<indexterm zone="qt4 qt4-config">
|
2013-08-24 10:08:53 +08:00
|
|
|
<primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
<para>
|
|
|
|
As the <systemitem class="username">root</systemitem> user, create
|
|
|
|
the <filename>/etc/profile.d/qt.sh</filename> file:
|
|
|
|
</para>
|
2013-08-24 10:08:53 +08:00
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
<screen role="root"><userinput>cat > /etc/profile.d/qt.sh << EOF
|
2013-09-08 12:56:57 +08:00
|
|
|
<literal># Begin /etc/profile.d/qt.sh
|
2013-08-24 10:08:53 +08:00
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
QTDIR=/opt/qt
|
2013-08-24 10:08:53 +08:00
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
pathappend /opt/qt/bin PATH
|
|
|
|
pathappend /opt/qt/lib/pkgconfig PKG_CONFIG_PATH
|
2013-08-24 10:08:53 +08:00
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
export QTDIR
|
2013-08-24 10:08:53 +08:00
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
# End /etc/profile.d/qt.sh</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
2013-06-03 03:23:30 +08:00
|
|
|
<para>
|
2013-09-08 12:56:57 +08:00
|
|
|
For all methods, create the menu entries for installed applications.
|
2013-06-03 03:23:30 +08:00
|
|
|
As the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<screen role="root"><userinput>install -dm755 /usr/share/applications
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
cat > /usr/share/applications/qtconfig-qt4.desktop << "EOF"
|
2013-06-03 03:23:30 +08:00
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt4 Config
|
|
|
|
Comment=Configure Qt4 behavior, styles, fonts
|
|
|
|
Exec=qtconfig-qt4
|
|
|
|
Icon=qt4logo
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Settings;</literal>
|
|
|
|
EOF
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2013-06-03 03:23:30 +08:00
|
|
|
cat > /usr/share/applications/assistant-qt4.desktop << "EOF"
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt4 Assistant
|
|
|
|
Comment=Shows Qt4 documentation and examples
|
|
|
|
Exec=assistant-qt4
|
|
|
|
Icon=assistant-qt4
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;Documentation;</literal>
|
|
|
|
EOF
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2013-06-03 03:23:30 +08:00
|
|
|
cat > /usr/share/applications/designer-qt4.desktop << "EOF"
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt4 Designer
|
|
|
|
Comment=Design GUIs for Qt4 applications
|
|
|
|
Exec=designer-qt4
|
|
|
|
Icon=designer-qt4
|
|
|
|
MimeType=application/x-designer;
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;</literal>
|
|
|
|
EOF
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2013-06-03 03:23:30 +08:00
|
|
|
cat > /usr/share/applications/linguist-qt4.desktop << "EOF"
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt4 Linguist
|
|
|
|
Comment=Add translations to Qt4 applications
|
|
|
|
Exec=linguist-qt4
|
|
|
|
Icon=linguist-qt4
|
|
|
|
MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;</literal>
|
2013-08-12 02:36:44 +08:00
|
|
|
EOF
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
cat > /usr/share/applications/qdbusviewer-qt4.desktop << "EOF"
|
2013-06-03 03:23:30 +08:00
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt4 QDbusViewer
|
|
|
|
GenericName=D-Bus Debugger
|
|
|
|
Comment=Debug D-Bus applications
|
|
|
|
Exec=qdbusviewer-qt4
|
|
|
|
Icon=qdbusviewer-qt4
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;Debugger;</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2013-08-12 02:36:44 +08:00
|
|
|
assistant-qt4, designer-qt4, lconvert-qt4, linguist-qt4,
|
|
|
|
lrelease-qt4, lupdate-qt4, moc-qt4, pixeltool-qt4,
|
|
|
|
qcollectiongenerator-qt4, qdbuscpp2xml-qt4, qdbus-qt4,
|
|
|
|
qdbusviewer-qt4, qdbusxml2cpp-qt4, qdoc3-qt4, qhelpconverter-qt4,
|
|
|
|
qhelpgenerator-qt4, qmake-qt4, qmlplugindump-qt4, qmlviewer-qt4,
|
|
|
|
qt3to4-qt4, qtconfig-qt4, qttracereplay-qt4, rcc-qt4, uic3-qt4,
|
|
|
|
uic-qt4, xmlpatterns-qt4 and xmlpatternsvalidator-qt4
|
2013-06-03 03:23:30 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libQt3Support.so, libQtCLucene.so, libQtCore.so, libQtDBus.so,
|
2013-08-12 02:36:44 +08:00
|
|
|
libQtDeclarative.so, libQtDesignerComponents.so,
|
|
|
|
libQtDesigner.so, libQtGui.so, libQtHelp.so, libQtMultimedia.so,
|
|
|
|
libQtNetwork.so, libQtOpenGL.so, libQtScript.so, libQtScriptTools.so,
|
|
|
|
libQtSql.so, libQtSvg.so, libQtTest.so, libQtWebKit.so,
|
|
|
|
libQtXmlPatterns.so and libQtXml.so
|
2013-06-03 03:23:30 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/qt4,
|
|
|
|
/usr/lib/qt4,
|
2013-08-24 09:27:03 +08:00
|
|
|
/usr/share/doc/qt4, and
|
2013-08-24 10:08:53 +08:00
|
|
|
/usr/share/qt4 (OR $QTDIR)
|
2013-08-24 09:27:03 +08:00
|
|
|
(OR $QTDIR)
|
2013-06-03 03:23:30 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="assistant-qt4">
|
|
|
|
<term><command>assistant-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a tool for presenting on-line documentation.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 assistant-qt4">
|
|
|
|
<primary sortas="b-assistant-qt4">assistant-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="designer-qt4">
|
|
|
|
<term><command>designer-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a full-fledged GUI builder. It includes
|
|
|
|
powerful features such as preview mode, automatic widget
|
|
|
|
layout, support for custom widgets, and an advanced
|
|
|
|
property editor.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 designer-qt4">
|
|
|
|
<primary sortas="b-designer-qt4">designer-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="linguist-qt4">
|
|
|
|
<term><command>linguist-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
provides support for translating applications into
|
|
|
|
local languages.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 linguist-qt4">
|
|
|
|
<primary sortas="b-linguist-qt4">linguist-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="lrelease-qt4">
|
|
|
|
<term><command>lrelease-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a simple command line tool. It reads a Qt project
|
|
|
|
file and produces message files used by the application.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 lrelease-qt4">
|
|
|
|
<primary sortas="b-lrelease-qt4">lrelease-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="lupdate-qt4">
|
|
|
|
<term><command>lupdate-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
reads a Qt project file, finds the translatable
|
|
|
|
strings in the specified source, header and Qt Designer
|
|
|
|
interface files, and produces or updates the translation
|
|
|
|
files listed in the project file.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 lupdate-qt4">
|
|
|
|
<primary sortas="b-lupdate-qt4">lupdate-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="moc-qt4">
|
|
|
|
<term><command>moc-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
generates Qt meta object support code.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 moc-qt4">
|
|
|
|
<primary sortas="b-moc-qt4">moc-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="pixeltool-qt4">
|
|
|
|
<term><command>pixeltool-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a desktop magnifier and as you move your mouse around
|
|
|
|
the screen it will show the magnified contents in its window.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 pixeltool-qt4">
|
|
|
|
<primary sortas="b-pixeltool-qt4">pixeltool-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="qmake-qt4">
|
|
|
|
<term><command>qmake-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
uses information stored in project files to
|
|
|
|
determine what should go in the makefiles it
|
|
|
|
generates.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 qmake-qt4">
|
|
|
|
<primary sortas="b-qmake-qt4">qmake-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="qt3to4-qt4">
|
|
|
|
<term><command>qt3to4-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
qt3to4 is a tool to help update Qt3 code to Qt4.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 qt3to4-qt4">
|
|
|
|
<primary sortas="b-qt3to4-qt4">qt3to4-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="qtconfig-qt4">
|
|
|
|
<term><command>qtconfig-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to customize the appearance of Qt applications.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 qtconfig-qt4">
|
|
|
|
<primary sortas="b-qtconfig-qt4">qtconfig-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="rcc-qt4">
|
|
|
|
<term><command>rcc-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a resource compiler used in conjunction with designer.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 rcc-qt4">
|
|
|
|
<primary sortas="b-rcc-qt4">rcc-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="uic-qt4">
|
|
|
|
<term><command>uic-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a Qt user interface compiler.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 uic-qt4">
|
|
|
|
<primary sortas="b-uic-qt4">uic-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="uic3-qt4">
|
|
|
|
<term><command>uic3-qt4</command></term>
|
2013-06-03 03:23:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a tool to generate Qt4 code out of
|
|
|
|
user interface files generated by the Qt3
|
|
|
|
version of designer.
|
|
|
|
</para>
|
2013-08-12 02:36:44 +08:00
|
|
|
<indexterm zone="qt4 uic3-qt4">
|
|
|
|
<primary sortas="b-uic3-qt4">uic3-qt4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|