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>
|
|
|
|
|
2014-02-20 20:20:28 +08:00
|
|
|
&lfs75_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">
|
2014-01-03 04:44:00 +08:00
|
|
|
<xref linkend="xorg7-lib"/>
|
2013-06-03 03:23:30 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
2014-01-03 04:44:00 +08:00
|
|
|
<xref linkend="alsa-lib"/>,
|
|
|
|
<xref linkend="mesalib"/>,
|
2013-06-03 03:23:30 +08:00
|
|
|
<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),
|
2013-11-12 01:10:53 +08:00
|
|
|
<xref linkend="mariadb"/> or <xref linkend="mysql"/>,
|
2013-06-03 03:23:30 +08:00
|
|
|
<xref linkend="postgresql"/>,
|
2014-02-26 03:00:30 +08:00
|
|
|
<xref linkend="pulseaudio"/>, and
|
|
|
|
<xref linkend="unixodbc"/>
|
2013-06-03 03:23:30 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/qt4"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../xincludes/qt-alternatives.xml"/>
|
|
|
|
|
2013-06-03 03:23:30 +08:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Qt</title>
|
|
|
|
|
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>
|
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
<!-- ==== Method 1 ====== -->
|
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>
|
2014-02-26 03:00:30 +08:00
|
|
|
Install <application>Qt4</application> into the <filename
|
|
|
|
class='directory'>/usr</filename> hierarchy by running the following
|
|
|
|
commands:
|
2013-06-03 03:23:30 +08:00
|
|
|
</para>
|
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
<screen><userinput>export QTLINK=/usr
|
2013-09-08 12:56:57 +08:00
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
|
2013-08-24 04:05:56 +08:00
|
|
|
config.tests/unix/libmng/libmng.cpp &&
|
2014-02-26 03:00:30 +08:00
|
|
|
|
2013-10-30 22:19:55 +08:00
|
|
|
sed -i '/CONFIG -/ a\isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../..' \
|
|
|
|
src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro &&
|
2013-08-24 04:05:56 +08:00
|
|
|
|
2013-08-24 10:08:53 +08:00
|
|
|
./configure -prefix /usr \
|
2014-02-26 03:00:30 +08:00
|
|
|
-bindir /usr/bin \
|
2013-08-24 10:08:53 +08:00
|
|
|
-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>
|
|
|
|
|
2013-11-08 03:25:16 +08:00
|
|
|
<para>
|
|
|
|
Remove references to the build directory from the
|
|
|
|
<filename class="extension">.pc</filename> files by running
|
|
|
|
the following command:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
|
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
<para>Now as the <systemitem class="username">root</systemitem> user:</para>
|
2013-06-03 03:23:30 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make install &&
|
2014-02-26 03:00:30 +08:00
|
|
|
rm -rf /usr/tests</userinput></screen>
|
2013-06-03 03:23:30 +08:00
|
|
|
|
|
|
|
<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-11-08 03:25:16 +08:00
|
|
|
<screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \
|
|
|
|
Designer Gui Help Multimedia Network OpenGL Script \
|
2014-02-26 03:00:30 +08:00
|
|
|
ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml phonon; do
|
|
|
|
|
|
|
|
[ -e /usr/lib/libQt${file}.prl ] &&
|
|
|
|
sed -r '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' \
|
|
|
|
-i /usr/lib/libQt${file}.prl
|
2013-08-24 04:05:56 +08:00
|
|
|
done
|
|
|
|
unset file</userinput></screen>
|
2013-06-03 03:23:30 +08:00
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
<!-- ==== Method 2 ====== -->
|
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>
|
2014-02-26 03:00:30 +08:00
|
|
|
This section provides for installing Qt4 almost all of the files in the
|
|
|
|
<filename class="directory">/opt</filename> directory.
|
2013-09-08 12:56:57 +08:00
|
|
|
</para>
|
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
<screen><userinput>export QTDIR=/opt/qt-&qt4-version; &&
|
|
|
|
export QTLINK=/opt/qt &&
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
|
2013-08-24 09:27:03 +08:00
|
|
|
config.tests/unix/libmng/libmng.cpp &&
|
2014-02-26 03:00:30 +08:00
|
|
|
|
2013-10-30 22:19:55 +08:00
|
|
|
sed -i '/CONFIG -/ a\isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../..' \
|
|
|
|
src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro &&
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
./configure -prefix $QTDIR \
|
2013-08-24 09:27:03 +08:00
|
|
|
-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>
|
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
<screen role="root"><userinput>make install
|
|
|
|
ln -svfn $QTDIR /opt/qt</userinput></screen>
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
<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 `basename -a -s .prl $QTDIR/lib/lib*.prl`; do
|
|
|
|
sed -r '/^QMAKE_PRL_BUILD_DIR/d' \
|
|
|
|
-r 's/(QMAKE_PRL_LIBS =).*/\1/' \
|
|
|
|
-i $QTDIR/lib/${file}.prl
|
|
|
|
|
|
|
|
perl -pi -e "s, -L$PWD/?\S+,,g" $QTDIR/lib/pkgconfig/${file##lib}.pc
|
|
|
|
done
|
|
|
|
|
|
|
|
unset file</userinput></screen>
|
|
|
|
|
|
|
|
<!-- ==== Common ====== -->
|
|
|
|
<bridgehead renderas="sect3">Continuing for Both Methods</bridgehead>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
For all methods, install images and create the menu entries
|
|
|
|
for installed applications. Be sure that the <envar>QTLINK</envar>
|
|
|
|
variable is defined in root's environment and
|
|
|
|
as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
2013-08-24 09:27:03 +08:00
|
|
|
/usr/share/pixmaps/qt4logo.png &&
|
2014-02-26 03:00:30 +08:00
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \
|
|
|
|
/usr/share/pixmaps/assistant-qt4.png &&
|
2014-02-26 03:00:30 +08:00
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
install -v -Dm644 tools/designer/src/designer/images/designer.png \
|
|
|
|
/usr/share/pixmaps/designer-qt4.png &&
|
2014-02-26 03:00:30 +08:00
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \
|
|
|
|
/usr/share/pixmaps/linguist-qt4.png &&
|
2014-02-26 03:00:30 +08:00
|
|
|
|
2013-08-24 09:27:03 +08:00
|
|
|
install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
2014-02-26 03:00:30 +08:00
|
|
|
/usr/share/pixmaps/qdbusviewer-qt4.png &&
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
install -dm755 /usr/share/applications &&
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
cat > /usr/share/applications/assistant-qt4.desktop << EOF
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt4 Assistant
|
|
|
|
Comment=Shows Qt4 documentation and examples
|
|
|
|
Exec=$QTLINK/bin/assistant
|
|
|
|
Icon=assistant-qt4.png
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;Documentation;</literal>
|
|
|
|
EOF
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
cat > /usr/share/applications/designer-qt4.desktop << EOF
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt4 Designer
|
|
|
|
Comment=Design GUIs for Qt4 applications
|
|
|
|
Exec=$QTLINK/bin/designer
|
|
|
|
Icon=designer-qt4.png
|
|
|
|
MimeType=application/x-designer;
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;</literal>
|
|
|
|
EOF
|
2013-08-24 09:27:03 +08:00
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
cat > /usr/share/applications/linguist-qt4.desktop << EOF
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt4 Linguist
|
|
|
|
Comment=Add translations to Qt4 applications
|
|
|
|
Exec=$QTLINK/bin/linguist
|
|
|
|
Icon=linguist-qt4.png
|
|
|
|
MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;</literal>
|
|
|
|
EOF
|
2014-02-08 02:05:27 +08:00
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
cat > /usr/share/applications/qdbusviewer-qt4.desktop << EOF
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt4 QDbusViewer
|
|
|
|
GenericName=D-Bus Debugger
|
|
|
|
Comment=Debug D-Bus applications
|
|
|
|
Exec=$QTLINK/bin/qdbusviewer
|
|
|
|
Icon=qdbusviewer-qt4.png
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;Debugger;</literal>
|
|
|
|
EOF
|
2014-02-08 02:05:27 +08:00
|
|
|
|
2014-02-26 03:00:30 +08:00
|
|
|
cat > /usr/share/applications/qtconfig-qt4.desktop << EOF
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt4 Config
|
|
|
|
Comment=Configure Qt4 behavior, styles, fonts
|
2014-03-01 18:15:41 +08:00
|
|
|
Exec=$QTLINK/bin/qtconfig
|
2014-02-26 03:00:30 +08:00
|
|
|
Icon=qt4logo.png
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Settings;</literal>
|
|
|
|
EOF</userinput></screen>
|
2014-02-08 02:05:27 +08:00
|
|
|
|
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>
|
2013-10-30 22:19:55 +08:00
|
|
|
<command>sed -i ...</command>: First command fixes detection of
|
|
|
|
<application>libmng</application> 2.0 and second one prevents configure
|
2014-02-26 03:00:30 +08:00
|
|
|
script from writing to the root directory if building as privileged user.
|
2013-08-24 04:05:56 +08:00
|
|
|
</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
|
2014-02-26 03:00:30 +08:00
|
|
|
interest to a developer using <application>Qt</application>.
|
2013-06-03 03:23:30 +08:00
|
|
|
</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-11-08 00:58:50 +08:00
|
|
|
<para>
|
|
|
|
<option>-no-dbus</option>: Use this switch if you don't have
|
|
|
|
<application>D-Bus</application> installed.
|
|
|
|
</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
|
|
|
|
|
|
|
</sect3>
|
2014-02-26 03:00:30 +08:00
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/setqt.xml"/>
|
2013-06-03 03:23:30 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2014-02-26 03:00:30 +08:00
|
|
|
assistant, designer, lconvert, linguist,
|
|
|
|
lrelease, lupdate, moc, pixeltool,
|
|
|
|
qcollectiongenerator, qdbuscpp2xml, qdbus,
|
|
|
|
qdbusviewer, qdbusxml2cpp, qdoc3, qhelpconverter,
|
|
|
|
qhelpgenerator, qmake, qmlplugindump, qmlviewer,
|
|
|
|
qt3to4, qtconfig, qttracereplay, rcc, uic3,
|
|
|
|
uic, xmlpatterns, and xmlpatternsvalidator
|
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,
|
2014-02-26 03:00:30 +08:00
|
|
|
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
|
2014-02-26 03:00:30 +08:00
|
|
|
/usr/share/qt4
|
|
|
|
OR
|
|
|
|
/opt/qt and
|
|
|
|
/opt/qt-&qt4-version;
|
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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>assistant</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-assistant-qt4">assistant</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="designer-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>designer</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-designer-qt4">designer</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="linguist-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>linguist</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-linguist-qt4">linguist</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="lrelease-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>lrelease</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-lrelease-qt4">lrelease</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="lupdate-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>lupdate</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-lupdate-qt4">lupdate</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="moc-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>moc</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-moc-qt4">moc</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="pixeltool-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>pixeltool</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-pixeltool-qt4">pixeltool</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="qmake-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>qmake</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-qmake-qt4">qmake</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="qt3to4-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>qt3to4</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-qt3to4-qt4">qt3to4</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="qtconfig-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>qtconfig</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-qtconfig-qt4">qtconfig</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="rcc-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>rcc</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-rcc-qt4">rcc</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="uic-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>uic</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-uic-qt4">uic</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-08-12 02:36:44 +08:00
|
|
|
<varlistentry id="uic3-qt4">
|
2014-02-26 03:00:30 +08:00
|
|
|
<term><command>uic3</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">
|
2014-02-26 03:00:30 +08:00
|
|
|
<primary sortas="b-uic3-qt4">uic3</primary>
|
2013-06-03 03:23:30 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|