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