[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 |
|
---|
[0173357f] | 7 | <!ENTITY qt5-major "5.2">
|
---|
[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 " ">
|
---|
[0173357f] | 12 | <!ENTITY qt5-md5sum "8f60b47ca9461831d940f579ee90517e">
|
---|
| 13 | <!ENTITY qt5-size "166 MB">
|
---|
| 14 | <!ENTITY qt5-buildsize "2.6 GB (160 MB installed)">
|
---|
| 15 | <!ENTITY qt5-time "60 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
|
---|
| 41 | and consoles for servers. One of the major users of
|
---|
| 42 | <application>Qt5</application> is <application>KDE Frameworks 5</application>.
|
---|
[104b5bf] | 43 | </para>
|
---|
| 44 |
|
---|
[fb28b3b] | 45 | &lfs74_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">
|
---|
| 85 | <xref linkend="alsa-lib"/>,
|
---|
| 86 | <xref linkend="mesalib"/>,
|
---|
| 87 | <xref linkend="xcb-util-image"/>,
|
---|
| 88 | <xref linkend="xcb-util-keysyms"/>,
|
---|
[74d76938] | 89 | <xref linkend="xcb-util-renderutil"/>, and
|
---|
[104b5bf] | 90 | <xref linkend="xcb-util-wm"/>
|
---|
| 91 | </para>
|
---|
| 92 |
|
---|
| 93 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 94 | <para role="recommended">
|
---|
| 95 | <xref linkend="cacerts"/>,
|
---|
| 96 | <xref linkend="cups"/>,
|
---|
| 97 | <xref linkend="dbus"/>,
|
---|
| 98 | <xref linkend="glib2"/>,
|
---|
| 99 | <xref linkend="gst-plugins-base"/>,
|
---|
[1d86421] | 100 | <xref linkend="harfbuzz"/>,
|
---|
[104b5bf] | 101 | <xref linkend="icu"/>,
|
---|
| 102 | <xref linkend="libjpeg"/>,
|
---|
[834937d] | 103 | <xref linkend="libmng"/>,
|
---|
[104b5bf] | 104 | <xref linkend="libpng"/>,
|
---|
| 105 | <xref linkend="libtiff"/>,
|
---|
| 106 | <xref linkend="openssl"/>,
|
---|
[74d76938] | 107 | <xref linkend="pcre"/>, and
|
---|
[104b5bf] | 108 | <xref linkend="sqlite"/>
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 112 | <para role="optional">
|
---|
| 113 | <xref linkend="gst10-plugins-base"/> (QtWebKit HTML5 Video Support),
|
---|
| 114 | <xref linkend="gtk2"/> (GTK+ Theme Support),
|
---|
| 115 | <ulink url="http://xkbcommon.org/">libxkbcommon</ulink>,
|
---|
[419a60e] | 116 | <xref linkend="mariadb"/> or <xref linkend="mysql"/>,
|
---|
[104b5bf] | 117 | <xref linkend="postgresql"/>,
|
---|
[0173357f] | 118 | <xref linkend="pulseaudio"/>, and
|
---|
| 119 | <xref linkend="unixodbc"/>
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
| 122 | <bridgehead renderas="sect4">Required (Runtime)</bridgehead>
|
---|
| 123 | <para role="required">
|
---|
| 124 | <xref linkend="qtchooser"/> (if installing both
|
---|
| 125 | <application>Qt4</application> and <application>Qt5</application>
|
---|
| 126 | and installing in <filename class="directory">/usr</filename>)
|
---|
[104b5bf] | 127 | </para>
|
---|
| 128 |
|
---|
| 129 | <para condition="html" role="usernotes">User Notes:
|
---|
| 130 | <ulink url="&blfs-wiki;/qt5"/>
|
---|
| 131 | </para>
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|
| 134 | <sect2 role="installation">
|
---|
[0173357f] | 135 | <title>Installation of Qt5</title>
|
---|
[104b5bf] | 136 |
|
---|
[fb28b3b] | 137 | <para>
|
---|
| 138 | There are several ways to install a complicated package such as
|
---|
[0173357f] | 139 | <application>Qt5</application>. The files are not completely position
|
---|
[fb28b3b] | 140 | independent. Installation procedures execute the program
|
---|
| 141 | <command>pkg-config</command> to determine the location of package
|
---|
| 142 | executables, libraries, headers, and other files. For
|
---|
[0173357f] | 143 | <application>Qt5</application>, <command>pkg-config</command> will look
|
---|
| 144 | for the appropriate <filename>lib/pkgconfig/Qt5*.pc</filename> files
|
---|
[fb28b3b] | 145 | which must be modified if relocating the package. These files are set up
|
---|
| 146 | correctly by the build process.
|
---|
| 147 | </para>
|
---|
| 148 |
|
---|
| 149 | <para>
|
---|
| 150 | The default installation places the files in <filename
|
---|
[0173357f] | 151 | class="directory">/usr/local/qt</filename>. Many
|
---|
[fb28b3b] | 152 | distributions place the files in the system's <filename
|
---|
[0173357f] | 153 | class="directory">/usr</filename> hierarchy. The package can
|
---|
| 154 | also be installed in an arbitrary directory.
|
---|
[fb28b3b] | 155 | </para>
|
---|
| 156 |
|
---|
| 157 | <para>
|
---|
| 158 | The advantage of installing in <filename
|
---|
[0173357f] | 159 | class="directory">/usr</filename> is that no updates to the
|
---|
[fb28b3b] | 160 | <filename>/etc/ld.so.conf</filename> or
|
---|
| 161 | <filename>/etc/man_db.conf</filename> files are required. The package
|
---|
| 162 | files are distributed within several subdirectories of the <filename
|
---|
[0173357f] | 163 | class="directory">/usr</filename> hierarchy. This is the method that
|
---|
| 164 | most distributions use.
|
---|
[fb28b3b] | 165 | </para>
|
---|
| 166 |
|
---|
| 167 | <para>
|
---|
| 168 | The disadvantage of installing in <filename
|
---|
[0173357f] | 169 | class="directory">/usr</filename> is that the executable filenames
|
---|
[fb28b3b] | 170 | for <application>Qt4</application> and <application>Qt5</application>
|
---|
| 171 | conflict if both packages are installed in the
|
---|
[0173357f] | 172 | same directory. The instructions below give a workaround for
|
---|
| 173 | this problem using the helper programs from <xref linkend="qtchooser"/>.
|
---|
| 174 | <!-- renaming is not required because of this, only using a different
|
---|
| 175 | bindir is -->
|
---|
[fb28b3b] | 176 | </para>
|
---|
| 177 |
|
---|
| 178 | <para>
|
---|
[0173357f] | 179 | The advantage of installing <application>Qt5</application> in a custom
|
---|
[fb28b3b] | 180 | directory such as <filename
|
---|
[0173357f] | 181 | class="directory">/opt/qt-&qt5-version;</filename> is that it keeps all
|
---|
[fb28b3b] | 182 | the package files consolidated in a dedicated directory hierarchy. By
|
---|
| 183 | using this method, an update can be made without overwriting a previous
|
---|
| 184 | installation and users can easily revert to a previous version by
|
---|
[0173357f] | 185 | changing one symbolic link or merely changing the <envar>PATH</envar>
|
---|
| 186 | variable. It also allows a developer to maintain multiple versions of
|
---|
[fb28b3b] | 187 | <application>Qt4</application> or <application>Qt5</application>
|
---|
| 188 | for testing.
|
---|
| 189 | </para>
|
---|
| 190 |
|
---|
| 191 | <caution>
|
---|
[104b5bf] | 192 | <para>
|
---|
| 193 | If you did not install some of the recommended dependencies, examine
|
---|
| 194 | <command>./configure --help</command> output to check how to disable
|
---|
| 195 | them or use internal versions bundled in the source tarball.
|
---|
| 196 | </para>
|
---|
[fb28b3b] | 197 | </caution>
|
---|
| 198 |
|
---|
| 199 | <warning>
|
---|
| 200 | <para>
|
---|
| 201 | If <application>Qt5</application> is being reinstalled into the
|
---|
| 202 | same directory as an existing instance, run the
|
---|
| 203 | following commands from a console or non-Qt5 based window manager.
|
---|
| 204 | It overwrites <application>Qt5</application> libraries that should
|
---|
| 205 | not be in use during the install process.
|
---|
| 206 | </para>
|
---|
[104b5bf] | 207 | </warning>
|
---|
[fb28b3b] | 208 |
|
---|
| 209 | <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>
|
---|
[104b5bf] | 210 |
|
---|
| 211 | <para>
|
---|
[fb28b3b] | 212 | Install <application>Qt5</application> by running the
|
---|
[104b5bf] | 213 | following commands:
|
---|
| 214 | </para>
|
---|
| 215 |
|
---|
[0173357f] | 216 | <note>
|
---|
| 217 | <para>
|
---|
| 218 | If <emphasis>not</emphasis> also installing <application>Qt4</application>
|
---|
| 219 | into the /usr directory, change the entry for -bindir below to /usr/bin.
|
---|
| 220 | </para>
|
---|
| 221 | </note>
|
---|
[6c7866b4] | 222 |
|
---|
[0173357f] | 223 | <screen><userinput>sed -e "s:#if MNG:#if defined(MNG_VERSION_MAJOR)\n&:" \
|
---|
| 224 | -e "s:#endif:&\n#endif:" \
|
---|
| 225 | -i qtimageformats/config.tests/libmng/libmng.cpp
|
---|
[74d76938] | 226 |
|
---|
[fb28b3b] | 227 | ./configure -prefix /usr \
|
---|
| 228 | -sysconfdir /etc/xdg \
|
---|
| 229 | -bindir /usr/lib/qt5/bin \
|
---|
| 230 | -headerdir /usr/include/qt5 \
|
---|
| 231 | -archdatadir /usr/lib/qt5 \
|
---|
| 232 | -datadir /usr/share/qt5 \
|
---|
| 233 | -docdir /usr/share/doc/qt5 \
|
---|
[104b5bf] | 234 | -translationdir /usr/share/qt5/translations \
|
---|
[fb28b3b] | 235 | -examplesdir /usr/share/doc/qt5/examples \
|
---|
[74d76938] | 236 | -confirm-license \
|
---|
| 237 | -opensource \
|
---|
| 238 | -dbus-linked \
|
---|
| 239 | -openssl-linked \
|
---|
[1d86421] | 240 | -system-harfbuzz \
|
---|
[74d76938] | 241 | -system-sqlite \
|
---|
| 242 | -no-nis \
|
---|
| 243 | -nomake examples \
|
---|
| 244 | -opengl es2 \
|
---|
| 245 | -optimized-qmake &&
|
---|
[104b5bf] | 246 | make</userinput></screen>
|
---|
| 247 |
|
---|
| 248 | <para>
|
---|
[acacfb64] | 249 | Remove references to the build directory from the
|
---|
[a6c6923] | 250 | <filename class="extension">.pc</filename> files by running
|
---|
| 251 | the following command:
|
---|
[104b5bf] | 252 | </para>
|
---|
| 253 |
|
---|
| 254 | <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
|
---|
| 255 |
|
---|
| 256 | <para>
|
---|
| 257 | This package does not come with a test suite.
|
---|
| 258 | </para>
|
---|
| 259 |
|
---|
| 260 | <para>
|
---|
| 261 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 262 | </para>
|
---|
| 263 |
|
---|
| 264 | <screen role="root"><userinput>make install &&
|
---|
| 265 | install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
---|
| 266 | /usr/share/pixmaps/assistant-qt5.png &&
|
---|
| 267 | install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
---|
| 268 | /usr/share/pixmaps/designer-qt5.png &&
|
---|
| 269 | install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
| 270 | /usr/share/pixmaps/linguist-qt5.png &&
|
---|
| 271 | install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
| 272 | /usr/share/pixmaps/qdbusviewer-qt5.png</userinput></screen>
|
---|
| 273 |
|
---|
| 274 | <para>
|
---|
| 275 | Remove references to the build directory from installed files by
|
---|
| 276 | running the following commands as the
|
---|
| 277 | <systemitem class="username">root</systemitem> user:
|
---|
| 278 | </para>
|
---|
| 279 |
|
---|
| 280 | <screen role="root"><userinput>sed -i -e "s:$PWD/qtbase:/usr/lib/qt5:g" \
|
---|
[0173357f] | 281 | /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &&
|
---|
[acacfb64] | 282 | find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -e \
|
---|
[104b5bf] | 283 | '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;</userinput></screen>
|
---|
| 284 |
|
---|
| 285 | <para>
|
---|
[0173357f] | 286 | If you didn't modify the -bindir switch above, symlink the
|
---|
| 287 | <application>Qt5</application> executables into
|
---|
[104b5bf] | 288 | <filename class="directory">/usr/bin</filename> by running the
|
---|
| 289 | following commands as the
|
---|
| 290 | <systemitem class="username">root</systemitem> user:
|
---|
| 291 | </para>
|
---|
| 292 |
|
---|
| 293 | <screen role="root"><userinput>for file in /usr/lib/qt5/bin/*
|
---|
| 294 | do
|
---|
| 295 | ln -sfv ../lib/qt5/bin/$(basename $file) /usr/bin/$(basename $file)-qt5
|
---|
| 296 | done</userinput></screen>
|
---|
| 297 |
|
---|
[fb28b3b] | 298 | <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt5-version;</bridgehead>
|
---|
[74d76938] | 299 |
|
---|
[99b9616] | 300 | <para>
|
---|
[0173357f] | 301 | This section provides an alternate way to install <application>Qt5</application>
|
---|
| 302 | by installing almost all of the files in the <filename
|
---|
| 303 | class="directory">/opt</filename> directory. This allows management of all
|
---|
| 304 | <application>Qt5</application> related files in one unit. For instance, a new
|
---|
| 305 | version of <application>Qt5</application> can be installed without over-writing
|
---|
| 306 | the existing installation and entire <application>Qt5</application> instances can
|
---|
| 307 | be easily removed. However, it has the disadvantage of needing some extra
|
---|
| 308 | configuration and you need to switch manually between <application>Qt4</application>
|
---|
| 309 | and <application>Qt5</application> executables when needed.
|
---|
[99b9616] | 310 | </para>
|
---|
[74d76938] | 311 |
|
---|
[0173357f] | 312 | <screen><userinput>sed -e "s:#if MNG:#if defined(MNG_VERSION_MAJOR)\n&:" \
|
---|
| 313 | -e "s:#endif:&\n#endif:" \
|
---|
| 314 | -i qtimageformats/config.tests/libmng/libmng.cpp
|
---|
[74d76938] | 315 |
|
---|
| 316 | QT5DIR=/opt/qt-&qt5-version;
|
---|
| 317 |
|
---|
| 318 | ./configure -prefix $QT5DIR \
|
---|
| 319 | -sysconfdir /etc/xdg \
|
---|
| 320 | -confirm-license \
|
---|
| 321 | -opensource \
|
---|
| 322 | -dbus-linked \
|
---|
| 323 | -openssl-linked \
|
---|
[1d86421] | 324 | -system-harfbuzz \
|
---|
[74d76938] | 325 | -system-sqlite \
|
---|
| 326 | -no-nis \
|
---|
| 327 | -nomake examples \
|
---|
| 328 | -opengl es2 \
|
---|
| 329 | -optimized-qmake &&
|
---|
| 330 | make</userinput></screen>
|
---|
| 331 |
|
---|
| 332 | <para>
|
---|
| 333 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 334 | </para>
|
---|
| 335 |
|
---|
| 336 | <screen role="root"><userinput>make install &&
|
---|
| 337 |
|
---|
| 338 | install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
---|
| 339 | /usr/share/pixmaps/assistant-qt5.png &&
|
---|
| 340 | install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
---|
| 341 | /usr/share/pixmaps/designer-qt5.png &&
|
---|
| 342 | install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
| 343 | /usr/share/pixmaps/linguist-qt5.png &&
|
---|
| 344 | install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
| 345 | /usr/share/pixmaps/qdbusviewer-qt5.png</userinput></screen>
|
---|
| 346 |
|
---|
| 347 | <para>
|
---|
| 348 | Remove references to the build directory from installed files by
|
---|
| 349 | running the following commands as the
|
---|
| 350 | <systemitem class="username">root</systemitem> user:
|
---|
| 351 | </para>
|
---|
| 352 |
|
---|
[0173357f] | 353 | <screen role="root"><userinput>find $QT5DIR -name qt_lib_bootstrap_private.pri \
|
---|
[74d76938] | 354 | -exec sed -i -e "s:$PWD/qtbase:/$QT5DIR/lib/:g" {} \; &&
|
---|
| 355 |
|
---|
| 356 | find $QT5DIR -name \*.prl \
|
---|
| 357 | -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
---|
| 358 |
|
---|
[0173357f] | 359 | <!-- This is useful for packages looking explicitly for Qt apps with -qt5 suffix,
|
---|
| 360 | and is *required* for the desktop files below to work correctly. -->
|
---|
| 361 |
|
---|
[74d76938] | 362 | <para>
|
---|
[0173357f] | 363 | Symlink the <application>Qt5</application> executables into
|
---|
[74d76938] | 364 | <filename class="directory">/usr/bin</filename> by running the
|
---|
| 365 | following commands as the
|
---|
| 366 | <systemitem class="username">root</systemitem> user:
|
---|
| 367 | </para>
|
---|
| 368 |
|
---|
[99b9616] | 369 | <screen role="root"><userinput>ln -svf $QT5DIR /opt/qt5 &&
|
---|
[74d76938] | 370 |
|
---|
| 371 | for file in /opt/qt5/bin/*; do
|
---|
| 372 | ln -sfv $file /usr/bin/$(basename $file)-qt5
|
---|
| 373 | done</userinput></screen>
|
---|
| 374 |
|
---|
| 375 | </sect2>
|
---|
| 376 |
|
---|
[104b5bf] | 377 | <sect2 role="commands">
|
---|
| 378 | <title>Command Explanations</title>
|
---|
| 379 |
|
---|
[6c7866b4] | 380 | <para>
|
---|
[0173357f] | 381 | <command>sed -e "..." -e "..." -i ...</command>: This
|
---|
| 382 | command fixes detection of
|
---|
[6c7866b4] | 383 | <application>libmng</application> 2.0.
|
---|
| 384 | </para>
|
---|
| 385 |
|
---|
[104b5bf] | 386 | <para>
|
---|
| 387 | <parameter>-confirm-license</parameter>: Accept license
|
---|
| 388 | without prompting user during configuration.
|
---|
| 389 | </para>
|
---|
| 390 |
|
---|
| 391 | <para>
|
---|
| 392 | <parameter>-opensource</parameter>: Install the opensource
|
---|
| 393 | version of <application>Qt</application>.
|
---|
| 394 | </para>
|
---|
| 395 |
|
---|
[f3a6abc9] | 396 | <para>
|
---|
| 397 | <parameter>-release</parameter>: This switch disables
|
---|
| 398 | building with debugging symbols.
|
---|
| 399 | </para>
|
---|
[104b5bf] | 400 |
|
---|
| 401 | <para>
|
---|
[c32e0380] | 402 | <parameter>-nomake examples</parameter>: This switch
|
---|
| 403 | disables building of the example programs included
|
---|
| 404 | in the source tarball. Remove it if you want to build
|
---|
| 405 | them.
|
---|
[104b5bf] | 406 | </para>
|
---|
| 407 |
|
---|
[1d86421] | 408 | <para>
|
---|
| 409 | <parameter>-system-harfbuzz</parameter>: This switch enables use
|
---|
| 410 | of the system version of <application>Harfbuzz</application>
|
---|
| 411 | which fixes some font rendering issues in
|
---|
| 412 | <application>Qt5</application> applications.
|
---|
| 413 | </para>
|
---|
| 414 |
|
---|
[104b5bf] | 415 | <para>
|
---|
| 416 | <parameter>-system-sqlite</parameter>: This switch enables use
|
---|
[f3a6abc9] | 417 | of the system version of <application>SQLite</application>.
|
---|
[104b5bf] | 418 | </para>
|
---|
| 419 |
|
---|
| 420 | <para>
|
---|
| 421 | <parameter>-no-nis</parameter>: This switch disables support
|
---|
| 422 | for Network Information Service (NIS) which has been
|
---|
[c32e0380] | 423 | removed from recent versions of <application>Glibc</application>.
|
---|
[104b5bf] | 424 | </para>
|
---|
| 425 |
|
---|
| 426 | <para>
|
---|
| 427 | <parameter>-dbus-linkend -openssl-linkend</parameter>: These
|
---|
| 428 | switches enable explicit linking of the
|
---|
| 429 | <application>D-Bus</application> and
|
---|
| 430 | <application>OpenSSL</application> libraries into
|
---|
[0173357f] | 431 | <application>Qt5</application> libraries instead of
|
---|
[104b5bf] | 432 | <command>dlopen()</command>-ing them.
|
---|
| 433 | </para>
|
---|
| 434 |
|
---|
[f3a6abc9] | 435 | <para>
|
---|
| 436 | <parameter>-opengl es2</parameter>: This switch enables OpenGL ES2
|
---|
[0173357f] | 437 | support in <application>Qt5</application>.
|
---|
[f3a6abc9] | 438 | </para>
|
---|
| 439 |
|
---|
| 440 | <para>
|
---|
| 441 | <parameter>-optimized-qmake</parameter>: This switch enables
|
---|
| 442 | building of the optimized <command>qmake</command> program.
|
---|
[104b5bf] | 443 | </para>
|
---|
| 444 |
|
---|
| 445 | </sect2>
|
---|
| 446 |
|
---|
| 447 | <sect2 role="configuration">
|
---|
[0173357f] | 448 | <title>Configuring Qt5</title>
|
---|
[104b5bf] | 449 |
|
---|
| 450 | <sect3 id="qt5-config">
|
---|
| 451 | <title>Configuration Information</title>
|
---|
| 452 |
|
---|
| 453 | <para>
|
---|
[0173357f] | 454 | Create the menu entries for installed applications by running the
|
---|
| 455 | following commands <systemitem class="username">root</systemitem>
|
---|
| 456 | user:
|
---|
[104b5bf] | 457 | </para>
|
---|
| 458 |
|
---|
| 459 | <screen role="root"><userinput>install -dm755 /usr/share/applications
|
---|
| 460 | cat > /usr/share/applications/assistant-qt5.desktop << "EOF"
|
---|
| 461 | <literal>[Desktop Entry]
|
---|
| 462 | Name=Qt5 Assistant
|
---|
| 463 | Comment=Shows Qt5 documentation and examples
|
---|
| 464 | Exec=assistant-qt5
|
---|
| 465 | Icon=assistant-qt5
|
---|
| 466 | Terminal=false
|
---|
| 467 | Encoding=UTF-8
|
---|
| 468 | Type=Application
|
---|
| 469 | Categories=Qt;Development;Documentation;</literal>
|
---|
| 470 | EOF
|
---|
| 471 | cat > /usr/share/applications/designer-qt5.desktop << "EOF"
|
---|
| 472 | <literal>[Desktop Entry]
|
---|
| 473 | Name=Qt5 Designer
|
---|
| 474 | GenericName=Interface Designer
|
---|
| 475 | Comment=Design GUIs for Qt5 applications
|
---|
| 476 | Exec=designer-qt5
|
---|
| 477 | Icon=designer-qt5
|
---|
| 478 | MimeType=application/x-designer;
|
---|
| 479 | Terminal=false
|
---|
| 480 | Encoding=UTF-8
|
---|
| 481 | Type=Application
|
---|
| 482 | Categories=Qt;Development;</literal>
|
---|
| 483 | EOF
|
---|
| 484 | cat > /usr/share/applications/linguist-qt5.desktop << "EOF"
|
---|
| 485 | <literal>[Desktop Entry]
|
---|
| 486 | Name=Qt5 Linguist
|
---|
| 487 | Comment=Add translations to Qt5 applications
|
---|
| 488 | Exec=linguist-qt5
|
---|
| 489 | Icon=linguist-qt5
|
---|
| 490 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
| 491 | Terminal=false
|
---|
| 492 | Encoding=UTF-8
|
---|
| 493 | Type=Application
|
---|
| 494 | Categories=Qt;Development;</literal>
|
---|
| 495 | EOF
|
---|
| 496 | cat > /usr/share/applications/qdbusviewer-qt5.desktop << "EOF"
|
---|
| 497 | <literal>[Desktop Entry]
|
---|
| 498 | Name=Qt5 QDbusViewer
|
---|
| 499 | GenericName=D-Bus Debugger
|
---|
| 500 | Comment=Debug D-Bus applications
|
---|
| 501 | Exec=qdbusviewer-qt5
|
---|
| 502 | Icon=qdbusviewer-qt5
|
---|
| 503 | Terminal=false
|
---|
| 504 | Encoding=UTF-8
|
---|
| 505 | Type=Application
|
---|
| 506 | Categories=Qt;Development;Debugger;</literal>
|
---|
| 507 | EOF</userinput></screen>
|
---|
| 508 |
|
---|
[0173357f] | 509 | <!-- No package uses this at the moment.
|
---|
| 510 |
|
---|
| 511 | <para>
|
---|
| 512 | If you installed <application>Qt5</application> in
|
---|
| 513 | <filename class="directory">/usr</filename>, create an
|
---|
| 514 | environment variable needed by certain packages.
|
---|
| 515 | As the <systemitem class="username">root</systemitem> user:
|
---|
| 516 | </para>
|
---|
| 517 |
|
---|
| 518 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
| 519 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
| 520 |
|
---|
| 521 | QTDIR=/usr
|
---|
| 522 |
|
---|
| 523 | export QT5DIR
|
---|
| 524 |
|
---|
| 525 | # End /etc/profile.d/qt5.sh</literal>
|
---|
| 526 | EOF</userinput></screen>
|
---|
| 527 |
|
---|
| 528 | -->
|
---|
| 529 |
|
---|
| 530 | <note>
|
---|
| 531 | <para>
|
---|
| 532 | If you have installed <application>Qt5</application> in
|
---|
| 533 | <filename class="directory">/usr</filename>, you can skip
|
---|
| 534 | rest of this section.
|
---|
| 535 | </para>
|
---|
| 536 | </note>
|
---|
| 537 |
|
---|
| 538 | <para>
|
---|
| 539 | If you installed <application>Qt5</application> in a location other
|
---|
| 540 | than <filename class="directory">/usr</filename>, you need to update the
|
---|
| 541 | following configuration files so that <application>Qt5</application> is
|
---|
| 542 | correctly found by other packages and system processes.
|
---|
| 543 | </para>
|
---|
| 544 |
|
---|
| 545 | <para>
|
---|
| 546 | As the <systemitem class="username">root</systemitem> user, update
|
---|
| 547 | the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
---|
| 548 | run-time cache file:
|
---|
| 549 | </para>
|
---|
| 550 |
|
---|
| 551 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
| 552 | <literal># Begin Qt addition
|
---|
| 553 |
|
---|
| 554 | /opt/qt5/lib
|
---|
| 555 |
|
---|
| 556 | # End Qt addition</literal>
|
---|
| 557 | EOF
|
---|
| 558 |
|
---|
| 559 | ldconfig</userinput></screen>
|
---|
| 560 |
|
---|
| 561 | <indexterm zone="qt5 qt5-config">
|
---|
| 562 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 563 | </indexterm>
|
---|
| 564 |
|
---|
| 565 | <para>
|
---|
| 566 | As the <systemitem class="username">root</systemitem> user, create
|
---|
| 567 | the <filename>/etc/profile.d/qt5.sh</filename> file:
|
---|
| 568 | </para>
|
---|
| 569 |
|
---|
| 570 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
| 571 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
| 572 |
|
---|
| 573 | QT5DIR=/opt/qt5
|
---|
| 574 |
|
---|
| 575 | pathappend /opt/qt5/bin PATH
|
---|
| 576 | pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
|
---|
| 577 |
|
---|
| 578 | export QT5DIR
|
---|
| 579 |
|
---|
| 580 | # End /etc/profile.d/qt5.sh</literal>
|
---|
| 581 | EOF</userinput></screen>
|
---|
| 582 |
|
---|
| 583 | <note>
|
---|
| 584 | <para>
|
---|
| 585 | If you also installed <application>Qt4</application> and need to use
|
---|
| 586 | the <application>Qt5</application> version of an executable such as
|
---|
| 587 | <command>qmake</command> for building a program, make sure that
|
---|
| 588 | the <application>Qt5</application> bin directory is listed prior to
|
---|
| 589 | the <application>Qt5</application> bin directory in the
|
---|
| 590 | <envar>PATH</envar> variable.
|
---|
| 591 | </para>
|
---|
| 592 | </note>
|
---|
| 593 |
|
---|
[104b5bf] | 594 | </sect3>
|
---|
| 595 |
|
---|
| 596 | </sect2>
|
---|
| 597 |
|
---|
| 598 | <sect2 role="content">
|
---|
| 599 | <title>Contents</title>
|
---|
| 600 |
|
---|
| 601 | <segmentedlist>
|
---|
| 602 | <segtitle>Installed Programs</segtitle>
|
---|
| 603 | <segtitle>Installed Libraries</segtitle>
|
---|
| 604 | <segtitle>Installed Directories</segtitle>
|
---|
| 605 |
|
---|
| 606 | <seglistitem>
|
---|
| 607 | <seg>
|
---|
| 608 | assistant-qt5, designer-qt5, lconvert-qt5, linguist-qt5, lrelease-qt5,
|
---|
[0173357f] | 609 | lupdate-qt5, moc-qt5, pixeltool-qt5, qcollectiongenerator-qt5, qdbuscpp2xml-qt5,
|
---|
| 610 | qdbus-qt5, qdbusviewer-qt5, qdbusxml2cpp-qt5, qdoc-qt5, qhelpconverter-qt5,
|
---|
| 611 | qhelpgenerator-qt5, qmake-qt5, qml1plugindump-qt5, qmlbundle-qt5,
|
---|
| 612 | qmlimportscanner-qt5, qmlmin-qt5, qmlplugindump-qt5, qmlprofiler-qt5, qml-qt5,
|
---|
| 613 | qmlscene-qt5, qmltestrunner-qt5, qmlviewer-qt5, qtpaths-qt5, rcc-qt5,
|
---|
| 614 | syncqt.pl-qt5, uic-qt5, xmlpatterns-qt5, and xmlpatternsvalidator-qt5
|
---|
[104b5bf] | 615 | </seg>
|
---|
| 616 | <seg>
|
---|
[0173357f] | 617 | libqgsttools_p.so, libQt5Bluetooth.so, libQt5Bootstrap.a, libQt5CLucene.so,
|
---|
| 618 | libQt5Concurrent.so, libQt5Core.so, libQt5DBus.so, libQt5Declarative.so,
|
---|
| 619 | libQt5DesignerComponents.so, libQt5Designer.so, libQt5Gui.so, libQt5Help.so,
|
---|
| 620 | libQt5MultimediaQuick_p.so, libQt5Multimedia.so, libQt5MultimediaWidgets.so,
|
---|
| 621 | libQt5Network.so, libQt5Nfc.so, libQt5OpenGLExtensions.a, libQt5OpenGL.so,
|
---|
| 622 | libQt5PlatformSupport.a, libQt5Positioning.so, libQt5PrintSupport.so,
|
---|
| 623 | libQt5QmlDevTools.a, libQt5Qml.so, libQt5QuickParticles.so, libQt5Quick.so,
|
---|
| 624 | libQt5QuickTest.so, libQt5Script.so, libQt5ScriptTools.so, libQt5Sensors.so,
|
---|
| 625 | libQt5SerialPort.so, libQt5Sql.so, libQt5Svg.so, libQt5Test.so, libQt5UiTools.a,
|
---|
| 626 | libQt5WebKit.so, libQt5WebKitWidgets.so, libQt5Widgets.so, libQt5X11Extras.so,
|
---|
| 627 | libQt5XmlPatterns.so, and libQt5Xml.so
|
---|
[104b5bf] | 628 | </seg>
|
---|
| 629 | <seg>
|
---|
| 630 | /usr/include/qt5,
|
---|
| 631 | /usr/lib/qt5,
|
---|
[fb28b3b] | 632 | /usr/share/doc/qt5, and
|
---|
[104b5bf] | 633 | /usr/share/qt5
|
---|
| 634 | </seg>
|
---|
| 635 | </seglistitem>
|
---|
| 636 | </segmentedlist>
|
---|
| 637 |
|
---|
| 638 | <variablelist>
|
---|
| 639 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 640 | <?dbfo list-presentation="list"?>
|
---|
| 641 | <?dbhtml list-presentation="table"?>
|
---|
| 642 |
|
---|
| 643 | <varlistentry id="assistant-qt5">
|
---|
| 644 | <term><command>assistant-qt5</command></term>
|
---|
| 645 | <listitem>
|
---|
| 646 | <para>
|
---|
| 647 | is a tool for presenting on-line documentation.
|
---|
| 648 | </para>
|
---|
| 649 | <indexterm zone="qt5 assistant-qt5">
|
---|
| 650 | <primary sortas="b-assistant-qt5">assistant-qt5</primary>
|
---|
| 651 | </indexterm>
|
---|
| 652 | </listitem>
|
---|
| 653 | </varlistentry>
|
---|
| 654 |
|
---|
| 655 | <varlistentry id="designer-qt5">
|
---|
| 656 | <term><command>designer-qt5</command></term>
|
---|
| 657 | <listitem>
|
---|
| 658 | <para>
|
---|
| 659 | is a full-fledged GUI builder. It includes
|
---|
| 660 | powerful features such as preview mode, automatic widget
|
---|
| 661 | layout, support for custom widgets, and an advanced
|
---|
| 662 | property editor.
|
---|
| 663 | </para>
|
---|
| 664 | <indexterm zone="qt5 designer-qt5">
|
---|
| 665 | <primary sortas="b-designer-qt5">designer-qt5</primary>
|
---|
| 666 | </indexterm>
|
---|
| 667 | </listitem>
|
---|
| 668 | </varlistentry>
|
---|
| 669 |
|
---|
| 670 | <varlistentry id="linguist-qt5">
|
---|
| 671 | <term><command>linguist-qt5</command></term>
|
---|
| 672 | <listitem>
|
---|
| 673 | <para>
|
---|
| 674 | provides support for translating applications into
|
---|
| 675 | local languages.
|
---|
| 676 | </para>
|
---|
| 677 | <indexterm zone="qt5 linguist-qt5">
|
---|
| 678 | <primary sortas="b-linguist-qt5">linguist-qt5</primary>
|
---|
| 679 | </indexterm>
|
---|
| 680 | </listitem>
|
---|
| 681 | </varlistentry>
|
---|
| 682 |
|
---|
| 683 | <varlistentry id="lrelease-qt5">
|
---|
| 684 | <term><command>lrelease-qt5</command></term>
|
---|
| 685 | <listitem>
|
---|
| 686 | <para>
|
---|
| 687 | is a simple command line tool. It reads a Qt project
|
---|
| 688 | file and produces message files used by the application.
|
---|
| 689 | </para>
|
---|
| 690 | <indexterm zone="qt5 lrelease-qt5">
|
---|
| 691 | <primary sortas="b-lrelease-qt5">lrelease-qt5</primary>
|
---|
| 692 | </indexterm>
|
---|
| 693 | </listitem>
|
---|
| 694 | </varlistentry>
|
---|
| 695 |
|
---|
| 696 | <varlistentry id="lupdate-qt5">
|
---|
| 697 | <term><command>lupdate-qt5</command></term>
|
---|
| 698 | <listitem>
|
---|
| 699 | <para>
|
---|
| 700 | reads a Qt project file, finds the translatable
|
---|
| 701 | strings in the specified source, header and Qt Designer
|
---|
| 702 | interface files, and produces or updates the translation
|
---|
| 703 | files listed in the project file.
|
---|
| 704 | </para>
|
---|
| 705 | <indexterm zone="qt5 lupdate-qt5">
|
---|
| 706 | <primary sortas="b-lupdate-qt5">lupdate-qt5</primary>
|
---|
| 707 | </indexterm>
|
---|
| 708 | </listitem>
|
---|
| 709 | </varlistentry>
|
---|
| 710 |
|
---|
| 711 | <varlistentry id="moc-qt5">
|
---|
| 712 | <term><command>moc-qt5</command></term>
|
---|
| 713 | <listitem>
|
---|
| 714 | <para>
|
---|
| 715 | generates Qt meta object support code.
|
---|
| 716 | </para>
|
---|
| 717 | <indexterm zone="qt5 moc-qt5">
|
---|
| 718 | <primary sortas="b-moc-qt5">moc-qt5</primary>
|
---|
| 719 | </indexterm>
|
---|
| 720 | </listitem>
|
---|
| 721 | </varlistentry>
|
---|
| 722 |
|
---|
| 723 | <varlistentry id="pixeltool-qt5">
|
---|
| 724 | <term><command>pixeltool-qt5</command></term>
|
---|
| 725 | <listitem>
|
---|
| 726 | <para>
|
---|
| 727 | is a desktop magnifier and as you move your mouse around
|
---|
| 728 | the screen it will show the magnified contents in its window.
|
---|
| 729 | </para>
|
---|
| 730 | <indexterm zone="qt5 pixeltool-qt5">
|
---|
| 731 | <primary sortas="b-pixeltool-qt5">pixeltool-qt5</primary>
|
---|
| 732 | </indexterm>
|
---|
| 733 | </listitem>
|
---|
| 734 | </varlistentry>
|
---|
| 735 |
|
---|
| 736 | <varlistentry id="qmake-qt5">
|
---|
| 737 | <term><command>qmake-qt5</command></term>
|
---|
| 738 | <listitem>
|
---|
| 739 | <para>
|
---|
| 740 | uses information stored in project files to
|
---|
| 741 | determine what should go in the makefiles it
|
---|
| 742 | generates.
|
---|
| 743 | </para>
|
---|
| 744 | <indexterm zone="qt5 qmake-qt5">
|
---|
| 745 | <primary sortas="b-qmake-qt5">qmake-qt5</primary>
|
---|
| 746 | </indexterm>
|
---|
| 747 | </listitem>
|
---|
| 748 | </varlistentry>
|
---|
| 749 |
|
---|
| 750 | <varlistentry id="rcc-qt5">
|
---|
| 751 | <term><command>rcc-qt5</command></term>
|
---|
| 752 | <listitem>
|
---|
| 753 | <para>
|
---|
| 754 | is a resource compiler used in conjunction with designer.
|
---|
| 755 | </para>
|
---|
| 756 | <indexterm zone="qt5 rcc-qt5">
|
---|
| 757 | <primary sortas="b-rcc-qt5">rcc-qt5</primary>
|
---|
| 758 | </indexterm>
|
---|
| 759 | </listitem>
|
---|
| 760 | </varlistentry>
|
---|
| 761 |
|
---|
| 762 | <varlistentry id="uic-qt5">
|
---|
| 763 | <term><command>uic-qt5</command></term>
|
---|
| 764 | <listitem>
|
---|
| 765 | <para>
|
---|
| 766 | is a Qt user interface compiler.
|
---|
| 767 | </para>
|
---|
| 768 | <indexterm zone="qt5 uic-qt5">
|
---|
| 769 | <primary sortas="b-uic-qt5">uic-qt5</primary>
|
---|
| 770 | </indexterm>
|
---|
| 771 | </listitem>
|
---|
| 772 | </varlistentry>
|
---|
| 773 |
|
---|
| 774 | </variablelist>
|
---|
| 775 |
|
---|
| 776 | </sect2>
|
---|
| 777 |
|
---|
| 778 | </sect1>
|
---|