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