[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 " ">
|
---|
[c68ef6bd] | 12 | <!ENTITY qt5-md5sum "c4e893678e3d8388ab04d059523d1d78">
|
---|
| 13 | <!ENTITY qt5-size "170 MB">
|
---|
| 14 | <!ENTITY qt5-buildsize "2.6 GB (169 MB installed)">
|
---|
| 15 | <!ENTITY qt5-time "98 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 |
|
---|
[09ae65ca] | 44 | &lfs76_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"/>,
|
---|
[5c7d5b25] | 98 | <xref linkend="gst-plugins-base"/>,
|
---|
| 99 | <xref linkend="harfbuzz"/>,
|
---|
[c65ac49d] | 100 | <xref linkend="icu"/> (unicode support, also required for QtWebKit),
|
---|
[104b5bf] | 101 | <xref linkend="libjpeg"/>,
|
---|
[834937d] | 102 | <xref linkend="libmng"/>,
|
---|
[104b5bf] | 103 | <xref linkend="libpng"/>,
|
---|
| 104 | <xref linkend="libtiff"/>,
|
---|
[8b063c97] | 105 | <xref linkend="libxkbcommon"/>,
|
---|
[79904cf] | 106 | <xref linkend="mtdev"/>,
|
---|
[104b5bf] | 107 | <xref linkend="openssl"/>,
|
---|
[8e06e6e] | 108 | <xref linkend="pcre"/>,
|
---|
[c65ac49d] | 109 | <xref linkend="ruby"/> (required for QtWebKit), and
|
---|
| 110 | <xref linkend="sqlite"/>
|
---|
[104b5bf] | 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 114 | <para role="optional">
|
---|
[79904cf] | 115 | <xref linkend="geoclue"/>,
|
---|
[104b5bf] | 116 | <xref linkend="gst10-plugins-base"/> (QtWebKit HTML5 Video Support),
|
---|
| 117 | <xref linkend="gtk2"/> (GTK+ Theme Support),
|
---|
[8b063c97] | 118 | <xref linkend="ibus"/>,
|
---|
| 119 | <xref linkend="mariadb"/>,
|
---|
[104b5bf] | 120 | <xref linkend="postgresql"/>,
|
---|
[0173357f] | 121 | <xref linkend="pulseaudio"/>, and
|
---|
| 122 | <xref linkend="unixodbc"/>
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
[5c7d5b25] | 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 |
|
---|
[c65ac49d] | 136 | <sect2 role="qt5-prefix">
|
---|
[5c7d5b25] | 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
|
---|
[c65ac49d] | 156 | users is that this <application>Qt5</application> instance cannot
|
---|
[5c7d5b25] | 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 |
|
---|
[d94c58f4] | 185 | <tip>
|
---|
| 186 | <para>
|
---|
| 187 | Sometimes, the installation paths are hardcoded into installed files.
|
---|
| 188 | This is the reason why <filename class="directory">/opt/qt5</filename>
|
---|
| 189 | is used as installation prefix instead of <filename
|
---|
| 190 | class="directory">/opt/qt-&qt5-version;</filename>. After installing
|
---|
| 191 | <application>Qt5</application>, you may rename the directory and
|
---|
| 192 | create a symlink:
|
---|
| 193 | </para>
|
---|
| 194 |
|
---|
| 195 | <screen role="root"><userinput>mv /opt/qt{5,-&qt5-version;}
|
---|
| 196 | ln -sfv qt-&qt5-version; /opt/qt5</userinput></screen>
|
---|
| 197 |
|
---|
| 198 | <para>
|
---|
| 199 | Later on, you may want to install other versions of
|
---|
| 200 | <application>Qt5</application>. To do that, just remove the symlink
|
---|
| 201 | and use <filename class="directory">/opt/qt5</filename> as the
|
---|
| 202 | prefix again. Which version of <application>Qt5</application> you
|
---|
| 203 | use depends only on where the symlink points to.
|
---|
| 204 | </para>
|
---|
| 205 | </tip>
|
---|
| 206 |
|
---|
[7b9cf96] | 207 | <bridgehead renderas="sect3">Setting the install location for executables</bridgehead>
|
---|
[5c7d5b25] | 208 |
|
---|
| 209 | <para>
|
---|
| 210 | Both <application>Qt4</application> and
|
---|
| 211 | <application>Qt5</application> executables have
|
---|
[d928d4a] | 212 | the same names and will overwrite each other if
|
---|
[5c7d5b25] | 213 | they are installed in the same prefix. To overcome
|
---|
| 214 | such problem, BLFS offers <xref linkend="qtchooser"/>,
|
---|
| 215 | an utility used to switch between different
|
---|
| 216 | <application>Qt</application> versions.
|
---|
| 217 | </para>
|
---|
| 218 |
|
---|
| 219 | <para>
|
---|
| 220 | If <xref linkend="qtchooser"/> is to be used or
|
---|
| 221 | if installing both <application>Qt4</application>
|
---|
| 222 | and <application>Qt5</application> in
|
---|
| 223 | <filename class="directory">/usr</filename>, the
|
---|
| 224 | executables need to be installed to a non-standard
|
---|
| 225 | location in order to avoid the conflict with
|
---|
| 226 | <application>Qt4</application> ones. To accomplish
|
---|
| 227 | that, set the following environment variable:
|
---|
| 228 | </para>
|
---|
| 229 |
|
---|
| 230 | <screen><userinput>export QT5BINDIR=$QT5PREFIX/lib/qt5/bin</userinput></screen>
|
---|
| 231 |
|
---|
| 232 | <para>
|
---|
| 233 | If you choose not to install <xref linkend="qtchooser"/>
|
---|
| 234 | or if you are not going to install
|
---|
| 235 | <application>Qt4</application>, simply set the bindir to
|
---|
| 236 | a <filename class="directory">bin</filename> subdir of the
|
---|
| 237 | default prefix by setting the following environment variable:
|
---|
| 238 | </para>
|
---|
| 239 |
|
---|
| 240 | <screen><userinput>export QT5BINDIR=$QT5PREFIX/bin</userinput></screen>
|
---|
| 241 |
|
---|
| 242 | </sect2>
|
---|
[ec7940be] | 243 |
|
---|
[104b5bf] | 244 | <sect2 role="installation">
|
---|
[0173357f] | 245 | <title>Installation of Qt5</title>
|
---|
[104b5bf] | 246 |
|
---|
[fb28b3b] | 247 | <caution>
|
---|
[104b5bf] | 248 | <para>
|
---|
| 249 | If you did not install some of the recommended dependencies, examine
|
---|
| 250 | <command>./configure --help</command> output to check how to disable
|
---|
| 251 | them or use internal versions bundled in the source tarball.
|
---|
| 252 | </para>
|
---|
[fb28b3b] | 253 | </caution>
|
---|
| 254 |
|
---|
| 255 | <warning>
|
---|
| 256 | <para>
|
---|
[cb48da2] | 257 | If <application>Qt5</application> is being reinstalled into the
|
---|
[775fbafd] | 258 | same directory as an existing instance, run the commands done by
|
---|
| 259 | <systemitem class="username">root</systemitem>, such as
|
---|
[cb48da2] | 260 | <command>make install</command>, from a console or non-Qt5 based
|
---|
| 261 | window manager. It overwrites <application>Qt5</application>
|
---|
[775fbafd] | 262 | libraries that should not be in use during the install process.
|
---|
[fb28b3b] | 263 | </para>
|
---|
[104b5bf] | 264 | </warning>
|
---|
[adf64fa0] | 265 |
|
---|
[104b5bf] | 266 | <para>
|
---|
[fb28b3b] | 267 | Install <application>Qt5</application> by running the
|
---|
[104b5bf] | 268 | following commands:
|
---|
| 269 | </para>
|
---|
| 270 |
|
---|
[5c7d5b25] | 271 | <screen><userinput>./configure -prefix $QT5PREFIX \
|
---|
| 272 | -sysconfdir /etc/xdg \
|
---|
| 273 | -bindir $QT5BINDIR \
|
---|
| 274 | -headerdir $QT5PREFIX/include/qt5 \
|
---|
| 275 | -archdatadir $QT5PREFIX/lib/qt5 \
|
---|
| 276 | -datadir $QT5PREFIX/share/qt5 \
|
---|
| 277 | -docdir $QT5PREFIX/share/doc/qt5 \
|
---|
| 278 | -translationdir $QT5PREFIX/share/qt5/translations \
|
---|
| 279 | -examplesdir $QT5PREFIX/share/doc/qt5/examples \
|
---|
| 280 | -confirm-license \
|
---|
| 281 | -opensource \
|
---|
| 282 | -dbus-linked \
|
---|
| 283 | -openssl-linked \
|
---|
| 284 | -system-harfbuzz \
|
---|
| 285 | -system-sqlite \
|
---|
| 286 | -nomake examples \
|
---|
| 287 | -optimized-qmake &&
|
---|
[104b5bf] | 288 | make</userinput></screen>
|
---|
| 289 |
|
---|
[ec7940be] | 290 | <para>
|
---|
| 291 | This package does not come with a test suite.
|
---|
| 292 | </para>
|
---|
| 293 |
|
---|
[104b5bf] | 294 | <para>
|
---|
[acacfb64] | 295 | Remove references to the build directory from the
|
---|
[a6c6923] | 296 | <filename class="extension">.pc</filename> files by running
|
---|
| 297 | the following command:
|
---|
[104b5bf] | 298 | </para>
|
---|
| 299 |
|
---|
| 300 | <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
|
---|
| 301 |
|
---|
[5c7d5b25] | 302 | <warning>
|
---|
| 303 | <para>
|
---|
| 304 | Make sure that <envar>QT5PREFIX</envar> and <envar>QT5BINDIR</envar>
|
---|
| 305 | environment variables are set for the
|
---|
| 306 | <systemitem class="username">root</systemitem> user too.
|
---|
| 307 | </para>
|
---|
| 308 | </warning>
|
---|
| 309 |
|
---|
[104b5bf] | 310 | <para>
|
---|
| 311 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 312 | </para>
|
---|
| 313 |
|
---|
[ec7940be] | 314 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[104b5bf] | 315 |
|
---|
| 316 | <para>
|
---|
| 317 | Remove references to the build directory from installed files by
|
---|
| 318 | running the following commands as the
|
---|
| 319 | <systemitem class="username">root</systemitem> user:
|
---|
| 320 | </para>
|
---|
| 321 |
|
---|
[5c7d5b25] | 322 | <screen role="root"><userinput>sed -e "s:$PWD/qtbase:$QT5PREFIX/lib/qt5:g" \
|
---|
| 323 | -i $QT5PREFIX/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &&
|
---|
[104b5bf] | 324 |
|
---|
[09ae65ca] | 325 | find $QT5PREFIX/lib/lib{Enginio,qgsttools_p,Qt5*}.prl -exec sed -i -r \
|
---|
[ec7940be] | 326 | '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' {} \;</userinput></screen>
|
---|
[104b5bf] | 327 |
|
---|
[ec7940be] | 328 | <para>
|
---|
[5c7d5b25] | 329 | Install images and create the menu entries for installed
|
---|
| 330 | applications by running the following commands
|
---|
[ec7940be] | 331 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 332 | </para>
|
---|
| 333 |
|
---|
[c65ac49d] | 334 | <screen role="root"><userinput>install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
---|
[ec7940be] | 335 | /usr/share/pixmaps/assistant-qt5.png &&
|
---|
| 336 |
|
---|
| 337 | install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
---|
[5c7d5b25] | 338 | /usr/share/pixmaps/designer-qt5.png &&
|
---|
[ec7940be] | 339 |
|
---|
| 340 | install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
[5c7d5b25] | 341 | /usr/share/pixmaps/linguist-qt5.png &&
|
---|
[ec7940be] | 342 |
|
---|
| 343 | install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
| 344 | /usr/share/pixmaps/qdbusviewer-qt5.png &&
|
---|
| 345 |
|
---|
[5c7d5b25] | 346 | install -v -dm755 /usr/share/applications &&
|
---|
[ec7940be] | 347 |
|
---|
| 348 | cat > /usr/share/applications/assistant-qt5.desktop << EOF
|
---|
| 349 | <literal>[Desktop Entry]
|
---|
| 350 | Name=Qt5 Assistant
|
---|
| 351 | Comment=Shows Qt5 documentation and examples
|
---|
[5c7d5b25] | 352 | Exec=$QT5BINDIR/assistant
|
---|
[ec7940be] | 353 | Icon=assistant-qt5.png
|
---|
| 354 | Terminal=false
|
---|
| 355 | Encoding=UTF-8
|
---|
| 356 | Type=Application
|
---|
| 357 | Categories=Qt;Development;Documentation;</literal>
|
---|
| 358 | EOF
|
---|
| 359 |
|
---|
| 360 | cat > /usr/share/applications/designer-qt5.desktop << EOF
|
---|
| 361 | <literal>[Desktop Entry]
|
---|
| 362 | Name=Qt5 Designer
|
---|
| 363 | GenericName=Interface Designer
|
---|
| 364 | Comment=Design GUIs for Qt5 applications
|
---|
[5c7d5b25] | 365 | Exec=$QT5BINDIR/designer
|
---|
[ec7940be] | 366 | Icon=designer-qt5.png
|
---|
| 367 | MimeType=application/x-designer;
|
---|
| 368 | Terminal=false
|
---|
| 369 | Encoding=UTF-8
|
---|
| 370 | Type=Application
|
---|
| 371 | Categories=Qt;Development;</literal>
|
---|
| 372 | EOF
|
---|
| 373 |
|
---|
| 374 | cat > /usr/share/applications/linguist-qt5.desktop << EOF
|
---|
| 375 | <literal>[Desktop Entry]
|
---|
| 376 | Name=Qt5 Linguist
|
---|
| 377 | Comment=Add translations to Qt5 applications
|
---|
[5c7d5b25] | 378 | Exec=$QT5BINDIR/linguist
|
---|
[ec7940be] | 379 | Icon=linguist-qt5.png
|
---|
| 380 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
| 381 | Terminal=false
|
---|
| 382 | Encoding=UTF-8
|
---|
| 383 | Type=Application
|
---|
| 384 | Categories=Qt;Development;</literal>
|
---|
| 385 | EOF
|
---|
| 386 |
|
---|
| 387 | cat > /usr/share/applications/qdbusviewer-qt5.desktop << EOF
|
---|
| 388 | <literal>[Desktop Entry]
|
---|
| 389 | Name=Qt5 QDbusViewer
|
---|
| 390 | GenericName=D-Bus Debugger
|
---|
| 391 | Comment=Debug D-Bus applications
|
---|
[5c7d5b25] | 392 | Exec=$QT5BINDIR/qdbusviewer
|
---|
[ec7940be] | 393 | Icon=qdbusviewer-qt5.png
|
---|
| 394 | Terminal=false
|
---|
| 395 | Encoding=UTF-8
|
---|
| 396 | Type=Application
|
---|
| 397 | Categories=Qt;Development;Debugger;</literal>
|
---|
| 398 | EOF</userinput></screen>
|
---|
[74d76938] | 399 |
|
---|
[5c7d5b25] | 400 | <para>
|
---|
| 401 | Some packages look for <application>Qt5</application> executables
|
---|
[11d8b85] | 402 | with <filename>-qt5</filename> suffix. Run the following command
|
---|
| 403 | as the <systemitem class="username">root</systemitem> user to
|
---|
| 404 | create the necessary symlinks:
|
---|
[5c7d5b25] | 405 | </para>
|
---|
| 406 |
|
---|
[fa37f2a] | 407 | <screen role="root"><userinput>for file in assistant designer lconvert linguist lrelease lupdate \
|
---|
| 408 | moc pixeltool qcollectiongenerator qdbus qdbuscpp2xml \
|
---|
| 409 | qdbusviewer qdbusxml2cpp qdoc qhelpconverter \
|
---|
| 410 | qhelpgenerator qlalr qmake qml qml1plugindump qmlbundle \
|
---|
| 411 | qmlimportscanner qmlmin qmlplugindump qmlprofiler \
|
---|
| 412 | qmlscene qmltestrunner qmlviewer qtdiag qtpaths \
|
---|
| 413 | rcc syncqt.pl uic xmlpatterns xmlpatternsvalidator
|
---|
| 414 | do
|
---|
| 415 | ln -sfrv $QT5BINDIR/$file /usr/bin/$file-qt5
|
---|
[09ae65ca] | 416 | done
|
---|
| 417 | unset file</userinput></screen>
|
---|
[5c7d5b25] | 418 |
|
---|
[74d76938] | 419 | </sect2>
|
---|
| 420 |
|
---|
[104b5bf] | 421 | <sect2 role="commands">
|
---|
| 422 | <title>Command Explanations</title>
|
---|
| 423 |
|
---|
| 424 | <para>
|
---|
| 425 | <parameter>-confirm-license</parameter>: Accept license
|
---|
| 426 | without prompting user during configuration.
|
---|
| 427 | </para>
|
---|
| 428 |
|
---|
| 429 | <para>
|
---|
| 430 | <parameter>-opensource</parameter>: Install the opensource
|
---|
| 431 | version of <application>Qt</application>.
|
---|
| 432 | </para>
|
---|
| 433 |
|
---|
[f3a6abc9] | 434 | <para>
|
---|
| 435 | <parameter>-release</parameter>: This switch disables
|
---|
| 436 | building with debugging symbols.
|
---|
| 437 | </para>
|
---|
[104b5bf] | 438 |
|
---|
| 439 | <para>
|
---|
[c32e0380] | 440 | <parameter>-nomake examples</parameter>: This switch
|
---|
| 441 | disables building of the example programs included
|
---|
| 442 | in the source tarball. Remove it if you want to build
|
---|
| 443 | them.
|
---|
[104b5bf] | 444 | </para>
|
---|
| 445 |
|
---|
[1d86421] | 446 | <para>
|
---|
| 447 | <parameter>-system-harfbuzz</parameter>: This switch enables use
|
---|
| 448 | of the system version of <application>Harfbuzz</application>
|
---|
| 449 | which fixes some font rendering issues in
|
---|
| 450 | <application>Qt5</application> applications.
|
---|
| 451 | </para>
|
---|
| 452 |
|
---|
[104b5bf] | 453 | <para>
|
---|
| 454 | <parameter>-system-sqlite</parameter>: This switch enables use
|
---|
[f3a6abc9] | 455 | of the system version of <application>SQLite</application>.
|
---|
[104b5bf] | 456 | </para>
|
---|
| 457 |
|
---|
| 458 | <para>
|
---|
[05dcb8af] | 459 | <parameter>-dbus-linked -openssl-linked</parameter>: These
|
---|
[104b5bf] | 460 | switches enable explicit linking of the
|
---|
| 461 | <application>D-Bus</application> and
|
---|
| 462 | <application>OpenSSL</application> libraries into
|
---|
[0173357f] | 463 | <application>Qt5</application> libraries instead of
|
---|
[104b5bf] | 464 | <command>dlopen()</command>-ing them.
|
---|
| 465 | </para>
|
---|
| 466 |
|
---|
[f3a6abc9] | 467 | <para>
|
---|
| 468 | <parameter>-optimized-qmake</parameter>: This switch enables
|
---|
| 469 | building of the optimized <command>qmake</command> program.
|
---|
[104b5bf] | 470 | </para>
|
---|
| 471 |
|
---|
| 472 | </sect2>
|
---|
| 473 |
|
---|
| 474 | <sect2 role="configuration">
|
---|
[0173357f] | 475 | <title>Configuring Qt5</title>
|
---|
[104b5bf] | 476 |
|
---|
| 477 | <sect3 id="qt5-config">
|
---|
| 478 | <title>Configuration Information</title>
|
---|
| 479 |
|
---|
[5c7d5b25] | 480 | <note>
|
---|
| 481 | <para>
|
---|
| 482 | If you have installed <application>Qt5</application>
|
---|
| 483 | in <filename class="directory">/usr</filename> you
|
---|
| 484 | can skip this section.
|
---|
| 485 | </para>
|
---|
| 486 | </note>
|
---|
[0173357f] | 487 |
|
---|
| 488 | <para>
|
---|
| 489 | If you installed <application>Qt5</application> in a location other
|
---|
| 490 | than <filename class="directory">/usr</filename>, you need to update the
|
---|
| 491 | following configuration files so that <application>Qt5</application> is
|
---|
| 492 | correctly found by other packages and system processes.
|
---|
| 493 | </para>
|
---|
| 494 |
|
---|
| 495 | <para>
|
---|
| 496 | As the <systemitem class="username">root</systemitem> user, update
|
---|
| 497 | the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
---|
| 498 | run-time cache file:
|
---|
| 499 | </para>
|
---|
| 500 |
|
---|
| 501 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
[5c7d5b25] | 502 | <literal># Begin Qt5 addition
|
---|
[0173357f] | 503 |
|
---|
[5c7d5b25] | 504 | $QT5PREFIX/lib
|
---|
[0173357f] | 505 |
|
---|
[5c7d5b25] | 506 | # End Qt5 addition</literal>
|
---|
[0173357f] | 507 | EOF
|
---|
| 508 |
|
---|
| 509 | ldconfig</userinput></screen>
|
---|
| 510 |
|
---|
| 511 | <indexterm zone="qt5 qt5-config">
|
---|
| 512 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 513 | </indexterm>
|
---|
| 514 |
|
---|
| 515 | <para>
|
---|
[5c7d5b25] | 516 | If you have installed <xref linkend="qtchooser"/>, create
|
---|
| 517 | the <filename>/etc/profile.d/qt5.sh</filename> file by
|
---|
| 518 | running the following command as the
|
---|
| 519 | <systemitem class="username">root</systemitem> user:
|
---|
[0173357f] | 520 | </para>
|
---|
| 521 |
|
---|
| 522 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
| 523 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
| 524 |
|
---|
[5c7d5b25] | 525 | pathappend $QT5PREFIX/lib/pkgconfig PKG_CONFIG_PATH
|
---|
[0173357f] | 526 |
|
---|
[5c7d5b25] | 527 | # End /etc/profile.d/qt5.sh</literal>
|
---|
| 528 | EOF</userinput></screen>
|
---|
[0173357f] | 529 |
|
---|
[5c7d5b25] | 530 | <para>
|
---|
| 531 | If you have not installed <xref linkend="qtchooser"/>,
|
---|
| 532 | create the <filename>/etc/profile.d/qt5.sh</filename>
|
---|
| 533 | file by running the following command as the
|
---|
| 534 | <systemitem class="username">root</systemitem> user:
|
---|
| 535 | </para>
|
---|
| 536 |
|
---|
| 537 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
| 538 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
| 539 |
|
---|
| 540 | pathappend $QT5BINDIR PATH
|
---|
| 541 | pathappend $QT5PREFIX/lib/pkgconfig PKG_CONFIG_PATH
|
---|
[0173357f] | 542 |
|
---|
| 543 | # End /etc/profile.d/qt5.sh</literal>
|
---|
| 544 | EOF</userinput></screen>
|
---|
| 545 |
|
---|
[5c7d5b25] | 546 | <note>
|
---|
| 547 | <para>
|
---|
[c65ac49d] | 548 | If <xref linkend="qtchooser"/> is not installed and you
|
---|
| 549 | also have <application>Qt4</application> installed,
|
---|
[5c7d5b25] | 550 | you will need to manually adjust the <envar>PATH</envar>
|
---|
| 551 | variable depending on which <application>Qt</application>
|
---|
| 552 | version is needed.
|
---|
| 553 | </para>
|
---|
| 554 | </note>
|
---|
| 555 |
|
---|
[104b5bf] | 556 | </sect3>
|
---|
| 557 |
|
---|
| 558 | </sect2>
|
---|
| 559 |
|
---|
| 560 | <sect2 role="content">
|
---|
| 561 | <title>Contents</title>
|
---|
| 562 |
|
---|
| 563 | <segmentedlist>
|
---|
| 564 | <segtitle>Installed Programs</segtitle>
|
---|
| 565 | <segtitle>Installed Libraries</segtitle>
|
---|
| 566 | <segtitle>Installed Directories</segtitle>
|
---|
| 567 |
|
---|
| 568 | <seglistitem>
|
---|
| 569 | <seg>
|
---|
[ec7940be] | 570 | assistant, designer, lconvert, linguist, lrelease,
|
---|
| 571 | lupdate, moc, pixeltool, qcollectiongenerator, qdbuscpp2xml,
|
---|
| 572 | qdbus, qdbusviewer, qdbusxml2cpp, qdoc, qhelpconverter,
|
---|
[3bf5bc51] | 573 | qhelpgenerator, qlalr, qmake, qml1plugindump, qmlbundle,
|
---|
[ec7940be] | 574 | qmlimportscanner, qmlmin, qmlplugindump, qmlprofiler, qml,
|
---|
[3bf5bc51] | 575 | qmlscene, qmltestrunner, qmlviewer, qtdiag, qtpaths, rcc,
|
---|
[ec7940be] | 576 | syncqt.pl, uic, xmlpatterns, and xmlpatternsvalidator
|
---|
[104b5bf] | 577 | </seg>
|
---|
| 578 | <seg>
|
---|
[3bf5bc51] | 579 | libEnginio.so, libqgsttools_p.so, libQt5Bluetooth.so,
|
---|
| 580 | libQt5Bootstrap.a, libQt5CLucene.so, libQt5Concurrent.so,
|
---|
| 581 | libQt5Core.so, libQt5DBus.so, libQt5Declarative.so,
|
---|
| 582 | libQt5DesignerComponents.so, libQt5Designer.so, libQt5Gui.so,
|
---|
| 583 | libQt5Help.so, libQt5MultimediaQuick_p.so, libQt5Multimedia.so,
|
---|
| 584 | libQt5MultimediaWidgets.so, libQt5Network.so, libQt5Nfc.so,
|
---|
| 585 | libQt5OpenGLExtensions.a, libQt5OpenGL.so, libQt5PlatformSupport.a,
|
---|
| 586 | libQt5Positioning.so, libQt5PrintSupport.so, libQt5QmlDevTools.a,
|
---|
| 587 | libQt5Qml.so, libQt5QuickParticles.so, libQt5QuickWidgets.so,
|
---|
| 588 | libQt5Quick.so, libQt5QuickTest.so, libQt5Script.so,
|
---|
| 589 | libQt5ScriptTools.so, libQt5Sensors.so, libQt5SerialPort.so,
|
---|
| 590 | libQt5Sql.so, libQt5Svg.so, libQt5Test.so, libQt5UiTools.a,
|
---|
| 591 | libQt5WebKit.so, libQt5WebKitWidgets.so, libQt5WebSockets.so,
|
---|
| 592 | libQt5Widgets.so, libQt5X11Extras.so, libQt5XmlPatterns.so,
|
---|
| 593 | libQt5Xml.so, and several plugins under /opt/qt5/{imports,plugins,qml}
|
---|
[104b5bf] | 594 | </seg>
|
---|
| 595 | <seg>
|
---|
[5c7d5b25] | 596 | $QT5PREFIX/include/qt5,
|
---|
| 597 | $QT5PREFIX/lib/qt5,
|
---|
| 598 | $QT5PREFIX/share/doc/qt5, and
|
---|
| 599 | $QT5PREFIX/share/qt5
|
---|
[104b5bf] | 600 | </seg>
|
---|
| 601 | </seglistitem>
|
---|
| 602 | </segmentedlist>
|
---|
| 603 |
|
---|
| 604 | <variablelist>
|
---|
| 605 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 606 | <?dbfo list-presentation="list"?>
|
---|
| 607 | <?dbhtml list-presentation="table"?>
|
---|
| 608 |
|
---|
| 609 | <varlistentry id="assistant-qt5">
|
---|
[ec7940be] | 610 | <term><command>assistant</command></term>
|
---|
[104b5bf] | 611 | <listitem>
|
---|
| 612 | <para>
|
---|
| 613 | is a tool for presenting on-line documentation.
|
---|
| 614 | </para>
|
---|
| 615 | <indexterm zone="qt5 assistant-qt5">
|
---|
[ec7940be] | 616 | <primary sortas="b-assistant-qt5">assistant</primary>
|
---|
[104b5bf] | 617 | </indexterm>
|
---|
| 618 | </listitem>
|
---|
| 619 | </varlistentry>
|
---|
| 620 |
|
---|
| 621 | <varlistentry id="designer-qt5">
|
---|
[ec7940be] | 622 | <term><command>designer</command></term>
|
---|
[104b5bf] | 623 | <listitem>
|
---|
| 624 | <para>
|
---|
| 625 | is a full-fledged GUI builder. It includes
|
---|
| 626 | powerful features such as preview mode, automatic widget
|
---|
| 627 | layout, support for custom widgets, and an advanced
|
---|
| 628 | property editor.
|
---|
| 629 | </para>
|
---|
| 630 | <indexterm zone="qt5 designer-qt5">
|
---|
[ec7940be] | 631 | <primary sortas="b-designer-qt5">designer</primary>
|
---|
[104b5bf] | 632 | </indexterm>
|
---|
| 633 | </listitem>
|
---|
| 634 | </varlistentry>
|
---|
| 635 |
|
---|
| 636 | <varlistentry id="linguist-qt5">
|
---|
[ec7940be] | 637 | <term><command>linguist</command></term>
|
---|
[104b5bf] | 638 | <listitem>
|
---|
| 639 | <para>
|
---|
| 640 | provides support for translating applications into
|
---|
| 641 | local languages.
|
---|
| 642 | </para>
|
---|
| 643 | <indexterm zone="qt5 linguist-qt5">
|
---|
[ec7940be] | 644 | <primary sortas="b-linguist-qt5">linguist</primary>
|
---|
[104b5bf] | 645 | </indexterm>
|
---|
| 646 | </listitem>
|
---|
| 647 | </varlistentry>
|
---|
| 648 |
|
---|
| 649 | <varlistentry id="lrelease-qt5">
|
---|
[ec7940be] | 650 | <term><command>lrelease</command></term>
|
---|
[104b5bf] | 651 | <listitem>
|
---|
| 652 | <para>
|
---|
| 653 | is a simple command line tool. It reads a Qt project
|
---|
| 654 | file and produces message files used by the application.
|
---|
| 655 | </para>
|
---|
| 656 | <indexterm zone="qt5 lrelease-qt5">
|
---|
[ec7940be] | 657 | <primary sortas="b-lrelease-qt5">lrelease</primary>
|
---|
[104b5bf] | 658 | </indexterm>
|
---|
| 659 | </listitem>
|
---|
| 660 | </varlistentry>
|
---|
| 661 |
|
---|
| 662 | <varlistentry id="lupdate-qt5">
|
---|
[ec7940be] | 663 | <term><command>lupdate</command></term>
|
---|
[104b5bf] | 664 | <listitem>
|
---|
| 665 | <para>
|
---|
| 666 | reads a Qt project file, finds the translatable
|
---|
| 667 | strings in the specified source, header and Qt Designer
|
---|
| 668 | interface files, and produces or updates the translation
|
---|
| 669 | files listed in the project file.
|
---|
| 670 | </para>
|
---|
| 671 | <indexterm zone="qt5 lupdate-qt5">
|
---|
[ec7940be] | 672 | <primary sortas="b-lupdate-qt5">lupdate</primary>
|
---|
[104b5bf] | 673 | </indexterm>
|
---|
| 674 | </listitem>
|
---|
| 675 | </varlistentry>
|
---|
| 676 |
|
---|
| 677 | <varlistentry id="moc-qt5">
|
---|
[ec7940be] | 678 | <term><command>moc</command></term>
|
---|
[104b5bf] | 679 | <listitem>
|
---|
| 680 | <para>
|
---|
| 681 | generates Qt meta object support code.
|
---|
| 682 | </para>
|
---|
| 683 | <indexterm zone="qt5 moc-qt5">
|
---|
[ec7940be] | 684 | <primary sortas="b-moc-qt5">moc</primary>
|
---|
[104b5bf] | 685 | </indexterm>
|
---|
| 686 | </listitem>
|
---|
| 687 | </varlistentry>
|
---|
| 688 |
|
---|
| 689 | <varlistentry id="pixeltool-qt5">
|
---|
[ec7940be] | 690 | <term><command>pixeltool</command></term>
|
---|
[104b5bf] | 691 | <listitem>
|
---|
| 692 | <para>
|
---|
| 693 | is a desktop magnifier and as you move your mouse around
|
---|
| 694 | the screen it will show the magnified contents in its window.
|
---|
| 695 | </para>
|
---|
| 696 | <indexterm zone="qt5 pixeltool-qt5">
|
---|
[ec7940be] | 697 | <primary sortas="b-pixeltool-qt5">pixeltool</primary>
|
---|
[104b5bf] | 698 | </indexterm>
|
---|
| 699 | </listitem>
|
---|
| 700 | </varlistentry>
|
---|
| 701 |
|
---|
| 702 | <varlistentry id="qmake-qt5">
|
---|
[ec7940be] | 703 | <term><command>qmake</command></term>
|
---|
[104b5bf] | 704 | <listitem>
|
---|
| 705 | <para>
|
---|
| 706 | uses information stored in project files to
|
---|
| 707 | determine what should go in the makefiles it
|
---|
| 708 | generates.
|
---|
| 709 | </para>
|
---|
| 710 | <indexterm zone="qt5 qmake-qt5">
|
---|
[ec7940be] | 711 | <primary sortas="b-qmake-qt5">qmake</primary>
|
---|
[104b5bf] | 712 | </indexterm>
|
---|
| 713 | </listitem>
|
---|
| 714 | </varlistentry>
|
---|
| 715 |
|
---|
| 716 | <varlistentry id="rcc-qt5">
|
---|
[ec7940be] | 717 | <term><command>rcc</command></term>
|
---|
[104b5bf] | 718 | <listitem>
|
---|
| 719 | <para>
|
---|
| 720 | is a resource compiler used in conjunction with designer.
|
---|
| 721 | </para>
|
---|
| 722 | <indexterm zone="qt5 rcc-qt5">
|
---|
[ec7940be] | 723 | <primary sortas="b-rcc-qt5">rcc</primary>
|
---|
[104b5bf] | 724 | </indexterm>
|
---|
| 725 | </listitem>
|
---|
| 726 | </varlistentry>
|
---|
| 727 |
|
---|
| 728 | <varlistentry id="uic-qt5">
|
---|
[ec7940be] | 729 | <term><command>uic</command></term>
|
---|
[104b5bf] | 730 | <listitem>
|
---|
| 731 | <para>
|
---|
| 732 | is a Qt user interface compiler.
|
---|
| 733 | </para>
|
---|
| 734 | <indexterm zone="qt5 uic-qt5">
|
---|
[ec7940be] | 735 | <primary sortas="b-uic-qt5">uic</primary>
|
---|
[104b5bf] | 736 | </indexterm>
|
---|
| 737 | </listitem>
|
---|
| 738 | </varlistentry>
|
---|
| 739 |
|
---|
| 740 | </variablelist>
|
---|
| 741 |
|
---|
| 742 | </sect2>
|
---|
| 743 |
|
---|
| 744 | </sect1>
|
---|