[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">
|
---|
[3b17049] | 10 | <!ENTITY qt5-url "http://download.qt.io/archive/qt/&qt5-major;/&qt5-version;/single">
|
---|
[104b5bf] | 11 |
|
---|
| 12 | <!ENTITY qt5-download-http "&qt5-url;/qt-everywhere-opensource-src-&qt5-version;.tar.xz">
|
---|
| 13 | <!ENTITY qt5-download-ftp " ">
|
---|
[98c79da] | 14 | <!ENTITY qt5-md5sum "c23bd0f14d66e7901d24906a1edce9b0">
|
---|
| 15 | <!ENTITY qt5-size "269 MB">
|
---|
| 16 | <!ENTITY qt5-buildsize "6.9 GB (172 MB installed)">
|
---|
| 17 | <!ENTITY qt5-time "24 SBU, using parallelism=4">
|
---|
[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 |
|
---|
[7835442] | 46 | &lfs77_checked; &gcc5_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. -->
|
---|
[5e0662d] | 122 | <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
|
---|
[104b5bf] | 123 | <xref linkend="postgresql"/>,
|
---|
[98c79da] | 124 | <xref linkend="pulseaudio"/>,
|
---|
| 125 | <xref linkend="unixodbc"/>,
|
---|
| 126 | <ulink url="https://code.google.com/p/ibus/">IBus</ulink>, and
|
---|
| 127 | <ulink url="http://xkbcommon.org/">libxkbcommon</ulink>
|
---|
[0173357f] | 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 |
|
---|
[0dd2bc6] | 138 | <sect2 role="qt5-prefix">
|
---|
| 139 | <title>Setting the installation prefix</title>
|
---|
| 140 |
|
---|
| 141 | <bridgehead renderas="sect3">Installing in /usr</bridgehead>
|
---|
| 142 |
|
---|
| 143 | <para>
|
---|
| 144 | If you want to install <application>Qt5</application>
|
---|
| 145 | in <filename class="directory">/usr</filename>, set the
|
---|
| 146 | following environment variable:
|
---|
| 147 | </para>
|
---|
| 148 |
|
---|
| 149 | <screen><userinput>export QT5PREFIX=/usr</userinput></screen>
|
---|
| 150 |
|
---|
| 151 | <bridgehead renderas="sect3">Installing in /opt/qt5</bridgehead>
|
---|
| 152 |
|
---|
| 153 | <para>
|
---|
| 154 | If you want to install <application>Qt5</application> in a directory
|
---|
| 155 | other than <filename class="directory">/usr</filename>, ie <filename
|
---|
| 156 | class="directory">/opt/qt4</filename>, set the following environment
|
---|
| 157 | variable:
|
---|
| 158 | </para>
|
---|
| 159 |
|
---|
| 160 | <screen><userinput>export QT5PREFIX=/opt/qt5</userinput></screen>
|
---|
| 161 |
|
---|
| 162 | <tip>
|
---|
| 163 | <para>
|
---|
| 164 | Sometimes, the installation paths are hardcoded into installed files.
|
---|
| 165 | This is the reason why <filename class="directory">/opt/qt5</filename>
|
---|
| 166 | is used as installation prefix instead of <filename
|
---|
| 167 | class="directory">/opt/qt-&qt5-version;</filename>. To create a
|
---|
| 168 | versioned <application>Qt5</application> directory, you may rename
|
---|
| 169 | the directory and create a symlink:
|
---|
| 170 | </para>
|
---|
| 171 |
|
---|
| 172 | <screen role="root"><userinput>mkdir /opt/qt-&qt5-version;
|
---|
| 173 | ln -sfnv qt-&qt5-version; /opt/qt5</userinput></screen>
|
---|
| 174 |
|
---|
| 175 | <para>
|
---|
| 176 | Later on, you may want to install other versions of
|
---|
| 177 | <application>Qt4</application>. To do that, just remove the symlink
|
---|
| 178 | and use <filename class="directory">/opt/qt5</filename> as the
|
---|
| 179 | prefix again. Which version of <application>Qt5</application> you
|
---|
| 180 | use depends only on where the symlink points.
|
---|
| 181 | </para>
|
---|
| 182 | </tip>
|
---|
| 183 |
|
---|
| 184 | </sect2>
|
---|
| 185 |
|
---|
[104b5bf] | 186 | <sect2 role="installation">
|
---|
[0173357f] | 187 | <title>Installation of Qt5</title>
|
---|
[104b5bf] | 188 |
|
---|
[fb28b3b] | 189 | <caution>
|
---|
[104b5bf] | 190 | <para>
|
---|
| 191 | If you did not install some of the recommended dependencies, examine
|
---|
| 192 | <command>./configure --help</command> output to check how to disable
|
---|
| 193 | them or use internal versions bundled in the source tarball.
|
---|
| 194 | </para>
|
---|
[fb28b3b] | 195 | </caution>
|
---|
| 196 |
|
---|
| 197 | <warning>
|
---|
| 198 | <para>
|
---|
[cb48da2] | 199 | If <application>Qt5</application> is being reinstalled into the
|
---|
[775fbafd] | 200 | same directory as an existing instance, run the commands done by
|
---|
| 201 | <systemitem class="username">root</systemitem>, such as
|
---|
[cb48da2] | 202 | <command>make install</command>, from a console or non-Qt5 based
|
---|
| 203 | window manager. It overwrites <application>Qt5</application>
|
---|
[775fbafd] | 204 | libraries that should not be in use during the install process.
|
---|
[fb28b3b] | 205 | </para>
|
---|
[104b5bf] | 206 | </warning>
|
---|
[adf64fa0] | 207 |
|
---|
[104b5bf] | 208 | <para>
|
---|
[fb28b3b] | 209 | Install <application>Qt5</application> by running the
|
---|
[104b5bf] | 210 | following commands:
|
---|
| 211 | </para>
|
---|
| 212 |
|
---|
[0dd2bc6] | 213 | <screen><userinput>./configure -prefix $QT5PREFIX \
|
---|
| 214 | -sysconfdir /etc/xdg \
|
---|
| 215 | -bindir $QT5BINDIR \
|
---|
| 216 | -headerdir $QT5PREFIX/include/qt5 \
|
---|
| 217 | -archdatadir $QT5PREFIX/lib/qt5 \
|
---|
| 218 | -datadir $QT5PREFIX/share/qt5 \
|
---|
| 219 | -docdir $QT5PREFIX/share/doc/qt5 \
|
---|
| 220 | -translationdir $QT5PREFIX/share/qt5/translations \
|
---|
| 221 | -examplesdir $QT5PREFIX/share/doc/qt5/examples \
|
---|
| 222 | -confirm-license \
|
---|
| 223 | -opensource \
|
---|
| 224 | -dbus-linked \
|
---|
| 225 | -openssl-linked \
|
---|
| 226 | -journald \
|
---|
| 227 | -system-harfbuzz \
|
---|
| 228 | -system-sqlite \
|
---|
| 229 | -nomake examples \
|
---|
| 230 | -no-rpath \
|
---|
| 231 | -optimized-qmake \
|
---|
| 232 | -skip qtwebengine &&
|
---|
[79904cf] | 233 |
|
---|
[104b5bf] | 234 | make</userinput></screen>
|
---|
| 235 |
|
---|
[ec7940be] | 236 | <para>
|
---|
| 237 | This package does not come with a test suite.
|
---|
| 238 | </para>
|
---|
| 239 |
|
---|
[104b5bf] | 240 | <para>
|
---|
[acacfb64] | 241 | Remove references to the build directory from the
|
---|
[a6c6923] | 242 | <filename class="extension">.pc</filename> files by running
|
---|
| 243 | the following command:
|
---|
[104b5bf] | 244 | </para>
|
---|
| 245 |
|
---|
| 246 | <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
|
---|
| 247 |
|
---|
| 248 | <para>
|
---|
| 249 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 250 | </para>
|
---|
| 251 |
|
---|
[ec7940be] | 252 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[104b5bf] | 253 |
|
---|
| 254 | <para>
|
---|
| 255 | Remove references to the build directory from installed files by
|
---|
| 256 | running the following commands as the
|
---|
| 257 | <systemitem class="username">root</systemitem> user:
|
---|
| 258 | </para>
|
---|
| 259 |
|
---|
[283854e4] | 260 | <screen role="root"><userinput>sed -e "s:$PWD/qtbase:/usr/lib/qt5:g" \
|
---|
[ec7940be] | 261 | -i /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &&
|
---|
[104b5bf] | 262 |
|
---|
[ec7940be] | 263 | find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -r \
|
---|
| 264 | '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' {} \;</userinput></screen>
|
---|
[104b5bf] | 265 |
|
---|
[ec7940be] | 266 | <para>
|
---|
[0dd2bc6] | 267 | Install images and create the menu entries
|
---|
| 268 | for installed applications. Be sure that the <envar>QT5PREFIX</envar>
|
---|
[ec7940be] | 269 | variable is defined in root's environment and
|
---|
| 270 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 271 | </para>
|
---|
| 272 |
|
---|
| 273 | <screen role="root"><userinput>install -v -dm755 /usr/share/pixmaps/ &&
|
---|
| 274 |
|
---|
| 275 | install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
---|
| 276 | /usr/share/pixmaps/assistant-qt5.png &&
|
---|
| 277 |
|
---|
| 278 | install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
---|
| 279 | /usr/share/pixmaps/designer-qt5.png &&
|
---|
| 280 |
|
---|
| 281 | install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
| 282 | /usr/share/pixmaps/linguist-qt5.png &&
|
---|
| 283 |
|
---|
| 284 | install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
| 285 | /usr/share/pixmaps/qdbusviewer-qt5.png &&
|
---|
| 286 |
|
---|
| 287 | install -dm755 /usr/share/applications &&
|
---|
| 288 |
|
---|
| 289 | cat > /usr/share/applications/assistant-qt5.desktop << EOF
|
---|
| 290 | <literal>[Desktop Entry]
|
---|
| 291 | Name=Qt5 Assistant
|
---|
| 292 | Comment=Shows Qt5 documentation and examples
|
---|
[0dd2bc6] | 293 | Exec=$QT5PREFIX/bin/assistant
|
---|
[ec7940be] | 294 | Icon=assistant-qt5.png
|
---|
| 295 | Terminal=false
|
---|
| 296 | Encoding=UTF-8
|
---|
| 297 | Type=Application
|
---|
| 298 | Categories=Qt;Development;Documentation;</literal>
|
---|
| 299 | EOF
|
---|
| 300 |
|
---|
| 301 | cat > /usr/share/applications/designer-qt5.desktop << EOF
|
---|
| 302 | <literal>[Desktop Entry]
|
---|
| 303 | Name=Qt5 Designer
|
---|
| 304 | GenericName=Interface Designer
|
---|
| 305 | Comment=Design GUIs for Qt5 applications
|
---|
[0dd2bc6] | 306 | Exec=$QT5PREFIX/bin/designer
|
---|
[ec7940be] | 307 | Icon=designer-qt5.png
|
---|
| 308 | MimeType=application/x-designer;
|
---|
| 309 | Terminal=false
|
---|
| 310 | Encoding=UTF-8
|
---|
| 311 | Type=Application
|
---|
| 312 | Categories=Qt;Development;</literal>
|
---|
| 313 | EOF
|
---|
| 314 |
|
---|
| 315 | cat > /usr/share/applications/linguist-qt5.desktop << EOF
|
---|
| 316 | <literal>[Desktop Entry]
|
---|
| 317 | Name=Qt5 Linguist
|
---|
| 318 | Comment=Add translations to Qt5 applications
|
---|
[0dd2bc6] | 319 | Exec=$QT5PREFIX/bin/linguist
|
---|
[ec7940be] | 320 | Icon=linguist-qt5.png
|
---|
| 321 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
| 322 | Terminal=false
|
---|
| 323 | Encoding=UTF-8
|
---|
| 324 | Type=Application
|
---|
| 325 | Categories=Qt;Development;</literal>
|
---|
| 326 | EOF
|
---|
| 327 |
|
---|
| 328 | cat > /usr/share/applications/qdbusviewer-qt5.desktop << EOF
|
---|
| 329 | <literal>[Desktop Entry]
|
---|
| 330 | Name=Qt5 QDbusViewer
|
---|
| 331 | GenericName=D-Bus Debugger
|
---|
| 332 | Comment=Debug D-Bus applications
|
---|
[0dd2bc6] | 333 | Exec=$QT5PREFIX/bin/qdbusviewer
|
---|
[ec7940be] | 334 | Icon=qdbusviewer-qt5.png
|
---|
| 335 | Terminal=false
|
---|
| 336 | Encoding=UTF-8
|
---|
| 337 | Type=Application
|
---|
| 338 | Categories=Qt;Development;Debugger;</literal>
|
---|
| 339 | EOF</userinput></screen>
|
---|
[74d76938] | 340 |
|
---|
| 341 | </sect2>
|
---|
| 342 |
|
---|
[104b5bf] | 343 | <sect2 role="commands">
|
---|
| 344 | <title>Command Explanations</title>
|
---|
| 345 |
|
---|
| 346 | <para>
|
---|
| 347 | <parameter>-confirm-license</parameter>: Accept license
|
---|
| 348 | without prompting user during configuration.
|
---|
| 349 | </para>
|
---|
| 350 |
|
---|
| 351 | <para>
|
---|
| 352 | <parameter>-opensource</parameter>: Install the opensource
|
---|
| 353 | version of <application>Qt</application>.
|
---|
| 354 | </para>
|
---|
| 355 |
|
---|
[f3a6abc9] | 356 | <para>
|
---|
| 357 | <parameter>-release</parameter>: This switch disables
|
---|
| 358 | building with debugging symbols.
|
---|
| 359 | </para>
|
---|
[104b5bf] | 360 |
|
---|
| 361 | <para>
|
---|
[c32e0380] | 362 | <parameter>-nomake examples</parameter>: This switch
|
---|
| 363 | disables building of the example programs included
|
---|
| 364 | in the source tarball. Remove it if you want to build
|
---|
| 365 | them.
|
---|
[104b5bf] | 366 | </para>
|
---|
| 367 |
|
---|
[98c79da] | 368 | <para>
|
---|
| 369 | <parameter>-nomake tests</parameter>: This switch
|
---|
| 370 | disables building of the test programs included
|
---|
| 371 | in the source tarball. Remove it if you want to build
|
---|
| 372 | them.
|
---|
| 373 | </para>
|
---|
| 374 |
|
---|
[104b5bf] | 375 | <para>
|
---|
| 376 | <parameter>-system-sqlite</parameter>: This switch enables use
|
---|
[f3a6abc9] | 377 | of the system version of <application>SQLite</application>.
|
---|
[104b5bf] | 378 | </para>
|
---|
| 379 |
|
---|
| 380 | <para>
|
---|
| 381 | <parameter>-no-nis</parameter>: This switch disables support
|
---|
| 382 | for Network Information Service (NIS) which has been
|
---|
[c32e0380] | 383 | removed from recent versions of <application>Glibc</application>.
|
---|
[104b5bf] | 384 | </para>
|
---|
| 385 |
|
---|
| 386 | <para>
|
---|
[05dcb8af] | 387 | <parameter>-dbus-linked -openssl-linked</parameter>: These
|
---|
[104b5bf] | 388 | switches enable explicit linking of the
|
---|
| 389 | <application>D-Bus</application> and
|
---|
| 390 | <application>OpenSSL</application> libraries into
|
---|
[0173357f] | 391 | <application>Qt5</application> libraries instead of
|
---|
[104b5bf] | 392 | <command>dlopen()</command>-ing them.
|
---|
| 393 | </para>
|
---|
| 394 |
|
---|
[47e6b60] | 395 | <para>
|
---|
| 396 | <parameter>-skip qtwebengine</parameter>: This switch disables
|
---|
| 397 | building the Qt Web Engine. It is not presently used by
|
---|
[8e92f401] | 398 | any applications. Note that building the Qt Web Engine increases the
|
---|
| 399 | build time and the installed size by almost 50%.
|
---|
[47e6b60] | 400 | </para>
|
---|
| 401 |
|
---|
[f3a6abc9] | 402 | <para>
|
---|
| 403 | <parameter>-optimized-qmake</parameter>: This switch enables
|
---|
| 404 | building of the optimized <command>qmake</command> program.
|
---|
[104b5bf] | 405 | </para>
|
---|
| 406 |
|
---|
[17bbaea] | 407 | <para>
|
---|
| 408 | <option>-system-harfbuzz</option>: This switch enables use
|
---|
| 409 | of the system version of <application>Harfbuzz</application>
|
---|
| 410 | which fixes some font rendering issues in
|
---|
| 411 | <application>Qt5</application> applications but doesn't have all the
|
---|
| 412 | features that the included one has.
|
---|
| 413 | </para>
|
---|
| 414 |
|
---|
[104b5bf] | 415 | </sect2>
|
---|
| 416 |
|
---|
| 417 | <sect2 role="configuration">
|
---|
[0173357f] | 418 | <title>Configuring Qt5</title>
|
---|
[104b5bf] | 419 |
|
---|
| 420 | <sect3 id="qt5-config">
|
---|
| 421 | <title>Configuration Information</title>
|
---|
| 422 |
|
---|
[0173357f] | 423 | <para>
|
---|
| 424 | If you installed <application>Qt5</application> in
|
---|
| 425 | <filename class="directory">/usr</filename>, create an
|
---|
| 426 | environment variable needed by certain packages.
|
---|
| 427 | As the <systemitem class="username">root</systemitem> user:
|
---|
| 428 | </para>
|
---|
| 429 |
|
---|
| 430 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
| 431 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
| 432 |
|
---|
[49d3336] | 433 | QT5DIR=/usr
|
---|
[0173357f] | 434 | export QT5DIR
|
---|
| 435 |
|
---|
| 436 | # End /etc/profile.d/qt5.sh</literal>
|
---|
| 437 | EOF</userinput></screen>
|
---|
| 438 |
|
---|
| 439 | <para>
|
---|
| 440 | If you installed <application>Qt5</application> in a location other
|
---|
| 441 | than <filename class="directory">/usr</filename>, you need to update the
|
---|
| 442 | following configuration files so that <application>Qt5</application> is
|
---|
| 443 | correctly found by other packages and system processes.
|
---|
| 444 | </para>
|
---|
| 445 |
|
---|
| 446 | <para>
|
---|
| 447 | As the <systemitem class="username">root</systemitem> user, update
|
---|
| 448 | the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
---|
| 449 | run-time cache file:
|
---|
| 450 | </para>
|
---|
| 451 |
|
---|
| 452 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
| 453 | <literal># Begin Qt addition
|
---|
| 454 |
|
---|
| 455 | /opt/qt5/lib
|
---|
| 456 |
|
---|
| 457 | # End Qt addition</literal>
|
---|
| 458 | EOF
|
---|
| 459 |
|
---|
| 460 | ldconfig</userinput></screen>
|
---|
| 461 |
|
---|
| 462 | <indexterm zone="qt5 qt5-config">
|
---|
| 463 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 464 | </indexterm>
|
---|
| 465 |
|
---|
| 466 | <para>
|
---|
| 467 | As the <systemitem class="username">root</systemitem> user, create
|
---|
| 468 | the <filename>/etc/profile.d/qt5.sh</filename> file:
|
---|
| 469 | </para>
|
---|
| 470 |
|
---|
| 471 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
| 472 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
| 473 |
|
---|
| 474 | QT5DIR=/opt/qt5
|
---|
| 475 |
|
---|
| 476 | pathappend /opt/qt5/bin PATH
|
---|
| 477 | pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
|
---|
| 478 |
|
---|
| 479 | export QT5DIR
|
---|
| 480 |
|
---|
| 481 | # End /etc/profile.d/qt5.sh</literal>
|
---|
| 482 | EOF</userinput></screen>
|
---|
| 483 |
|
---|
[104b5bf] | 484 | </sect3>
|
---|
| 485 |
|
---|
[ec7940be] | 486 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 487 | href="../../xincludes/setqt.xml"/>
|
---|
[104b5bf] | 488 | </sect2>
|
---|
| 489 |
|
---|
| 490 | <sect2 role="content">
|
---|
| 491 | <title>Contents</title>
|
---|
| 492 |
|
---|
| 493 | <segmentedlist>
|
---|
| 494 | <segtitle>Installed Programs</segtitle>
|
---|
| 495 | <segtitle>Installed Libraries</segtitle>
|
---|
| 496 | <segtitle>Installed Directories</segtitle>
|
---|
| 497 |
|
---|
| 498 | <seglistitem>
|
---|
| 499 | <seg>
|
---|
[ec7940be] | 500 | assistant, designer, lconvert, linguist, lrelease,
|
---|
| 501 | lupdate, moc, pixeltool, qcollectiongenerator, qdbuscpp2xml,
|
---|
| 502 | qdbus, qdbusviewer, qdbusxml2cpp, qdoc, qhelpconverter,
|
---|
[3b17049] | 503 | qhelpgenerator, qlalr, qmake, qml1plugindump, qmlbundle, qmleasing,
|
---|
| 504 | qmlimportscanner, qmllint, qmlmin, qmlplugindump, qmlprofiler, qml,
|
---|
[3bf5bc51] | 505 | qmlscene, qmltestrunner, qmlviewer, qtdiag, qtpaths, rcc,
|
---|
[ec7940be] | 506 | syncqt.pl, uic, xmlpatterns, and xmlpatternsvalidator
|
---|
[104b5bf] | 507 | </seg>
|
---|
| 508 | <seg>
|
---|
[3bf5bc51] | 509 | libEnginio.so, libqgsttools_p.so, libQt5Bluetooth.so,
|
---|
| 510 | libQt5Bootstrap.a, libQt5CLucene.so, libQt5Concurrent.so,
|
---|
| 511 | libQt5Core.so, libQt5DBus.so, libQt5Declarative.so,
|
---|
| 512 | libQt5DesignerComponents.so, libQt5Designer.so, libQt5Gui.so,
|
---|
[3b17049] | 513 | libQt5Help.so, libQt5Location.so, libQt5MultimediaQuick_p.so,
|
---|
| 514 | libQt5Multimedia.so, libQt5MultimediaWidgets.so, libQt5Network.so,
|
---|
| 515 | libQt5Nfc.so, libQt5OpenGLExtensions.a, libQt5OpenGL.so,
|
---|
| 516 | libQt5PlatformSupport.a, libQt5Positioning.so, libQt5PrintSupport.so,
|
---|
| 517 | libQt5QmlDevTools.a, libQt5Qml.so, libQt5QuickParticles.so,
|
---|
[98c79da] | 518 | libQt5Quick.so, libQt5QuickTest.so, libQt5QuickWidgets.so,
|
---|
[3b17049] | 519 | libQt5Script.so, libQt5ScriptTools.so, libQt5Sensors.so,
|
---|
| 520 | libQt5SerialPort.so, libQt5Sql.so, libQt5Svg.so, libQt5Test.so,
|
---|
[98c79da] | 521 | libQt5UiTools.a, libQt5WebChannel.so, libQt5WebEngineCore.so,
|
---|
| 522 | libQt5WebEngine.so, libQt5WebEngineWidgets.so, libQt5WebKit.so,
|
---|
[3b17049] | 523 | libQt5WebKitWidgets.so, libQt5WebSockets.so, libQt5Widgets.so,
|
---|
[98c79da] | 524 | libQt5X11Extras.so, libQt5XmlPatterns.so, libQt5Xml.so, and several
|
---|
| 525 | plugins under /opt/qt5/{imports,plugins,qml}
|
---|
[104b5bf] | 526 | </seg>
|
---|
| 527 | <seg>
|
---|
| 528 | /usr/include/qt5,
|
---|
| 529 | /usr/lib/qt5,
|
---|
[fb28b3b] | 530 | /usr/share/doc/qt5, and
|
---|
[104b5bf] | 531 | /usr/share/qt5
|
---|
[ec7940be] | 532 | OR
|
---|
[43bb741] | 533 | /opt/qt5 and
|
---|
[ec7940be] | 534 | /opt/qt-&qt5-version;
|
---|
[104b5bf] | 535 | </seg>
|
---|
| 536 | </seglistitem>
|
---|
| 537 | </segmentedlist>
|
---|
| 538 |
|
---|
| 539 | <variablelist>
|
---|
| 540 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 541 | <?dbfo list-presentation="list"?>
|
---|
| 542 | <?dbhtml list-presentation="table"?>
|
---|
| 543 |
|
---|
| 544 | <varlistentry id="assistant-qt5">
|
---|
[ec7940be] | 545 | <term><command>assistant</command></term>
|
---|
[104b5bf] | 546 | <listitem>
|
---|
| 547 | <para>
|
---|
| 548 | is a tool for presenting on-line documentation.
|
---|
| 549 | </para>
|
---|
| 550 | <indexterm zone="qt5 assistant-qt5">
|
---|
[ec7940be] | 551 | <primary sortas="b-assistant-qt5">assistant</primary>
|
---|
[104b5bf] | 552 | </indexterm>
|
---|
| 553 | </listitem>
|
---|
| 554 | </varlistentry>
|
---|
| 555 |
|
---|
| 556 | <varlistentry id="designer-qt5">
|
---|
[ec7940be] | 557 | <term><command>designer</command></term>
|
---|
[104b5bf] | 558 | <listitem>
|
---|
| 559 | <para>
|
---|
| 560 | is a full-fledged GUI builder. It includes
|
---|
| 561 | powerful features such as preview mode, automatic widget
|
---|
| 562 | layout, support for custom widgets, and an advanced
|
---|
| 563 | property editor.
|
---|
| 564 | </para>
|
---|
| 565 | <indexterm zone="qt5 designer-qt5">
|
---|
[ec7940be] | 566 | <primary sortas="b-designer-qt5">designer</primary>
|
---|
[104b5bf] | 567 | </indexterm>
|
---|
| 568 | </listitem>
|
---|
| 569 | </varlistentry>
|
---|
| 570 |
|
---|
[3b17049] | 571 | <varlistentry id="lconvert-qt5">
|
---|
| 572 | <term><command>lconvert</command></term>
|
---|
| 573 | <listitem>
|
---|
| 574 | <para>
|
---|
| 575 | is part of Qt5's Linguist tool chain. It can be used as a
|
---|
| 576 | standalone tool to convert and filter translation data files.
|
---|
| 577 | </para>
|
---|
| 578 | <indexterm zone="qt5 lconvert-qt5">
|
---|
| 579 | <primary sortas="b-lconvert-qt5">lconvert</primary>
|
---|
| 580 | </indexterm>
|
---|
| 581 | </listitem>
|
---|
| 582 | </varlistentry>
|
---|
| 583 |
|
---|
[104b5bf] | 584 | <varlistentry id="linguist-qt5">
|
---|
[ec7940be] | 585 | <term><command>linguist</command></term>
|
---|
[104b5bf] | 586 | <listitem>
|
---|
| 587 | <para>
|
---|
| 588 | provides support for translating applications into
|
---|
| 589 | local languages.
|
---|
| 590 | </para>
|
---|
| 591 | <indexterm zone="qt5 linguist-qt5">
|
---|
[ec7940be] | 592 | <primary sortas="b-linguist-qt5">linguist</primary>
|
---|
[104b5bf] | 593 | </indexterm>
|
---|
| 594 | </listitem>
|
---|
| 595 | </varlistentry>
|
---|
| 596 |
|
---|
| 597 | <varlistentry id="lrelease-qt5">
|
---|
[ec7940be] | 598 | <term><command>lrelease</command></term>
|
---|
[104b5bf] | 599 | <listitem>
|
---|
| 600 | <para>
|
---|
| 601 | is a simple command line tool. It reads a Qt project
|
---|
| 602 | file and produces message files used by the application.
|
---|
| 603 | </para>
|
---|
| 604 | <indexterm zone="qt5 lrelease-qt5">
|
---|
[ec7940be] | 605 | <primary sortas="b-lrelease-qt5">lrelease</primary>
|
---|
[104b5bf] | 606 | </indexterm>
|
---|
| 607 | </listitem>
|
---|
| 608 | </varlistentry>
|
---|
| 609 |
|
---|
| 610 | <varlistentry id="lupdate-qt5">
|
---|
[ec7940be] | 611 | <term><command>lupdate</command></term>
|
---|
[104b5bf] | 612 | <listitem>
|
---|
| 613 | <para>
|
---|
| 614 | reads a Qt project file, finds the translatable
|
---|
| 615 | strings in the specified source, header and Qt Designer
|
---|
| 616 | interface files, and produces or updates the translation
|
---|
| 617 | files listed in the project file.
|
---|
| 618 | </para>
|
---|
| 619 | <indexterm zone="qt5 lupdate-qt5">
|
---|
[ec7940be] | 620 | <primary sortas="b-lupdate-qt5">lupdate</primary>
|
---|
[104b5bf] | 621 | </indexterm>
|
---|
| 622 | </listitem>
|
---|
| 623 | </varlistentry>
|
---|
| 624 |
|
---|
| 625 | <varlistentry id="moc-qt5">
|
---|
[ec7940be] | 626 | <term><command>moc</command></term>
|
---|
[104b5bf] | 627 | <listitem>
|
---|
| 628 | <para>
|
---|
| 629 | generates Qt meta object support code.
|
---|
| 630 | </para>
|
---|
| 631 | <indexterm zone="qt5 moc-qt5">
|
---|
[ec7940be] | 632 | <primary sortas="b-moc-qt5">moc</primary>
|
---|
[104b5bf] | 633 | </indexterm>
|
---|
| 634 | </listitem>
|
---|
| 635 | </varlistentry>
|
---|
| 636 |
|
---|
| 637 | <varlistentry id="pixeltool-qt5">
|
---|
[ec7940be] | 638 | <term><command>pixeltool</command></term>
|
---|
[104b5bf] | 639 | <listitem>
|
---|
| 640 | <para>
|
---|
| 641 | is a desktop magnifier and as you move your mouse around
|
---|
| 642 | the screen it will show the magnified contents in its window.
|
---|
| 643 | </para>
|
---|
| 644 | <indexterm zone="qt5 pixeltool-qt5">
|
---|
[ec7940be] | 645 | <primary sortas="b-pixeltool-qt5">pixeltool</primary>
|
---|
[104b5bf] | 646 | </indexterm>
|
---|
| 647 | </listitem>
|
---|
| 648 | </varlistentry>
|
---|
| 649 |
|
---|
[3b17049] | 650 | <varlistentry id="qdbus-qt5">
|
---|
| 651 | <term><command>qdbus</command></term>
|
---|
| 652 | <listitem>
|
---|
| 653 | <para>
|
---|
| 654 | lists available services, object paths, methods, signals, and
|
---|
| 655 | properties of objects on a bus.
|
---|
| 656 | </para>
|
---|
| 657 | <indexterm zone="qt5 qdbus-qt5">
|
---|
| 658 | <primary sortas="b-qdbus-qt5">qdbus</primary>
|
---|
| 659 | </indexterm>
|
---|
| 660 | </listitem>
|
---|
| 661 | </varlistentry>
|
---|
| 662 |
|
---|
[104b5bf] | 663 | <varlistentry id="qmake-qt5">
|
---|
[ec7940be] | 664 | <term><command>qmake</command></term>
|
---|
[104b5bf] | 665 | <listitem>
|
---|
| 666 | <para>
|
---|
| 667 | uses information stored in project files to
|
---|
| 668 | determine what should go in the makefiles it
|
---|
| 669 | generates.
|
---|
| 670 | </para>
|
---|
| 671 | <indexterm zone="qt5 qmake-qt5">
|
---|
[ec7940be] | 672 | <primary sortas="b-qmake-qt5">qmake</primary>
|
---|
[104b5bf] | 673 | </indexterm>
|
---|
| 674 | </listitem>
|
---|
| 675 | </varlistentry>
|
---|
| 676 |
|
---|
| 677 | <varlistentry id="rcc-qt5">
|
---|
[ec7940be] | 678 | <term><command>rcc</command></term>
|
---|
[104b5bf] | 679 | <listitem>
|
---|
| 680 | <para>
|
---|
| 681 | is a resource compiler used in conjunction with designer.
|
---|
| 682 | </para>
|
---|
| 683 | <indexterm zone="qt5 rcc-qt5">
|
---|
[ec7940be] | 684 | <primary sortas="b-rcc-qt5">rcc</primary>
|
---|
[104b5bf] | 685 | </indexterm>
|
---|
| 686 | </listitem>
|
---|
| 687 | </varlistentry>
|
---|
| 688 |
|
---|
| 689 | <varlistentry id="uic-qt5">
|
---|
[ec7940be] | 690 | <term><command>uic</command></term>
|
---|
[104b5bf] | 691 | <listitem>
|
---|
| 692 | <para>
|
---|
| 693 | is a Qt user interface compiler.
|
---|
| 694 | </para>
|
---|
| 695 | <indexterm zone="qt5 uic-qt5">
|
---|
[ec7940be] | 696 | <primary sortas="b-uic-qt5">uic</primary>
|
---|
[104b5bf] | 697 | </indexterm>
|
---|
| 698 | </listitem>
|
---|
| 699 | </varlistentry>
|
---|
| 700 |
|
---|
| 701 | </variablelist>
|
---|
| 702 |
|
---|
| 703 | </sect2>
|
---|
| 704 |
|
---|
| 705 | </sect1>
|
---|