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