[104b5bf] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[5b761da] | 7 | <!-- Change for new minor releases !!! -->
|
---|
| 8 |
|
---|
| 9 | <!ENTITY qt5-major "5.4">
|
---|
[104b5bf] | 10 | <!ENTITY qt5-url "http://download.qt-project.org/official_releases/qt/&qt5-major;/&qt5-version;/single">
|
---|
| 11 |
|
---|
| 12 | <!ENTITY qt5-download-http "&qt5-url;/qt-everywhere-opensource-src-&qt5-version;.tar.xz">
|
---|
| 13 | <!ENTITY qt5-download-ftp " ">
|
---|
[d31aaf94] | 14 | <!ENTITY qt5-md5sum "21843b00ecde8956217faab391bc007b">
|
---|
| 15 | <!ENTITY qt5-size "279 MB">
|
---|
[4e95ca30] | 16 | <!ENTITY qt5-buildsize "6.9 GB (266 MB installed)">
|
---|
[47e6b60] | 17 | <!ENTITY qt5-time "27 SBU (parallelism=4, without Qt Web Engine), 138 SBU (parallelism=1, with Qt Web Engine)">
|
---|
[104b5bf] | 18 | ]>
|
---|
| 19 |
|
---|
| 20 | <sect1 id="qt5" xreflabel="Qt-&qt5-version;">
|
---|
| 21 | <?dbhtml filename="qt5.html" ?>
|
---|
| 22 |
|
---|
| 23 | <sect1info>
|
---|
| 24 | <othername>$LastChangedBy$</othername>
|
---|
| 25 | <date>$Date$</date>
|
---|
| 26 | </sect1info>
|
---|
| 27 |
|
---|
| 28 | <title>Qt-&qt5-version;</title>
|
---|
| 29 |
|
---|
| 30 | <indexterm zone="qt5">
|
---|
| 31 | <primary sortas="a-Qt">Qt</primary>
|
---|
| 32 | </indexterm>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="package">
|
---|
[0173357f] | 35 | <title>Introduction to Qt5</title>
|
---|
[104b5bf] | 36 |
|
---|
| 37 | <para>
|
---|
[0173357f] | 38 | <application>Qt5</application> is a cross-platform application
|
---|
[104b5bf] | 39 | framework that is widely used for developing application software
|
---|
[0173357f] | 40 | with a graphical user interface (GUI) (in which cases
|
---|
| 41 | <application>Qt5</application> is classified as a widget toolkit), and
|
---|
| 42 | also used for developing non-GUI programs such as command-line tools
|
---|
[ec7940be] | 43 | and consoles for servers.
|
---|
[104b5bf] | 44 | </para>
|
---|
| 45 |
|
---|
[2c95b08] | 46 | &lfs77_checked;
|
---|
[104b5bf] | 47 |
|
---|
| 48 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 49 | <itemizedlist spacing="compact">
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download (HTTP): <ulink url="&qt5-download-http;"/>
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download (FTP): <ulink url="&qt5-download-ftp;"/>
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Download MD5 sum: &qt5-md5sum;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Download size: &qt5-size;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>
|
---|
| 72 | Estimated disk space required: &qt5-buildsize;
|
---|
| 73 | </para>
|
---|
| 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>
|
---|
| 77 | Estimated build time: &qt5-time;
|
---|
| 78 | </para>
|
---|
| 79 | </listitem>
|
---|
| 80 | </itemizedlist>
|
---|
| 81 |
|
---|
[0173357f] | 82 | <bridgehead renderas="sect3">Qt5 Dependencies</bridgehead>
|
---|
[104b5bf] | 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 85 | <para role="required">
|
---|
[3686a25] | 86 | <xref linkend="xorg7-lib"/>
|
---|
[104b5bf] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 90 | <para role="recommended">
|
---|
[9a6cd410] | 91 | <xref linkend="alsa-lib"/>,
|
---|
[104b5bf] | 92 | <xref linkend="cacerts"/>,
|
---|
| 93 | <xref linkend="cups"/>,
|
---|
[6bd910e8] | 94 | <xref linkend="dbus"/> (required for QtWebKit),
|
---|
[104b5bf] | 95 | <xref linkend="glib2"/>,
|
---|
[17bbaea] | 96 | <xref linkend="gst-plugins-base"/>,
|
---|
[3bf5bc51] | 97 | <xref linkend="icu"/> (required for QtWebKit),
|
---|
[d3ad2113] | 98 | <xref linkend="jasper"/>,
|
---|
[104b5bf] | 99 | <xref linkend="libjpeg"/>,
|
---|
[834937d] | 100 | <xref linkend="libmng"/>,
|
---|
[104b5bf] | 101 | <xref linkend="libpng"/>,
|
---|
| 102 | <xref linkend="libtiff"/>,
|
---|
[d3ad2113] | 103 | <xref linkend="libwebp"/>,
|
---|
[3686a25] | 104 | <xref linkend="mesalib"/>,
|
---|
[79904cf] | 105 | <xref linkend="mtdev"/>,
|
---|
[104b5bf] | 106 | <xref linkend="openssl"/>,
|
---|
[8e06e6e] | 107 | <xref linkend="pcre"/>,
|
---|
[9a6cd410] | 108 | <xref linkend="sqlite"/>,
|
---|
| 109 | <xref linkend="ruby"/> (required for QtWebKit),
|
---|
| 110 | <xref linkend="xcb-util-image"/>,
|
---|
| 111 | <xref linkend="xcb-util-keysyms"/>,
|
---|
| 112 | <xref linkend="xcb-util-renderutil"/>, and
|
---|
| 113 | <xref linkend="xcb-util-wm"/>
|
---|
[104b5bf] | 114 | </para>
|
---|
| 115 |
|
---|
| 116 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 117 | <para role="optional">
|
---|
[79904cf] | 118 | <xref linkend="geoclue"/>,
|
---|
[104b5bf] | 119 | <xref linkend="gst10-plugins-base"/> (QtWebKit HTML5 Video Support),
|
---|
| 120 | <xref linkend="gtk2"/> (GTK+ Theme Support),
|
---|
[17bbaea] | 121 | <xref linkend="harfbuzz"/>, <!-- Doesn't have all the features that the included one has. -->
|
---|
[79904cf] | 122 | <ulink url="https://code.google.com/p/ibus/">IBus</ulink>,
|
---|
[104b5bf] | 123 | <ulink url="http://xkbcommon.org/">libxkbcommon</ulink>,
|
---|
[5e0662d] | 124 | <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
|
---|
[104b5bf] | 125 | <xref linkend="postgresql"/>,
|
---|
[0173357f] | 126 | <xref linkend="pulseaudio"/>, and
|
---|
| 127 | <xref linkend="unixodbc"/>
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
[104b5bf] | 130 | <para condition="html" role="usernotes">User Notes:
|
---|
| 131 | <ulink url="&blfs-wiki;/qt5"/>
|
---|
| 132 | </para>
|
---|
| 133 | </sect2>
|
---|
| 134 |
|
---|
[ec7940be] | 135 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 136 | href="../../xincludes/qt-alternatives.xml"/>
|
---|
| 137 |
|
---|
[104b5bf] | 138 | <sect2 role="installation">
|
---|
[0173357f] | 139 | <title>Installation of Qt5</title>
|
---|
[104b5bf] | 140 |
|
---|
[fb28b3b] | 141 | <caution>
|
---|
[104b5bf] | 142 | <para>
|
---|
| 143 | If you did not install some of the recommended dependencies, examine
|
---|
| 144 | <command>./configure --help</command> output to check how to disable
|
---|
| 145 | them or use internal versions bundled in the source tarball.
|
---|
| 146 | </para>
|
---|
[fb28b3b] | 147 | </caution>
|
---|
| 148 |
|
---|
| 149 | <warning>
|
---|
| 150 | <para>
|
---|
[cb48da2] | 151 | If <application>Qt5</application> is being reinstalled into the
|
---|
[775fbafd] | 152 | same directory as an existing instance, run the commands done by
|
---|
| 153 | <systemitem class="username">root</systemitem>, such as
|
---|
[cb48da2] | 154 | <command>make install</command>, from a console or non-Qt5 based
|
---|
| 155 | window manager. It overwrites <application>Qt5</application>
|
---|
[775fbafd] | 156 | libraries that should not be in use during the install process.
|
---|
[fb28b3b] | 157 | </para>
|
---|
[104b5bf] | 158 | </warning>
|
---|
[adf64fa0] | 159 |
|
---|
[ec7940be] | 160 | <!-- ==== Method 1 ====== -->
|
---|
[fb28b3b] | 161 | <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>
|
---|
[104b5bf] | 162 |
|
---|
| 163 | <para>
|
---|
[fb28b3b] | 164 | Install <application>Qt5</application> by running the
|
---|
[104b5bf] | 165 | following commands:
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
[79904cf] | 168 | <!-- This is rather a bad idea. Most apps that I've seen using Qt5 look for -qt5
|
---|
[ec7940be] | 169 | suffixed programs. On the other hand, the developer is used to running
|
---|
| 170 | qmake, linguist, etc from the command line.
|
---|
[79904cf] | 171 |
|
---|
[0173357f] | 172 | <note>
|
---|
| 173 | <para>
|
---|
| 174 | If <emphasis>not</emphasis> also installing <application>Qt4</application>
|
---|
| 175 | into the /usr directory, change the entry for -bindir below to /usr/bin.
|
---|
| 176 | </para>
|
---|
[79904cf] | 177 | </note> -->
|
---|
[74d76938] | 178 |
|
---|
[43bb741] | 179 | <screen><userinput>export QT5LINK=/usr
|
---|
[ec7940be] | 180 |
|
---|
| 181 | ./configure -prefix /usr \
|
---|
[fb28b3b] | 182 | -sysconfdir /etc/xdg \
|
---|
[ec7940be] | 183 | -bindir /usr/bin \
|
---|
[fb28b3b] | 184 | -headerdir /usr/include/qt5 \
|
---|
| 185 | -archdatadir /usr/lib/qt5 \
|
---|
| 186 | -datadir /usr/share/qt5 \
|
---|
| 187 | -docdir /usr/share/doc/qt5 \
|
---|
[104b5bf] | 188 | -translationdir /usr/share/qt5/translations \
|
---|
[fb28b3b] | 189 | -examplesdir /usr/share/doc/qt5/examples \
|
---|
[74d76938] | 190 | -confirm-license \
|
---|
| 191 | -opensource \
|
---|
| 192 | -dbus-linked \
|
---|
[79904cf] | 193 | -openssl-linked \<!--
|
---|
| 194 | -system-harfbuzz \-->
|
---|
[74d76938] | 195 | -system-sqlite \
|
---|
| 196 | -no-nis \
|
---|
[47e6b60] | 197 | -skip qtwebengine \
|
---|
[74d76938] | 198 | -nomake examples \
|
---|
| 199 | -optimized-qmake &&
|
---|
[104b5bf] | 200 | make</userinput></screen>
|
---|
| 201 |
|
---|
[ec7940be] | 202 | <para>
|
---|
| 203 | This package does not come with a test suite.
|
---|
| 204 | </para>
|
---|
| 205 |
|
---|
[104b5bf] | 206 | <para>
|
---|
[acacfb64] | 207 | Remove references to the build directory from the
|
---|
[a6c6923] | 208 | <filename class="extension">.pc</filename> files by running
|
---|
| 209 | the following command:
|
---|
[104b5bf] | 210 | </para>
|
---|
| 211 |
|
---|
| 212 | <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
|
---|
| 213 |
|
---|
| 214 | <para>
|
---|
| 215 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 216 | </para>
|
---|
| 217 |
|
---|
[ec7940be] | 218 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[104b5bf] | 219 |
|
---|
| 220 | <para>
|
---|
| 221 | Remove references to the build directory from installed files by
|
---|
| 222 | running the following commands as the
|
---|
| 223 | <systemitem class="username">root</systemitem> user:
|
---|
| 224 | </para>
|
---|
| 225 |
|
---|
[283854e4] | 226 | <screen role="root"><userinput>sed -e "s:$PWD/qtbase:/usr/lib/qt5:g" \
|
---|
[ec7940be] | 227 | -i /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &&
|
---|
[104b5bf] | 228 |
|
---|
[ec7940be] | 229 | find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -r \
|
---|
| 230 | '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' {} \;</userinput></screen>
|
---|
[104b5bf] | 231 |
|
---|
[ec7940be] | 232 | <!-- ==== Method 2 ====== -->
|
---|
[104b5bf] | 233 |
|
---|
[fb28b3b] | 234 | <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt5-version;</bridgehead>
|
---|
[74d76938] | 235 |
|
---|
[ec7940be] | 236 | <para>
|
---|
[c612fc3] | 237 | This section provides instructions for installing Qt5 in the
|
---|
[ec7940be] | 238 | <filename class="directory">/opt</filename> directory.
|
---|
| 239 | </para>
|
---|
[74d76938] | 240 |
|
---|
[ec7940be] | 241 | <screen><userinput>export QT5DIR=/opt/qt-&qt5-version; &&
|
---|
[43bb741] | 242 | export QT5LINK=/opt/qt5 &&
|
---|
[74d76938] | 243 |
|
---|
| 244 | ./configure -prefix $QT5DIR \
|
---|
| 245 | -sysconfdir /etc/xdg \
|
---|
| 246 | -confirm-license \
|
---|
| 247 | -opensource \
|
---|
| 248 | -dbus-linked \
|
---|
[79904cf] | 249 | -openssl-linked \<!--
|
---|
| 250 | -system-harfbuzz \-->
|
---|
[74d76938] | 251 | -system-sqlite \
|
---|
| 252 | -no-nis \
|
---|
| 253 | -nomake examples \
|
---|
[47e6b60] | 254 | -skip qtwebengine \
|
---|
[74d76938] | 255 | -optimized-qmake &&
|
---|
| 256 | make</userinput></screen>
|
---|
| 257 |
|
---|
| 258 | <para>
|
---|
| 259 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 260 | </para>
|
---|
| 261 |
|
---|
| 262 | <screen role="root"><userinput>make install &&
|
---|
[ec7940be] | 263 | ln -svfn $QT5DIR /opt/qt5</userinput></screen>
|
---|
[74d76938] | 264 |
|
---|
| 265 | <para>
|
---|
| 266 | Remove references to the build directory from installed files by
|
---|
| 267 | running the following commands as the
|
---|
| 268 | <systemitem class="username">root</systemitem> user:
|
---|
| 269 | </para>
|
---|
| 270 |
|
---|
[0173357f] | 271 | <screen role="root"><userinput>find $QT5DIR -name qt_lib_bootstrap_private.pri \
|
---|
[74d76938] | 272 | -exec sed -i -e "s:$PWD/qtbase:/$QT5DIR/lib/:g" {} \; &&
|
---|
| 273 |
|
---|
| 274 | find $QT5DIR -name \*.prl \
|
---|
| 275 | -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
---|
| 276 |
|
---|
[ec7940be] | 277 | <!-- This is useful for packages looking explicitly for Qt apps with -qt5 suffix.
|
---|
[0173357f] | 278 |
|
---|
[74d76938] | 279 | <para>
|
---|
[0173357f] | 280 | Symlink the <application>Qt5</application> executables into
|
---|
[74d76938] | 281 | <filename class="directory">/usr/bin</filename> by running the
|
---|
| 282 | following commands as the
|
---|
| 283 | <systemitem class="username">root</systemitem> user:
|
---|
| 284 | </para>
|
---|
| 285 |
|
---|
[99b9616] | 286 | <screen role="root"><userinput>ln -svf $QT5DIR /opt/qt5 &&
|
---|
[74d76938] | 287 |
|
---|
| 288 | for file in /opt/qt5/bin/*; do
|
---|
| 289 | ln -sfv $file /usr/bin/$(basename $file)-qt5
|
---|
[ec7940be] | 290 | done</userinput></screen> -->
|
---|
| 291 |
|
---|
| 292 | <!-- ==== Common ====== -->
|
---|
| 293 | <bridgehead renderas="sect3">Continuing for Both Methods</bridgehead>
|
---|
| 294 |
|
---|
| 295 | <para>
|
---|
| 296 | For all methods, install images and create the menu entries
|
---|
[43bb741] | 297 | for installed applications. Be sure that the <envar>QT5LINK</envar>
|
---|
[ec7940be] | 298 | variable is defined in root's environment and
|
---|
| 299 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 300 | </para>
|
---|
| 301 |
|
---|
| 302 | <screen role="root"><userinput>install -v -dm755 /usr/share/pixmaps/ &&
|
---|
| 303 |
|
---|
| 304 | install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
---|
| 305 | /usr/share/pixmaps/assistant-qt5.png &&
|
---|
| 306 |
|
---|
| 307 | install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
---|
| 308 | /usr/share/pixmaps/designer-qt5.png &&
|
---|
| 309 |
|
---|
| 310 | install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
| 311 | /usr/share/pixmaps/linguist-qt5.png &&
|
---|
| 312 |
|
---|
| 313 | install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
| 314 | /usr/share/pixmaps/qdbusviewer-qt5.png &&
|
---|
| 315 |
|
---|
| 316 | install -dm755 /usr/share/applications &&
|
---|
| 317 |
|
---|
| 318 | cat > /usr/share/applications/assistant-qt5.desktop << EOF
|
---|
| 319 | <literal>[Desktop Entry]
|
---|
| 320 | Name=Qt5 Assistant
|
---|
| 321 | Comment=Shows Qt5 documentation and examples
|
---|
[43bb741] | 322 | Exec=$QT5LINK/bin/assistant
|
---|
[ec7940be] | 323 | Icon=assistant-qt5.png
|
---|
| 324 | Terminal=false
|
---|
| 325 | Encoding=UTF-8
|
---|
| 326 | Type=Application
|
---|
| 327 | Categories=Qt;Development;Documentation;</literal>
|
---|
| 328 | EOF
|
---|
| 329 |
|
---|
| 330 | cat > /usr/share/applications/designer-qt5.desktop << EOF
|
---|
| 331 | <literal>[Desktop Entry]
|
---|
| 332 | Name=Qt5 Designer
|
---|
| 333 | GenericName=Interface Designer
|
---|
| 334 | Comment=Design GUIs for Qt5 applications
|
---|
[43bb741] | 335 | Exec=$QT5LINK/bin/designer
|
---|
[ec7940be] | 336 | Icon=designer-qt5.png
|
---|
| 337 | MimeType=application/x-designer;
|
---|
| 338 | Terminal=false
|
---|
| 339 | Encoding=UTF-8
|
---|
| 340 | Type=Application
|
---|
| 341 | Categories=Qt;Development;</literal>
|
---|
| 342 | EOF
|
---|
| 343 |
|
---|
| 344 | cat > /usr/share/applications/linguist-qt5.desktop << EOF
|
---|
| 345 | <literal>[Desktop Entry]
|
---|
| 346 | Name=Qt5 Linguist
|
---|
| 347 | Comment=Add translations to Qt5 applications
|
---|
[43bb741] | 348 | Exec=$QT5LINK/bin/linguist
|
---|
[ec7940be] | 349 | Icon=linguist-qt5.png
|
---|
| 350 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
| 351 | Terminal=false
|
---|
| 352 | Encoding=UTF-8
|
---|
| 353 | Type=Application
|
---|
| 354 | Categories=Qt;Development;</literal>
|
---|
| 355 | EOF
|
---|
| 356 |
|
---|
| 357 | cat > /usr/share/applications/qdbusviewer-qt5.desktop << EOF
|
---|
| 358 | <literal>[Desktop Entry]
|
---|
| 359 | Name=Qt5 QDbusViewer
|
---|
| 360 | GenericName=D-Bus Debugger
|
---|
| 361 | Comment=Debug D-Bus applications
|
---|
[43bb741] | 362 | Exec=$QT5LINK/bin/qdbusviewer
|
---|
[ec7940be] | 363 | Icon=qdbusviewer-qt5.png
|
---|
| 364 | Terminal=false
|
---|
| 365 | Encoding=UTF-8
|
---|
| 366 | Type=Application
|
---|
| 367 | Categories=Qt;Development;Debugger;</literal>
|
---|
| 368 | EOF</userinput></screen>
|
---|
[74d76938] | 369 |
|
---|
| 370 | </sect2>
|
---|
| 371 |
|
---|
[104b5bf] | 372 | <sect2 role="commands">
|
---|
| 373 | <title>Command Explanations</title>
|
---|
| 374 |
|
---|
| 375 | <para>
|
---|
| 376 | <parameter>-confirm-license</parameter>: Accept license
|
---|
| 377 | without prompting user during configuration.
|
---|
| 378 | </para>
|
---|
| 379 |
|
---|
| 380 | <para>
|
---|
| 381 | <parameter>-opensource</parameter>: Install the opensource
|
---|
| 382 | version of <application>Qt</application>.
|
---|
| 383 | </para>
|
---|
| 384 |
|
---|
[f3a6abc9] | 385 | <para>
|
---|
| 386 | <parameter>-release</parameter>: This switch disables
|
---|
| 387 | building with debugging symbols.
|
---|
| 388 | </para>
|
---|
[104b5bf] | 389 |
|
---|
| 390 | <para>
|
---|
[c32e0380] | 391 | <parameter>-nomake examples</parameter>: This switch
|
---|
| 392 | disables building of the example programs included
|
---|
| 393 | in the source tarball. Remove it if you want to build
|
---|
| 394 | them.
|
---|
[104b5bf] | 395 | </para>
|
---|
| 396 |
|
---|
| 397 | <para>
|
---|
| 398 | <parameter>-system-sqlite</parameter>: This switch enables use
|
---|
[f3a6abc9] | 399 | of the system version of <application>SQLite</application>.
|
---|
[104b5bf] | 400 | </para>
|
---|
| 401 |
|
---|
| 402 | <para>
|
---|
| 403 | <parameter>-no-nis</parameter>: This switch disables support
|
---|
| 404 | for Network Information Service (NIS) which has been
|
---|
[c32e0380] | 405 | removed from recent versions of <application>Glibc</application>.
|
---|
[104b5bf] | 406 | </para>
|
---|
| 407 |
|
---|
| 408 | <para>
|
---|
[05dcb8af] | 409 | <parameter>-dbus-linked -openssl-linked</parameter>: These
|
---|
[104b5bf] | 410 | switches enable explicit linking of the
|
---|
| 411 | <application>D-Bus</application> and
|
---|
| 412 | <application>OpenSSL</application> libraries into
|
---|
[0173357f] | 413 | <application>Qt5</application> libraries instead of
|
---|
[104b5bf] | 414 | <command>dlopen()</command>-ing them.
|
---|
| 415 | </para>
|
---|
| 416 |
|
---|
[47e6b60] | 417 | <para>
|
---|
| 418 | <parameter>-skip qtwebengine</parameter>: This switch disables
|
---|
| 419 | building the Qt Web Engine. It is not presently used by
|
---|
| 420 | any applications. If this option is removed, fix a build
|
---|
| 421 | problem with:
|
---|
| 422 |
|
---|
| 423 | <screen><userinput>sed -i '$ a !contains(QT_CONFIG, pulseaudio): GYP_CONFIG += use_pulseaudio=0' \
|
---|
| 424 | qtwebengine/src/core/config/desktop_linux.pri</userinput></screen>
|
---|
| 425 | </para>
|
---|
| 426 |
|
---|
[f3a6abc9] | 427 | <para>
|
---|
| 428 | <parameter>-optimized-qmake</parameter>: This switch enables
|
---|
| 429 | building of the optimized <command>qmake</command> program.
|
---|
[104b5bf] | 430 | </para>
|
---|
| 431 |
|
---|
[17bbaea] | 432 | <para>
|
---|
| 433 | <option>-system-harfbuzz</option>: This switch enables use
|
---|
| 434 | of the system version of <application>Harfbuzz</application>
|
---|
| 435 | which fixes some font rendering issues in
|
---|
| 436 | <application>Qt5</application> applications but doesn't have all the
|
---|
| 437 | features that the included one has.
|
---|
| 438 | </para>
|
---|
| 439 |
|
---|
[104b5bf] | 440 | </sect2>
|
---|
| 441 |
|
---|
| 442 | <sect2 role="configuration">
|
---|
[0173357f] | 443 | <title>Configuring Qt5</title>
|
---|
[104b5bf] | 444 |
|
---|
| 445 | <sect3 id="qt5-config">
|
---|
| 446 | <title>Configuration Information</title>
|
---|
| 447 |
|
---|
| 448 | <para>
|
---|
[0173357f] | 449 | Create the menu entries for installed applications by running the
|
---|
| 450 | following commands <systemitem class="username">root</systemitem>
|
---|
| 451 | user:
|
---|
[104b5bf] | 452 | </para>
|
---|
| 453 |
|
---|
[0173357f] | 454 | <para>
|
---|
| 455 | If you installed <application>Qt5</application> in
|
---|
| 456 | <filename class="directory">/usr</filename>, create an
|
---|
| 457 | environment variable needed by certain packages.
|
---|
| 458 | As the <systemitem class="username">root</systemitem> user:
|
---|
| 459 | </para>
|
---|
| 460 |
|
---|
| 461 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
| 462 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
| 463 |
|
---|
[49d3336] | 464 | QT5DIR=/usr
|
---|
[0173357f] | 465 | export QT5DIR
|
---|
| 466 |
|
---|
| 467 | # End /etc/profile.d/qt5.sh</literal>
|
---|
| 468 | EOF</userinput></screen>
|
---|
| 469 |
|
---|
| 470 | <para>
|
---|
| 471 | If you installed <application>Qt5</application> in a location other
|
---|
| 472 | than <filename class="directory">/usr</filename>, you need to update the
|
---|
| 473 | following configuration files so that <application>Qt5</application> is
|
---|
| 474 | correctly found by other packages and system processes.
|
---|
| 475 | </para>
|
---|
| 476 |
|
---|
| 477 | <para>
|
---|
| 478 | As the <systemitem class="username">root</systemitem> user, update
|
---|
| 479 | the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
---|
| 480 | run-time cache file:
|
---|
| 481 | </para>
|
---|
| 482 |
|
---|
| 483 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
| 484 | <literal># Begin Qt addition
|
---|
| 485 |
|
---|
| 486 | /opt/qt5/lib
|
---|
| 487 |
|
---|
| 488 | # End Qt addition</literal>
|
---|
| 489 | EOF
|
---|
| 490 |
|
---|
| 491 | ldconfig</userinput></screen>
|
---|
| 492 |
|
---|
| 493 | <indexterm zone="qt5 qt5-config">
|
---|
| 494 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 495 | </indexterm>
|
---|
| 496 |
|
---|
| 497 | <para>
|
---|
| 498 | As the <systemitem class="username">root</systemitem> user, create
|
---|
| 499 | the <filename>/etc/profile.d/qt5.sh</filename> file:
|
---|
| 500 | </para>
|
---|
| 501 |
|
---|
| 502 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
| 503 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
| 504 |
|
---|
| 505 | QT5DIR=/opt/qt5
|
---|
| 506 |
|
---|
| 507 | pathappend /opt/qt5/bin PATH
|
---|
| 508 | pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
|
---|
| 509 |
|
---|
| 510 | export QT5DIR
|
---|
| 511 |
|
---|
| 512 | # End /etc/profile.d/qt5.sh</literal>
|
---|
| 513 | EOF</userinput></screen>
|
---|
| 514 |
|
---|
[104b5bf] | 515 | </sect3>
|
---|
| 516 |
|
---|
[ec7940be] | 517 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 518 | href="../../xincludes/setqt.xml"/>
|
---|
[104b5bf] | 519 | </sect2>
|
---|
| 520 |
|
---|
| 521 | <sect2 role="content">
|
---|
| 522 | <title>Contents</title>
|
---|
| 523 |
|
---|
| 524 | <segmentedlist>
|
---|
| 525 | <segtitle>Installed Programs</segtitle>
|
---|
| 526 | <segtitle>Installed Libraries</segtitle>
|
---|
| 527 | <segtitle>Installed Directories</segtitle>
|
---|
| 528 |
|
---|
| 529 | <seglistitem>
|
---|
| 530 | <seg>
|
---|
[ec7940be] | 531 | assistant, designer, lconvert, linguist, lrelease,
|
---|
| 532 | lupdate, moc, pixeltool, qcollectiongenerator, qdbuscpp2xml,
|
---|
| 533 | qdbus, qdbusviewer, qdbusxml2cpp, qdoc, qhelpconverter,
|
---|
[3bf5bc51] | 534 | qhelpgenerator, qlalr, qmake, qml1plugindump, qmlbundle,
|
---|
[ec7940be] | 535 | qmlimportscanner, qmlmin, qmlplugindump, qmlprofiler, qml,
|
---|
[3bf5bc51] | 536 | qmlscene, qmltestrunner, qmlviewer, qtdiag, qtpaths, rcc,
|
---|
[ec7940be] | 537 | syncqt.pl, uic, xmlpatterns, and xmlpatternsvalidator
|
---|
[104b5bf] | 538 | </seg>
|
---|
| 539 | <seg>
|
---|
[3bf5bc51] | 540 | libEnginio.so, libqgsttools_p.so, libQt5Bluetooth.so,
|
---|
| 541 | libQt5Bootstrap.a, libQt5CLucene.so, libQt5Concurrent.so,
|
---|
| 542 | libQt5Core.so, libQt5DBus.so, libQt5Declarative.so,
|
---|
| 543 | libQt5DesignerComponents.so, libQt5Designer.so, libQt5Gui.so,
|
---|
| 544 | libQt5Help.so, libQt5MultimediaQuick_p.so, libQt5Multimedia.so,
|
---|
| 545 | libQt5MultimediaWidgets.so, libQt5Network.so, libQt5Nfc.so,
|
---|
| 546 | libQt5OpenGLExtensions.a, libQt5OpenGL.so, libQt5PlatformSupport.a,
|
---|
| 547 | libQt5Positioning.so, libQt5PrintSupport.so, libQt5QmlDevTools.a,
|
---|
| 548 | libQt5Qml.so, libQt5QuickParticles.so, libQt5QuickWidgets.so,
|
---|
| 549 | libQt5Quick.so, libQt5QuickTest.so, libQt5Script.so,
|
---|
| 550 | libQt5ScriptTools.so, libQt5Sensors.so, libQt5SerialPort.so,
|
---|
| 551 | libQt5Sql.so, libQt5Svg.so, libQt5Test.so, libQt5UiTools.a,
|
---|
| 552 | libQt5WebKit.so, libQt5WebKitWidgets.so, libQt5WebSockets.so,
|
---|
| 553 | libQt5Widgets.so, libQt5X11Extras.so, libQt5XmlPatterns.so,
|
---|
| 554 | libQt5Xml.so, and several plugins under /opt/qt5/{imports,plugins,qml}
|
---|
[104b5bf] | 555 | </seg>
|
---|
| 556 | <seg>
|
---|
| 557 | /usr/include/qt5,
|
---|
| 558 | /usr/lib/qt5,
|
---|
[fb28b3b] | 559 | /usr/share/doc/qt5, and
|
---|
[104b5bf] | 560 | /usr/share/qt5
|
---|
[ec7940be] | 561 | OR
|
---|
[43bb741] | 562 | /opt/qt5 and
|
---|
[ec7940be] | 563 | /opt/qt-&qt5-version;
|
---|
[104b5bf] | 564 | </seg>
|
---|
| 565 | </seglistitem>
|
---|
| 566 | </segmentedlist>
|
---|
| 567 |
|
---|
| 568 | <variablelist>
|
---|
| 569 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 570 | <?dbfo list-presentation="list"?>
|
---|
| 571 | <?dbhtml list-presentation="table"?>
|
---|
| 572 |
|
---|
| 573 | <varlistentry id="assistant-qt5">
|
---|
[ec7940be] | 574 | <term><command>assistant</command></term>
|
---|
[104b5bf] | 575 | <listitem>
|
---|
| 576 | <para>
|
---|
| 577 | is a tool for presenting on-line documentation.
|
---|
| 578 | </para>
|
---|
| 579 | <indexterm zone="qt5 assistant-qt5">
|
---|
[ec7940be] | 580 | <primary sortas="b-assistant-qt5">assistant</primary>
|
---|
[104b5bf] | 581 | </indexterm>
|
---|
| 582 | </listitem>
|
---|
| 583 | </varlistentry>
|
---|
| 584 |
|
---|
| 585 | <varlistentry id="designer-qt5">
|
---|
[ec7940be] | 586 | <term><command>designer</command></term>
|
---|
[104b5bf] | 587 | <listitem>
|
---|
| 588 | <para>
|
---|
| 589 | is a full-fledged GUI builder. It includes
|
---|
| 590 | powerful features such as preview mode, automatic widget
|
---|
| 591 | layout, support for custom widgets, and an advanced
|
---|
| 592 | property editor.
|
---|
| 593 | </para>
|
---|
| 594 | <indexterm zone="qt5 designer-qt5">
|
---|
[ec7940be] | 595 | <primary sortas="b-designer-qt5">designer</primary>
|
---|
[104b5bf] | 596 | </indexterm>
|
---|
| 597 | </listitem>
|
---|
| 598 | </varlistentry>
|
---|
| 599 |
|
---|
| 600 | <varlistentry id="linguist-qt5">
|
---|
[ec7940be] | 601 | <term><command>linguist</command></term>
|
---|
[104b5bf] | 602 | <listitem>
|
---|
| 603 | <para>
|
---|
| 604 | provides support for translating applications into
|
---|
| 605 | local languages.
|
---|
| 606 | </para>
|
---|
| 607 | <indexterm zone="qt5 linguist-qt5">
|
---|
[ec7940be] | 608 | <primary sortas="b-linguist-qt5">linguist</primary>
|
---|
[104b5bf] | 609 | </indexterm>
|
---|
| 610 | </listitem>
|
---|
| 611 | </varlistentry>
|
---|
| 612 |
|
---|
| 613 | <varlistentry id="lrelease-qt5">
|
---|
[ec7940be] | 614 | <term><command>lrelease</command></term>
|
---|
[104b5bf] | 615 | <listitem>
|
---|
| 616 | <para>
|
---|
| 617 | is a simple command line tool. It reads a Qt project
|
---|
| 618 | file and produces message files used by the application.
|
---|
| 619 | </para>
|
---|
| 620 | <indexterm zone="qt5 lrelease-qt5">
|
---|
[ec7940be] | 621 | <primary sortas="b-lrelease-qt5">lrelease</primary>
|
---|
[104b5bf] | 622 | </indexterm>
|
---|
| 623 | </listitem>
|
---|
| 624 | </varlistentry>
|
---|
| 625 |
|
---|
| 626 | <varlistentry id="lupdate-qt5">
|
---|
[ec7940be] | 627 | <term><command>lupdate</command></term>
|
---|
[104b5bf] | 628 | <listitem>
|
---|
| 629 | <para>
|
---|
| 630 | reads a Qt project file, finds the translatable
|
---|
| 631 | strings in the specified source, header and Qt Designer
|
---|
| 632 | interface files, and produces or updates the translation
|
---|
| 633 | files listed in the project file.
|
---|
| 634 | </para>
|
---|
| 635 | <indexterm zone="qt5 lupdate-qt5">
|
---|
[ec7940be] | 636 | <primary sortas="b-lupdate-qt5">lupdate</primary>
|
---|
[104b5bf] | 637 | </indexterm>
|
---|
| 638 | </listitem>
|
---|
| 639 | </varlistentry>
|
---|
| 640 |
|
---|
| 641 | <varlistentry id="moc-qt5">
|
---|
[ec7940be] | 642 | <term><command>moc</command></term>
|
---|
[104b5bf] | 643 | <listitem>
|
---|
| 644 | <para>
|
---|
| 645 | generates Qt meta object support code.
|
---|
| 646 | </para>
|
---|
| 647 | <indexterm zone="qt5 moc-qt5">
|
---|
[ec7940be] | 648 | <primary sortas="b-moc-qt5">moc</primary>
|
---|
[104b5bf] | 649 | </indexterm>
|
---|
| 650 | </listitem>
|
---|
| 651 | </varlistentry>
|
---|
| 652 |
|
---|
| 653 | <varlistentry id="pixeltool-qt5">
|
---|
[ec7940be] | 654 | <term><command>pixeltool</command></term>
|
---|
[104b5bf] | 655 | <listitem>
|
---|
| 656 | <para>
|
---|
| 657 | is a desktop magnifier and as you move your mouse around
|
---|
| 658 | the screen it will show the magnified contents in its window.
|
---|
| 659 | </para>
|
---|
| 660 | <indexterm zone="qt5 pixeltool-qt5">
|
---|
[ec7940be] | 661 | <primary sortas="b-pixeltool-qt5">pixeltool</primary>
|
---|
[104b5bf] | 662 | </indexterm>
|
---|
| 663 | </listitem>
|
---|
| 664 | </varlistentry>
|
---|
| 665 |
|
---|
| 666 | <varlistentry id="qmake-qt5">
|
---|
[ec7940be] | 667 | <term><command>qmake</command></term>
|
---|
[104b5bf] | 668 | <listitem>
|
---|
| 669 | <para>
|
---|
| 670 | uses information stored in project files to
|
---|
| 671 | determine what should go in the makefiles it
|
---|
| 672 | generates.
|
---|
| 673 | </para>
|
---|
| 674 | <indexterm zone="qt5 qmake-qt5">
|
---|
[ec7940be] | 675 | <primary sortas="b-qmake-qt5">qmake</primary>
|
---|
[104b5bf] | 676 | </indexterm>
|
---|
| 677 | </listitem>
|
---|
| 678 | </varlistentry>
|
---|
| 679 |
|
---|
| 680 | <varlistentry id="rcc-qt5">
|
---|
[ec7940be] | 681 | <term><command>rcc</command></term>
|
---|
[104b5bf] | 682 | <listitem>
|
---|
| 683 | <para>
|
---|
| 684 | is a resource compiler used in conjunction with designer.
|
---|
| 685 | </para>
|
---|
| 686 | <indexterm zone="qt5 rcc-qt5">
|
---|
[ec7940be] | 687 | <primary sortas="b-rcc-qt5">rcc</primary>
|
---|
[104b5bf] | 688 | </indexterm>
|
---|
| 689 | </listitem>
|
---|
| 690 | </varlistentry>
|
---|
| 691 |
|
---|
| 692 | <varlistentry id="uic-qt5">
|
---|
[ec7940be] | 693 | <term><command>uic</command></term>
|
---|
[104b5bf] | 694 | <listitem>
|
---|
| 695 | <para>
|
---|
| 696 | is a Qt user interface compiler.
|
---|
| 697 | </para>
|
---|
| 698 | <indexterm zone="qt5 uic-qt5">
|
---|
[ec7940be] | 699 | <primary sortas="b-uic-qt5">uic</primary>
|
---|
[104b5bf] | 700 | </indexterm>
|
---|
| 701 | </listitem>
|
---|
| 702 | </varlistentry>
|
---|
| 703 |
|
---|
| 704 | </variablelist>
|
---|
| 705 |
|
---|
| 706 | </sect2>
|
---|
| 707 |
|
---|
| 708 | </sect1>
|
---|