2013-08-11 10:12:50 +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-12-13 08:35:03 +08:00
|
|
|
<!ENTITY qt5-major "5.2">
|
2013-08-11 10:12:50 +08:00
|
|
|
<!ENTITY qt5-url "http://download.qt-project.org/official_releases/qt/&qt5-major;/&qt5-version;/single">
|
|
|
|
|
|
|
|
<!ENTITY qt5-download-http "&qt5-url;/qt-everywhere-opensource-src-&qt5-version;.tar.xz">
|
|
|
|
<!ENTITY qt5-download-ftp " ">
|
2014-02-08 02:05:27 +08:00
|
|
|
<!ENTITY qt5-md5sum "0c8d2aa45f38be9c3f7c9325eb059d9d">
|
2013-12-13 08:35:03 +08:00
|
|
|
<!ENTITY qt5-size "166 MB">
|
|
|
|
<!ENTITY qt5-buildsize "2.6 GB (160 MB installed)">
|
|
|
|
<!ENTITY qt5-time "60 SBU">
|
2013-08-11 10:12:50 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="qt5" xreflabel="Qt-&qt5-version;">
|
|
|
|
<?dbhtml filename="qt5.html" ?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Qt-&qt5-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="qt5">
|
|
|
|
<primary sortas="a-Qt">Qt</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
2013-12-13 08:35:03 +08:00
|
|
|
<title>Introduction to Qt5</title>
|
2013-08-11 10:12:50 +08:00
|
|
|
|
|
|
|
<para>
|
2013-12-13 08:35:03 +08:00
|
|
|
<application>Qt5</application> is a cross-platform application
|
2013-08-11 10:12:50 +08:00
|
|
|
framework that is widely used for developing application software
|
2013-12-13 08:35:03 +08:00
|
|
|
with a graphical user interface (GUI) (in which cases
|
|
|
|
<application>Qt5</application> 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>Qt5</application> is <application>KDE Frameworks 5</application>.
|
2013-08-11 10:12:50 +08:00
|
|
|
</para>
|
|
|
|
|
2013-09-08 12:56:57 +08:00
|
|
|
&lfs74_checked;
|
2013-08-11 10:12:50 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&qt5-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&qt5-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &qt5-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &qt5-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &qt5-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &qt5-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2013-12-13 08:35:03 +08:00
|
|
|
<bridgehead renderas="sect3">Qt5 Dependencies</bridgehead>
|
2013-08-11 10:12:50 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
|
|
|
<xref linkend="alsa-lib"/>,
|
|
|
|
<xref linkend="mesalib"/>,
|
|
|
|
<xref linkend="xcb-util-image"/>,
|
|
|
|
<xref linkend="xcb-util-keysyms"/>,
|
2013-08-12 05:24:18 +08:00
|
|
|
<xref linkend="xcb-util-renderutil"/>, and
|
2013-08-11 10:12:50 +08:00
|
|
|
<xref linkend="xcb-util-wm"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="cacerts"/>,
|
|
|
|
<xref linkend="cups"/>,
|
|
|
|
<xref linkend="dbus"/>,
|
|
|
|
<xref linkend="glib2"/>,
|
2014-02-08 02:05:27 +08:00
|
|
|
<xref linkend="gst-plugins-base"/>,<!--
|
|
|
|
<xref linkend="harfbuzz"/>, Doesn't have all the features that the shipped one has. -->
|
2013-08-11 10:12:50 +08:00
|
|
|
<xref linkend="icu"/>,
|
|
|
|
<xref linkend="libjpeg"/>,
|
2013-08-15 18:13:55 +08:00
|
|
|
<xref linkend="libmng"/>,
|
2013-08-11 10:12:50 +08:00
|
|
|
<xref linkend="libpng"/>,
|
|
|
|
<xref linkend="libtiff"/>,
|
2014-02-08 02:05:27 +08:00
|
|
|
<xref linkend="mtdev"/>,
|
2013-08-11 10:12:50 +08:00
|
|
|
<xref linkend="openssl"/>,
|
2013-08-12 05:24:18 +08:00
|
|
|
<xref linkend="pcre"/>, and
|
2013-08-11 10:12:50 +08:00
|
|
|
<xref linkend="sqlite"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
2014-02-08 02:05:27 +08:00
|
|
|
<xref linkend="geoclue"/>,
|
2013-08-11 10:12:50 +08:00
|
|
|
<xref linkend="gst10-plugins-base"/> (QtWebKit HTML5 Video Support),
|
|
|
|
<xref linkend="gtk2"/> (GTK+ Theme Support),
|
2014-02-08 02:05:27 +08:00
|
|
|
<ulink url="https://code.google.com/p/ibus/">IBus</ulink>,
|
2013-08-11 10:12:50 +08:00
|
|
|
<ulink url="http://xkbcommon.org/">libxkbcommon</ulink>,
|
2013-11-12 01:10:53 +08:00
|
|
|
<xref linkend="mariadb"/> or <xref linkend="mysql"/>,
|
2013-08-11 10:12:50 +08:00
|
|
|
<xref linkend="postgresql"/>,
|
2013-12-13 08:35:03 +08:00
|
|
|
<xref linkend="pulseaudio"/>, and
|
|
|
|
<xref linkend="unixodbc"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required (Runtime)</bridgehead>
|
|
|
|
<para role="required">
|
|
|
|
<xref linkend="qtchooser"/> (if installing both
|
|
|
|
<application>Qt4</application> and <application>Qt5</application>
|
|
|
|
and installing in <filename class="directory">/usr</filename>)
|
2013-08-11 10:12:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/qt5"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
2013-12-13 08:35:03 +08:00
|
|
|
<title>Installation of Qt5</title>
|
2013-08-11 10:12:50 +08:00
|
|
|
|
2013-09-08 12:56:57 +08:00
|
|
|
<para>
|
|
|
|
There are several ways to install a complicated package such as
|
2013-12-13 08:35:03 +08:00
|
|
|
<application>Qt5</application>. The files are not completely position
|
2013-09-08 12:56:57 +08:00
|
|
|
independent. Installation procedures execute the program
|
|
|
|
<command>pkg-config</command> to determine the location of package
|
|
|
|
executables, libraries, headers, and other files. For
|
2013-12-13 08:35:03 +08:00
|
|
|
<application>Qt5</application>, <command>pkg-config</command> will look
|
|
|
|
for the appropriate <filename>lib/pkgconfig/Qt5*.pc</filename> files
|
2013-09-08 12:56:57 +08:00
|
|
|
which must be modified if relocating the package. These files are set up
|
|
|
|
correctly by the build process.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The default installation places the files in <filename
|
2013-12-13 08:35:03 +08:00
|
|
|
class="directory">/usr/local/qt</filename>. Many
|
2013-09-08 12:56:57 +08:00
|
|
|
distributions place the files in the system's <filename
|
2013-12-13 08:35:03 +08:00
|
|
|
class="directory">/usr</filename> hierarchy. The package can
|
|
|
|
also be installed in an arbitrary directory.
|
2013-09-08 12:56:57 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The advantage of installing in <filename
|
2013-12-13 08:35:03 +08:00
|
|
|
class="directory">/usr</filename> is that no updates to the
|
2013-09-08 12:56:57 +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-12-13 08:35:03 +08:00
|
|
|
class="directory">/usr</filename> hierarchy. This is the method that
|
|
|
|
most distributions use.
|
2013-09-08 12:56:57 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The disadvantage of installing in <filename
|
2013-12-13 08:35:03 +08:00
|
|
|
class="directory">/usr</filename> is that the executable filenames
|
2013-09-08 12:56:57 +08:00
|
|
|
for <application>Qt4</application> and <application>Qt5</application>
|
|
|
|
conflict if both packages are installed in the
|
2013-12-13 08:35:03 +08:00
|
|
|
same directory. The instructions below give a workaround for
|
|
|
|
this problem using the helper programs from <xref linkend="qtchooser"/>.
|
|
|
|
<!-- renaming is not required because of this, only using a different
|
|
|
|
bindir is -->
|
2013-09-08 12:56:57 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2013-12-13 08:35:03 +08:00
|
|
|
The advantage of installing <application>Qt5</application> in a custom
|
2013-09-08 12:56:57 +08:00
|
|
|
directory such as <filename
|
2013-12-13 08:35:03 +08:00
|
|
|
class="directory">/opt/qt-&qt5-version;</filename> is that it keeps all
|
2013-09-08 12:56:57 +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-12-13 08:35:03 +08:00
|
|
|
changing one symbolic link or merely changing the <envar>PATH</envar>
|
|
|
|
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.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<caution>
|
2013-08-11 10:12:50 +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>
|
|
|
|
|
|
|
|
<warning>
|
|
|
|
<para>
|
|
|
|
If <application>Qt5</application> is being reinstalled into the
|
|
|
|
same directory as an existing instance, run the
|
|
|
|
following commands from a console or non-Qt5 based window manager.
|
|
|
|
It overwrites <application>Qt5</application> libraries that should
|
|
|
|
not be in use during the install process.
|
|
|
|
</para>
|
2013-08-11 10:12:50 +08:00
|
|
|
</warning>
|
2013-09-08 12:56:57 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>
|
2013-08-11 10:12:50 +08:00
|
|
|
|
|
|
|
<para>
|
2013-09-08 12:56:57 +08:00
|
|
|
Install <application>Qt5</application> by running the
|
2013-08-11 10:12:50 +08:00
|
|
|
following commands:
|
|
|
|
</para>
|
|
|
|
|
2014-02-08 02:05:27 +08:00
|
|
|
<!-- This is rather a bad idea. Most apps that I've seen using Qt5 look for -qt5
|
|
|
|
suffixed programs.
|
|
|
|
|
2013-12-13 08:35:03 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
If <emphasis>not</emphasis> also installing <application>Qt4</application>
|
|
|
|
into the /usr directory, change the entry for -bindir below to /usr/bin.
|
|
|
|
</para>
|
2014-02-08 02:05:27 +08:00
|
|
|
</note> -->
|
2013-08-12 05:24:18 +08:00
|
|
|
|
2014-02-08 02:05:27 +08:00
|
|
|
<screen><userinput>./configure -prefix /usr \
|
2013-09-08 12:56:57 +08:00
|
|
|
-sysconfdir /etc/xdg \
|
|
|
|
-bindir /usr/lib/qt5/bin \
|
|
|
|
-headerdir /usr/include/qt5 \
|
|
|
|
-archdatadir /usr/lib/qt5 \
|
|
|
|
-datadir /usr/share/qt5 \
|
|
|
|
-docdir /usr/share/doc/qt5 \
|
2013-08-11 10:12:50 +08:00
|
|
|
-translationdir /usr/share/qt5/translations \
|
2013-09-08 12:56:57 +08:00
|
|
|
-examplesdir /usr/share/doc/qt5/examples \
|
2013-08-12 05:24:18 +08:00
|
|
|
-confirm-license \
|
|
|
|
-opensource \
|
|
|
|
-dbus-linked \
|
2014-02-08 02:05:27 +08:00
|
|
|
-openssl-linked \<!--
|
|
|
|
-system-harfbuzz \-->
|
2013-08-12 05:24:18 +08:00
|
|
|
-system-sqlite \
|
|
|
|
-no-nis \
|
|
|
|
-nomake examples \
|
|
|
|
-opengl es2 \
|
|
|
|
-optimized-qmake &&
|
2013-08-11 10:12:50 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
2013-11-08 03:25:16 +08:00
|
|
|
Remove references to the build directory from the
|
2013-08-24 04:05:56 +08:00
|
|
|
<filename class="extension">.pc</filename> files by running
|
|
|
|
the following command:
|
2013-08-11 10:12:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</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 &&
|
|
|
|
install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
|
|
|
/usr/share/pixmaps/assistant-qt5.png &&
|
|
|
|
install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
|
|
|
/usr/share/pixmaps/designer-qt5.png &&
|
|
|
|
install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
|
|
|
/usr/share/pixmaps/linguist-qt5.png &&
|
|
|
|
install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
|
|
|
/usr/share/pixmaps/qdbusviewer-qt5.png</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Remove references to the build directory from installed files by
|
|
|
|
running the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>sed -i -e "s:$PWD/qtbase:/usr/lib/qt5:g" \
|
2013-12-13 08:35:03 +08:00
|
|
|
/usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &&
|
2013-11-08 03:25:16 +08:00
|
|
|
find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -e \
|
2013-08-11 10:12:50 +08:00
|
|
|
'/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
2014-02-08 02:05:27 +08:00
|
|
|
<!-- If you didn't modify the -bindir switch above, -->Symlink the
|
2013-12-13 08:35:03 +08:00
|
|
|
<application>Qt5</application> executables into
|
2013-08-11 10:12:50 +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/qt5/bin/*
|
|
|
|
do
|
|
|
|
ln -sfv ../lib/qt5/bin/$(basename $file) /usr/bin/$(basename $file)-qt5
|
|
|
|
done</userinput></screen>
|
|
|
|
|
2013-09-08 12:56:57 +08:00
|
|
|
<bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt5-version;</bridgehead>
|
2013-08-12 05:24:18 +08:00
|
|
|
|
2013-08-12 17:38:43 +08:00
|
|
|
<para>
|
2013-12-13 08:35:03 +08:00
|
|
|
This section provides an alternate way to install <application>Qt5</application>
|
|
|
|
by installing almost all of the files in the <filename
|
|
|
|
class="directory">/opt</filename> directory. This allows management of all
|
|
|
|
<application>Qt5</application> related files in one unit. For instance, a new
|
|
|
|
version of <application>Qt5</application> can be installed without over-writing
|
|
|
|
the existing installation and entire <application>Qt5</application> instances can
|
|
|
|
be easily removed. However, it has the disadvantage of needing some extra
|
|
|
|
configuration and you need to switch manually between <application>Qt4</application>
|
|
|
|
and <application>Qt5</application> executables when needed.
|
2013-08-12 17:38:43 +08:00
|
|
|
</para>
|
2013-08-12 05:24:18 +08:00
|
|
|
|
2014-02-08 02:05:27 +08:00
|
|
|
<screen><userinput>export QT5DIR=/opt/qt-&qt5-version;
|
2013-08-12 05:24:18 +08:00
|
|
|
|
|
|
|
./configure -prefix $QT5DIR \
|
|
|
|
-sysconfdir /etc/xdg \
|
|
|
|
-confirm-license \
|
|
|
|
-opensource \
|
|
|
|
-dbus-linked \
|
2014-02-08 02:05:27 +08:00
|
|
|
-openssl-linked \<!--
|
|
|
|
-system-harfbuzz \-->
|
2013-08-12 05:24:18 +08:00
|
|
|
-system-sqlite \
|
|
|
|
-no-nis \
|
|
|
|
-nomake examples \
|
|
|
|
-opengl es2 \
|
|
|
|
-optimized-qmake &&
|
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
|
|
|
2014-02-20 20:20:28 +08:00
|
|
|
install -v -dm755 /usr/share/pixmaps/ &&
|
2013-08-12 05:24:18 +08:00
|
|
|
install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
|
|
|
/usr/share/pixmaps/assistant-qt5.png &&
|
|
|
|
install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
2014-02-20 20:20:28 +08:00
|
|
|
/usr/share/pixmaps/designer-qt5.png &&
|
2013-08-12 05:24:18 +08:00
|
|
|
install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
2014-02-20 20:20:28 +08:00
|
|
|
/usr/share/pixmaps/linguist-qt5.png &&
|
2013-08-12 05:24:18 +08:00
|
|
|
install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
|
|
|
/usr/share/pixmaps/qdbusviewer-qt5.png</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Remove references to the build directory from installed files by
|
|
|
|
running the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2013-12-13 08:35:03 +08:00
|
|
|
<screen role="root"><userinput>find $QT5DIR -name qt_lib_bootstrap_private.pri \
|
2013-08-12 05:24:18 +08:00
|
|
|
-exec sed -i -e "s:$PWD/qtbase:/$QT5DIR/lib/:g" {} \; &&
|
|
|
|
|
|
|
|
find $QT5DIR -name \*.prl \
|
|
|
|
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
|
|
|
|
2013-12-13 08:35:03 +08:00
|
|
|
<!-- This is useful for packages looking explicitly for Qt apps with -qt5 suffix,
|
|
|
|
and is *required* for the desktop files below to work correctly. -->
|
|
|
|
|
2013-08-12 05:24:18 +08:00
|
|
|
<para>
|
2013-12-13 08:35:03 +08:00
|
|
|
Symlink the <application>Qt5</application> executables into
|
2013-08-12 05:24:18 +08:00
|
|
|
<filename class="directory">/usr/bin</filename> by running the
|
|
|
|
following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2013-08-12 17:38:43 +08:00
|
|
|
<screen role="root"><userinput>ln -svf $QT5DIR /opt/qt5 &&
|
2013-08-12 05:24:18 +08:00
|
|
|
|
|
|
|
for file in /opt/qt5/bin/*; do
|
|
|
|
ln -sfv $file /usr/bin/$(basename $file)-qt5
|
|
|
|
done</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2013-08-11 10:12:50 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2013-08-24 02:14:58 +08:00
|
|
|
<para>
|
2013-12-13 08:35:03 +08:00
|
|
|
<command>sed -e "..." -e "..." -i ...</command>: This
|
|
|
|
command fixes detection of
|
2013-08-24 02:14:58 +08:00
|
|
|
<application>libmng</application> 2.0.
|
|
|
|
</para>
|
|
|
|
|
2013-08-11 10:12:50 +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-11 20:31:45 +08:00
|
|
|
<para>
|
|
|
|
<parameter>-release</parameter>: This switch disables
|
|
|
|
building with debugging symbols.
|
|
|
|
</para>
|
2013-08-11 10:12:50 +08:00
|
|
|
|
|
|
|
<para>
|
2013-08-11 21:14:25 +08:00
|
|
|
<parameter>-nomake examples</parameter>: This switch
|
|
|
|
disables building of the example programs included
|
|
|
|
in the source tarball. Remove it if you want to build
|
|
|
|
them.
|
2013-08-11 10:12:50 +08:00
|
|
|
</para>
|
|
|
|
|
2014-01-15 01:22:27 +08:00
|
|
|
<para>
|
|
|
|
<parameter>-system-harfbuzz</parameter>: This switch enables use
|
|
|
|
of the system version of <application>Harfbuzz</application>
|
|
|
|
which fixes some font rendering issues in
|
|
|
|
<application>Qt5</application> applications.
|
|
|
|
</para>
|
|
|
|
|
2013-08-11 10:12:50 +08:00
|
|
|
<para>
|
|
|
|
<parameter>-system-sqlite</parameter>: This switch enables use
|
2013-08-11 20:31:45 +08:00
|
|
|
of the system version of <application>SQLite</application>.
|
2013-08-11 10:12:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>-no-nis</parameter>: This switch disables support
|
|
|
|
for Network Information Service (NIS) which has been
|
2013-08-11 21:14:25 +08:00
|
|
|
removed from recent versions of <application>Glibc</application>.
|
2013-08-11 10:12:50 +08:00
|
|
|
</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
|
2013-12-13 08:35:03 +08:00
|
|
|
<application>Qt5</application> libraries instead of
|
2013-08-11 10:12:50 +08:00
|
|
|
<command>dlopen()</command>-ing them.
|
|
|
|
</para>
|
|
|
|
|
2013-08-11 20:31:45 +08:00
|
|
|
<para>
|
|
|
|
<parameter>-opengl es2</parameter>: This switch enables OpenGL ES2
|
2013-12-13 08:35:03 +08:00
|
|
|
support in <application>Qt5</application>.
|
2013-08-11 20:31:45 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>-optimized-qmake</parameter>: This switch enables
|
|
|
|
building of the optimized <command>qmake</command> program.
|
2013-08-11 10:12:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
2013-12-13 08:35:03 +08:00
|
|
|
<title>Configuring Qt5</title>
|
2013-08-11 10:12:50 +08:00
|
|
|
|
|
|
|
<sect3 id="qt5-config">
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>
|
2013-12-13 08:35:03 +08:00
|
|
|
Create the menu entries for installed applications by running the
|
|
|
|
following commands <systemitem class="username">root</systemitem>
|
|
|
|
user:
|
2013-08-11 10:12:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>install -dm755 /usr/share/applications
|
|
|
|
cat > /usr/share/applications/assistant-qt5.desktop << "EOF"
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt5 Assistant
|
|
|
|
Comment=Shows Qt5 documentation and examples
|
|
|
|
Exec=assistant-qt5
|
|
|
|
Icon=assistant-qt5
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;Documentation;</literal>
|
|
|
|
EOF
|
|
|
|
cat > /usr/share/applications/designer-qt5.desktop << "EOF"
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt5 Designer
|
|
|
|
GenericName=Interface Designer
|
|
|
|
Comment=Design GUIs for Qt5 applications
|
|
|
|
Exec=designer-qt5
|
|
|
|
Icon=designer-qt5
|
|
|
|
MimeType=application/x-designer;
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;</literal>
|
|
|
|
EOF
|
|
|
|
cat > /usr/share/applications/linguist-qt5.desktop << "EOF"
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt5 Linguist
|
|
|
|
Comment=Add translations to Qt5 applications
|
|
|
|
Exec=linguist-qt5
|
|
|
|
Icon=linguist-qt5
|
|
|
|
MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;</literal>
|
|
|
|
EOF
|
|
|
|
cat > /usr/share/applications/qdbusviewer-qt5.desktop << "EOF"
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Name=Qt5 QDbusViewer
|
|
|
|
GenericName=D-Bus Debugger
|
|
|
|
Comment=Debug D-Bus applications
|
|
|
|
Exec=qdbusviewer-qt5
|
|
|
|
Icon=qdbusviewer-qt5
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;Debugger;</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
2013-12-13 08:35:03 +08:00
|
|
|
<!-- No package uses this at the moment.
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If you installed <application>Qt5</application> in
|
|
|
|
<filename class="directory">/usr</filename>, create an
|
|
|
|
environment variable needed by certain packages.
|
|
|
|
As the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
|
|
|
<literal># Begin /etc/profile.d/qt5.sh
|
|
|
|
|
|
|
|
QTDIR=/usr
|
|
|
|
|
|
|
|
export QT5DIR
|
|
|
|
|
|
|
|
# End /etc/profile.d/qt5.sh</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
If you have installed <application>Qt5</application> in
|
|
|
|
<filename class="directory">/usr</filename>, you can skip
|
|
|
|
rest of this section.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If you installed <application>Qt5</application> in a location other
|
|
|
|
than <filename class="directory">/usr</filename>, you need to update the
|
|
|
|
following configuration files so that <application>Qt5</application> is
|
|
|
|
correctly found by other packages and system processes.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
As the <systemitem class="username">root</systemitem> user, update
|
|
|
|
the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
|
|
|
run-time cache file:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
|
|
|
<literal># Begin Qt addition
|
|
|
|
|
|
|
|
/opt/qt5/lib
|
|
|
|
|
|
|
|
# End Qt addition</literal>
|
|
|
|
EOF
|
|
|
|
|
|
|
|
ldconfig</userinput></screen>
|
|
|
|
|
|
|
|
<indexterm zone="qt5 qt5-config">
|
|
|
|
<primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
As the <systemitem class="username">root</systemitem> user, create
|
|
|
|
the <filename>/etc/profile.d/qt5.sh</filename> file:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
|
|
|
<literal># Begin /etc/profile.d/qt5.sh
|
|
|
|
|
|
|
|
QT5DIR=/opt/qt5
|
|
|
|
|
|
|
|
pathappend /opt/qt5/bin PATH
|
|
|
|
pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
|
|
|
|
|
|
|
|
export QT5DIR
|
|
|
|
|
|
|
|
# End /etc/profile.d/qt5.sh</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
If you also installed <application>Qt4</application> and need to use
|
|
|
|
the <application>Qt5</application> version of an executable such as
|
|
|
|
<command>qmake</command> for building a program, make sure that
|
|
|
|
the <application>Qt5</application> bin directory is listed prior to
|
|
|
|
the <application>Qt5</application> bin directory in the
|
|
|
|
<envar>PATH</envar> variable.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
2013-08-11 10:12:50 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
assistant-qt5, designer-qt5, lconvert-qt5, linguist-qt5, lrelease-qt5,
|
2013-12-13 08:35:03 +08:00
|
|
|
lupdate-qt5, moc-qt5, pixeltool-qt5, qcollectiongenerator-qt5, qdbuscpp2xml-qt5,
|
|
|
|
qdbus-qt5, qdbusviewer-qt5, qdbusxml2cpp-qt5, qdoc-qt5, qhelpconverter-qt5,
|
|
|
|
qhelpgenerator-qt5, qmake-qt5, qml1plugindump-qt5, qmlbundle-qt5,
|
|
|
|
qmlimportscanner-qt5, qmlmin-qt5, qmlplugindump-qt5, qmlprofiler-qt5, qml-qt5,
|
|
|
|
qmlscene-qt5, qmltestrunner-qt5, qmlviewer-qt5, qtpaths-qt5, rcc-qt5,
|
|
|
|
syncqt.pl-qt5, uic-qt5, xmlpatterns-qt5, and xmlpatternsvalidator-qt5
|
2013-08-11 10:12:50 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2013-12-13 08:35:03 +08:00
|
|
|
libqgsttools_p.so, libQt5Bluetooth.so, libQt5Bootstrap.a, libQt5CLucene.so,
|
|
|
|
libQt5Concurrent.so, libQt5Core.so, libQt5DBus.so, libQt5Declarative.so,
|
|
|
|
libQt5DesignerComponents.so, libQt5Designer.so, libQt5Gui.so, libQt5Help.so,
|
|
|
|
libQt5MultimediaQuick_p.so, libQt5Multimedia.so, libQt5MultimediaWidgets.so,
|
|
|
|
libQt5Network.so, libQt5Nfc.so, libQt5OpenGLExtensions.a, libQt5OpenGL.so,
|
|
|
|
libQt5PlatformSupport.a, libQt5Positioning.so, libQt5PrintSupport.so,
|
|
|
|
libQt5QmlDevTools.a, libQt5Qml.so, libQt5QuickParticles.so, libQt5Quick.so,
|
|
|
|
libQt5QuickTest.so, libQt5Script.so, libQt5ScriptTools.so, libQt5Sensors.so,
|
|
|
|
libQt5SerialPort.so, libQt5Sql.so, libQt5Svg.so, libQt5Test.so, libQt5UiTools.a,
|
|
|
|
libQt5WebKit.so, libQt5WebKitWidgets.so, libQt5Widgets.so, libQt5X11Extras.so,
|
|
|
|
libQt5XmlPatterns.so, and libQt5Xml.so
|
2013-08-11 10:12:50 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/qt5,
|
|
|
|
/usr/lib/qt5,
|
2013-09-08 12:56:57 +08:00
|
|
|
/usr/share/doc/qt5, and
|
2013-08-11 10:12:50 +08:00
|
|
|
/usr/share/qt5
|
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="assistant-qt5">
|
|
|
|
<term><command>assistant-qt5</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a tool for presenting on-line documentation.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qt5 assistant-qt5">
|
|
|
|
<primary sortas="b-assistant-qt5">assistant-qt5</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="designer-qt5">
|
|
|
|
<term><command>designer-qt5</command></term>
|
|
|
|
<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>
|
|
|
|
<indexterm zone="qt5 designer-qt5">
|
|
|
|
<primary sortas="b-designer-qt5">designer-qt5</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="linguist-qt5">
|
|
|
|
<term><command>linguist-qt5</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
provides support for translating applications into
|
|
|
|
local languages.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qt5 linguist-qt5">
|
|
|
|
<primary sortas="b-linguist-qt5">linguist-qt5</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="lrelease-qt5">
|
|
|
|
<term><command>lrelease-qt5</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a simple command line tool. It reads a Qt project
|
|
|
|
file and produces message files used by the application.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qt5 lrelease-qt5">
|
|
|
|
<primary sortas="b-lrelease-qt5">lrelease-qt5</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="lupdate-qt5">
|
|
|
|
<term><command>lupdate-qt5</command></term>
|
|
|
|
<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>
|
|
|
|
<indexterm zone="qt5 lupdate-qt5">
|
|
|
|
<primary sortas="b-lupdate-qt5">lupdate-qt5</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="moc-qt5">
|
|
|
|
<term><command>moc-qt5</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
generates Qt meta object support code.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qt5 moc-qt5">
|
|
|
|
<primary sortas="b-moc-qt5">moc-qt5</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pixeltool-qt5">
|
|
|
|
<term><command>pixeltool-qt5</command></term>
|
|
|
|
<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>
|
|
|
|
<indexterm zone="qt5 pixeltool-qt5">
|
|
|
|
<primary sortas="b-pixeltool-qt5">pixeltool-qt5</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="qmake-qt5">
|
|
|
|
<term><command>qmake-qt5</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
uses information stored in project files to
|
|
|
|
determine what should go in the makefiles it
|
|
|
|
generates.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qt5 qmake-qt5">
|
|
|
|
<primary sortas="b-qmake-qt5">qmake-qt5</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="rcc-qt5">
|
|
|
|
<term><command>rcc-qt5</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a resource compiler used in conjunction with designer.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qt5 rcc-qt5">
|
|
|
|
<primary sortas="b-rcc-qt5">rcc-qt5</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="uic-qt5">
|
|
|
|
<term><command>uic-qt5</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a Qt user interface compiler.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qt5 uic-qt5">
|
|
|
|
<primary sortas="b-uic-qt5">uic-qt5</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|