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