[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 " ">
|
---|
[79904cf] | 12 | <!ENTITY qt5-md5sum "0c8d2aa45f38be9c3f7c9325eb059d9d">
|
---|
[0173357f] | 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
|
---|
[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"/>,
|
---|
| 96 | <xref linkend="dbus"/>,
|
---|
| 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. -->
|
---|
[104b5bf] | 100 | <xref linkend="icu"/>,
|
---|
| 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"/>,
|
---|
[74d76938] | 107 | <xref linkend="pcre"/>, and
|
---|
[104b5bf] | 108 | <xref linkend="sqlite"/>
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 112 | <para role="optional">
|
---|
[79904cf] | 113 | <xref linkend="geoclue"/>,
|
---|
[104b5bf] | 114 | <xref linkend="gst10-plugins-base"/> (QtWebKit HTML5 Video Support),
|
---|
| 115 | <xref linkend="gtk2"/> (GTK+ Theme Support),
|
---|
[79904cf] | 116 | <ulink url="https://code.google.com/p/ibus/">IBus</ulink>,
|
---|
[104b5bf] | 117 | <ulink url="http://xkbcommon.org/">libxkbcommon</ulink>,
|
---|
[419a60e] | 118 | <xref linkend="mariadb"/> or <xref linkend="mysql"/>,
|
---|
[104b5bf] | 119 | <xref linkend="postgresql"/>,
|
---|
[0173357f] | 120 | <xref linkend="pulseaudio"/>, and
|
---|
| 121 | <xref linkend="unixodbc"/>
|
---|
| 122 | </para>
|
---|
| 123 |
|
---|
[104b5bf] | 124 | <para condition="html" role="usernotes">User Notes:
|
---|
| 125 | <ulink url="&blfs-wiki;/qt5"/>
|
---|
| 126 | </para>
|
---|
| 127 | </sect2>
|
---|
| 128 |
|
---|
[ec7940be] | 129 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 130 | href="../../xincludes/qt-alternatives.xml"/>
|
---|
| 131 |
|
---|
[104b5bf] | 132 | <sect2 role="installation">
|
---|
[0173357f] | 133 | <title>Installation of Qt5</title>
|
---|
[104b5bf] | 134 |
|
---|
[fb28b3b] | 135 | <caution>
|
---|
[104b5bf] | 136 | <para>
|
---|
| 137 | If you did not install some of the recommended dependencies, examine
|
---|
| 138 | <command>./configure --help</command> output to check how to disable
|
---|
| 139 | them or use internal versions bundled in the source tarball.
|
---|
| 140 | </para>
|
---|
[fb28b3b] | 141 | </caution>
|
---|
| 142 |
|
---|
| 143 | <warning>
|
---|
| 144 | <para>
|
---|
| 145 | If <application>Qt5</application> is being reinstalled into the
|
---|
| 146 | same directory as an existing instance, run the
|
---|
| 147 | following commands from a console or non-Qt5 based window manager.
|
---|
| 148 | It overwrites <application>Qt5</application> libraries that should
|
---|
| 149 | not be in use during the install process.
|
---|
| 150 | </para>
|
---|
[104b5bf] | 151 | </warning>
|
---|
[ec7940be] | 152 | <!-- ==== Method 1 ====== -->
|
---|
[fb28b3b] | 153 | <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>
|
---|
[104b5bf] | 154 |
|
---|
| 155 | <para>
|
---|
[fb28b3b] | 156 | Install <application>Qt5</application> by running the
|
---|
[104b5bf] | 157 | following commands:
|
---|
| 158 | </para>
|
---|
| 159 |
|
---|
[79904cf] | 160 | <!-- This is rather a bad idea. Most apps that I've seen using Qt5 look for -qt5
|
---|
[ec7940be] | 161 | suffixed programs. On the other hand, the developer is used to running
|
---|
| 162 | qmake, linguist, etc from the command line.
|
---|
[79904cf] | 163 |
|
---|
[0173357f] | 164 | <note>
|
---|
| 165 | <para>
|
---|
| 166 | If <emphasis>not</emphasis> also installing <application>Qt4</application>
|
---|
| 167 | into the /usr directory, change the entry for -bindir below to /usr/bin.
|
---|
| 168 | </para>
|
---|
[79904cf] | 169 | </note> -->
|
---|
[74d76938] | 170 |
|
---|
[43bb741] | 171 | <screen><userinput>export QT5LINK=/usr
|
---|
[ec7940be] | 172 |
|
---|
| 173 | ./configure -prefix /usr \
|
---|
[fb28b3b] | 174 | -sysconfdir /etc/xdg \
|
---|
[ec7940be] | 175 | -bindir /usr/bin \
|
---|
[fb28b3b] | 176 | -headerdir /usr/include/qt5 \
|
---|
| 177 | -archdatadir /usr/lib/qt5 \
|
---|
| 178 | -datadir /usr/share/qt5 \
|
---|
| 179 | -docdir /usr/share/doc/qt5 \
|
---|
[104b5bf] | 180 | -translationdir /usr/share/qt5/translations \
|
---|
[fb28b3b] | 181 | -examplesdir /usr/share/doc/qt5/examples \
|
---|
[74d76938] | 182 | -confirm-license \
|
---|
| 183 | -opensource \
|
---|
| 184 | -dbus-linked \
|
---|
[79904cf] | 185 | -openssl-linked \<!--
|
---|
| 186 | -system-harfbuzz \-->
|
---|
[74d76938] | 187 | -system-sqlite \
|
---|
| 188 | -no-nis \
|
---|
| 189 | -nomake examples \
|
---|
| 190 | -opengl es2 \
|
---|
| 191 | -optimized-qmake &&
|
---|
[104b5bf] | 192 | make</userinput></screen>
|
---|
| 193 |
|
---|
[ec7940be] | 194 | <para>
|
---|
| 195 | This package does not come with a test suite.
|
---|
| 196 | </para>
|
---|
| 197 |
|
---|
[104b5bf] | 198 | <para>
|
---|
[acacfb64] | 199 | Remove references to the build directory from the
|
---|
[a6c6923] | 200 | <filename class="extension">.pc</filename> files by running
|
---|
| 201 | the following command:
|
---|
[104b5bf] | 202 | </para>
|
---|
| 203 |
|
---|
| 204 | <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
|
---|
| 205 |
|
---|
| 206 | <para>
|
---|
| 207 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 208 | </para>
|
---|
| 209 |
|
---|
[ec7940be] | 210 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[104b5bf] | 211 |
|
---|
| 212 | <para>
|
---|
| 213 | Remove references to the build directory from installed files by
|
---|
| 214 | running the following commands as the
|
---|
| 215 | <systemitem class="username">root</systemitem> user:
|
---|
| 216 | </para>
|
---|
| 217 |
|
---|
[283854e4] | 218 | <screen role="root"><userinput>sed -e "s:$PWD/qtbase:/usr/lib/qt5:g" \
|
---|
[ec7940be] | 219 | -i /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &&
|
---|
[104b5bf] | 220 |
|
---|
[ec7940be] | 221 | find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -r \
|
---|
| 222 | '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' {} \;</userinput></screen>
|
---|
[104b5bf] | 223 |
|
---|
[ec7940be] | 224 | <!-- ==== Method 2 ====== -->
|
---|
[104b5bf] | 225 |
|
---|
[fb28b3b] | 226 | <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt5-version;</bridgehead>
|
---|
[74d76938] | 227 |
|
---|
[ec7940be] | 228 | <para>
|
---|
| 229 | This section provides for installing Qt4 almost all of the files in the
|
---|
| 230 | <filename class="directory">/opt</filename> directory.
|
---|
| 231 | </para>
|
---|
[74d76938] | 232 |
|
---|
[ec7940be] | 233 | <screen><userinput>export QT5DIR=/opt/qt-&qt5-version; &&
|
---|
[43bb741] | 234 | export QT5LINK=/opt/qt5 &&
|
---|
[74d76938] | 235 |
|
---|
| 236 | ./configure -prefix $QT5DIR \
|
---|
| 237 | -sysconfdir /etc/xdg \
|
---|
| 238 | -confirm-license \
|
---|
| 239 | -opensource \
|
---|
| 240 | -dbus-linked \
|
---|
[79904cf] | 241 | -openssl-linked \<!--
|
---|
| 242 | -system-harfbuzz \-->
|
---|
[74d76938] | 243 | -system-sqlite \
|
---|
| 244 | -no-nis \
|
---|
| 245 | -nomake examples \
|
---|
| 246 | -opengl es2 \
|
---|
| 247 | -optimized-qmake &&
|
---|
| 248 | make</userinput></screen>
|
---|
| 249 |
|
---|
| 250 | <para>
|
---|
| 251 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 252 | </para>
|
---|
| 253 |
|
---|
| 254 | <screen role="root"><userinput>make install &&
|
---|
[ec7940be] | 255 | ln -svfn $QT5DIR /opt/qt5</userinput></screen>
|
---|
[74d76938] | 256 |
|
---|
| 257 | <para>
|
---|
| 258 | Remove references to the build directory from installed files by
|
---|
| 259 | running the following commands as the
|
---|
| 260 | <systemitem class="username">root</systemitem> user:
|
---|
| 261 | </para>
|
---|
| 262 |
|
---|
[0173357f] | 263 | <screen role="root"><userinput>find $QT5DIR -name qt_lib_bootstrap_private.pri \
|
---|
[74d76938] | 264 | -exec sed -i -e "s:$PWD/qtbase:/$QT5DIR/lib/:g" {} \; &&
|
---|
| 265 |
|
---|
| 266 | find $QT5DIR -name \*.prl \
|
---|
| 267 | -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
---|
| 268 |
|
---|
[ec7940be] | 269 | <!-- This is useful for packages looking explicitly for Qt apps with -qt5 suffix.
|
---|
[0173357f] | 270 |
|
---|
[74d76938] | 271 | <para>
|
---|
[0173357f] | 272 | Symlink the <application>Qt5</application> executables into
|
---|
[74d76938] | 273 | <filename class="directory">/usr/bin</filename> by running the
|
---|
| 274 | following commands as the
|
---|
| 275 | <systemitem class="username">root</systemitem> user:
|
---|
| 276 | </para>
|
---|
| 277 |
|
---|
[99b9616] | 278 | <screen role="root"><userinput>ln -svf $QT5DIR /opt/qt5 &&
|
---|
[74d76938] | 279 |
|
---|
| 280 | for file in /opt/qt5/bin/*; do
|
---|
| 281 | ln -sfv $file /usr/bin/$(basename $file)-qt5
|
---|
[ec7940be] | 282 | done</userinput></screen> -->
|
---|
| 283 |
|
---|
| 284 | <!-- ==== Common ====== -->
|
---|
| 285 | <bridgehead renderas="sect3">Continuing for Both Methods</bridgehead>
|
---|
| 286 |
|
---|
| 287 | <para>
|
---|
| 288 | For all methods, install images and create the menu entries
|
---|
[43bb741] | 289 | for installed applications. Be sure that the <envar>QT5LINK</envar>
|
---|
[ec7940be] | 290 | variable is defined in root's environment and
|
---|
| 291 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 292 | </para>
|
---|
| 293 |
|
---|
| 294 | <screen role="root"><userinput>install -v -dm755 /usr/share/pixmaps/ &&
|
---|
| 295 |
|
---|
| 296 | install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
---|
| 297 | /usr/share/pixmaps/assistant-qt5.png &&
|
---|
| 298 |
|
---|
| 299 | install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
---|
| 300 | /usr/share/pixmaps/designer-qt5.png &&
|
---|
| 301 |
|
---|
| 302 | install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
---|
| 303 | /usr/share/pixmaps/linguist-qt5.png &&
|
---|
| 304 |
|
---|
| 305 | install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
---|
| 306 | /usr/share/pixmaps/qdbusviewer-qt5.png &&
|
---|
| 307 |
|
---|
| 308 | install -dm755 /usr/share/applications &&
|
---|
| 309 |
|
---|
| 310 | cat > /usr/share/applications/assistant-qt5.desktop << EOF
|
---|
| 311 | <literal>[Desktop Entry]
|
---|
| 312 | Name=Qt5 Assistant
|
---|
| 313 | Comment=Shows Qt5 documentation and examples
|
---|
[43bb741] | 314 | Exec=$QT5LINK/bin/assistant
|
---|
[ec7940be] | 315 | Icon=assistant-qt5.png
|
---|
| 316 | Terminal=false
|
---|
| 317 | Encoding=UTF-8
|
---|
| 318 | Type=Application
|
---|
| 319 | Categories=Qt;Development;Documentation;</literal>
|
---|
| 320 | EOF
|
---|
| 321 |
|
---|
| 322 | cat > /usr/share/applications/designer-qt5.desktop << EOF
|
---|
| 323 | <literal>[Desktop Entry]
|
---|
| 324 | Name=Qt5 Designer
|
---|
| 325 | GenericName=Interface Designer
|
---|
| 326 | Comment=Design GUIs for Qt5 applications
|
---|
[43bb741] | 327 | Exec=$QT5LINK/bin/designer
|
---|
[ec7940be] | 328 | Icon=designer-qt5.png
|
---|
| 329 | MimeType=application/x-designer;
|
---|
| 330 | Terminal=false
|
---|
| 331 | Encoding=UTF-8
|
---|
| 332 | Type=Application
|
---|
| 333 | Categories=Qt;Development;</literal>
|
---|
| 334 | EOF
|
---|
| 335 |
|
---|
| 336 | cat > /usr/share/applications/linguist-qt5.desktop << EOF
|
---|
| 337 | <literal>[Desktop Entry]
|
---|
| 338 | Name=Qt5 Linguist
|
---|
| 339 | Comment=Add translations to Qt5 applications
|
---|
[43bb741] | 340 | Exec=$QT5LINK/bin/linguist
|
---|
[ec7940be] | 341 | Icon=linguist-qt5.png
|
---|
| 342 | MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
---|
| 343 | Terminal=false
|
---|
| 344 | Encoding=UTF-8
|
---|
| 345 | Type=Application
|
---|
| 346 | Categories=Qt;Development;</literal>
|
---|
| 347 | EOF
|
---|
| 348 |
|
---|
| 349 | cat > /usr/share/applications/qdbusviewer-qt5.desktop << EOF
|
---|
| 350 | <literal>[Desktop Entry]
|
---|
| 351 | Name=Qt5 QDbusViewer
|
---|
| 352 | GenericName=D-Bus Debugger
|
---|
| 353 | Comment=Debug D-Bus applications
|
---|
[43bb741] | 354 | Exec=$QT5LINK/bin/qdbusviewer
|
---|
[ec7940be] | 355 | Icon=qdbusviewer-qt5.png
|
---|
| 356 | Terminal=false
|
---|
| 357 | Encoding=UTF-8
|
---|
| 358 | Type=Application
|
---|
| 359 | Categories=Qt;Development;Debugger;</literal>
|
---|
| 360 | EOF</userinput></screen>
|
---|
[74d76938] | 361 |
|
---|
| 362 | </sect2>
|
---|
| 363 |
|
---|
[104b5bf] | 364 | <sect2 role="commands">
|
---|
| 365 | <title>Command Explanations</title>
|
---|
| 366 |
|
---|
[6c7866b4] | 367 | <para>
|
---|
[0173357f] | 368 | <command>sed -e "..." -e "..." -i ...</command>: This
|
---|
| 369 | command fixes detection of
|
---|
[6c7866b4] | 370 | <application>libmng</application> 2.0.
|
---|
| 371 | </para>
|
---|
| 372 |
|
---|
[104b5bf] | 373 | <para>
|
---|
| 374 | <parameter>-confirm-license</parameter>: Accept license
|
---|
| 375 | without prompting user during configuration.
|
---|
| 376 | </para>
|
---|
| 377 |
|
---|
| 378 | <para>
|
---|
| 379 | <parameter>-opensource</parameter>: Install the opensource
|
---|
| 380 | version of <application>Qt</application>.
|
---|
| 381 | </para>
|
---|
| 382 |
|
---|
[f3a6abc9] | 383 | <para>
|
---|
| 384 | <parameter>-release</parameter>: This switch disables
|
---|
| 385 | building with debugging symbols.
|
---|
| 386 | </para>
|
---|
[104b5bf] | 387 |
|
---|
| 388 | <para>
|
---|
[c32e0380] | 389 | <parameter>-nomake examples</parameter>: This switch
|
---|
| 390 | disables building of the example programs included
|
---|
| 391 | in the source tarball. Remove it if you want to build
|
---|
| 392 | them.
|
---|
[104b5bf] | 393 | </para>
|
---|
| 394 |
|
---|
[1d86421] | 395 | <para>
|
---|
| 396 | <parameter>-system-harfbuzz</parameter>: This switch enables use
|
---|
| 397 | of the system version of <application>Harfbuzz</application>
|
---|
| 398 | which fixes some font rendering issues in
|
---|
| 399 | <application>Qt5</application> applications.
|
---|
| 400 | </para>
|
---|
| 401 |
|
---|
[104b5bf] | 402 | <para>
|
---|
| 403 | <parameter>-system-sqlite</parameter>: This switch enables use
|
---|
[f3a6abc9] | 404 | of the system version of <application>SQLite</application>.
|
---|
[104b5bf] | 405 | </para>
|
---|
| 406 |
|
---|
| 407 | <para>
|
---|
| 408 | <parameter>-no-nis</parameter>: This switch disables support
|
---|
| 409 | for Network Information Service (NIS) which has been
|
---|
[c32e0380] | 410 | removed from recent versions of <application>Glibc</application>.
|
---|
[104b5bf] | 411 | </para>
|
---|
| 412 |
|
---|
| 413 | <para>
|
---|
[05dcb8af] | 414 | <parameter>-dbus-linked -openssl-linked</parameter>: These
|
---|
[104b5bf] | 415 | switches enable explicit linking of the
|
---|
| 416 | <application>D-Bus</application> and
|
---|
| 417 | <application>OpenSSL</application> libraries into
|
---|
[0173357f] | 418 | <application>Qt5</application> libraries instead of
|
---|
[104b5bf] | 419 | <command>dlopen()</command>-ing them.
|
---|
| 420 | </para>
|
---|
| 421 |
|
---|
[f3a6abc9] | 422 | <para>
|
---|
| 423 | <parameter>-opengl es2</parameter>: This switch enables OpenGL ES2
|
---|
[0173357f] | 424 | support in <application>Qt5</application>.
|
---|
[f3a6abc9] | 425 | </para>
|
---|
| 426 |
|
---|
| 427 | <para>
|
---|
| 428 | <parameter>-optimized-qmake</parameter>: This switch enables
|
---|
| 429 | building of the optimized <command>qmake</command> program.
|
---|
[104b5bf] | 430 | </para>
|
---|
| 431 |
|
---|
| 432 | </sect2>
|
---|
| 433 |
|
---|
| 434 | <sect2 role="configuration">
|
---|
[0173357f] | 435 | <title>Configuring Qt5</title>
|
---|
[104b5bf] | 436 |
|
---|
| 437 | <sect3 id="qt5-config">
|
---|
| 438 | <title>Configuration Information</title>
|
---|
| 439 |
|
---|
| 440 | <para>
|
---|
[0173357f] | 441 | Create the menu entries for installed applications by running the
|
---|
| 442 | following commands <systemitem class="username">root</systemitem>
|
---|
| 443 | user:
|
---|
[104b5bf] | 444 | </para>
|
---|
| 445 |
|
---|
[0173357f] | 446 | <para>
|
---|
| 447 | If you installed <application>Qt5</application> in
|
---|
| 448 | <filename class="directory">/usr</filename>, create an
|
---|
| 449 | environment variable needed by certain packages.
|
---|
| 450 | As the <systemitem class="username">root</systemitem> user:
|
---|
| 451 | </para>
|
---|
| 452 |
|
---|
| 453 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
| 454 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
| 455 |
|
---|
[49d3336] | 456 | QT5DIR=/usr
|
---|
[0173357f] | 457 | export QT5DIR
|
---|
| 458 |
|
---|
| 459 | # End /etc/profile.d/qt5.sh</literal>
|
---|
| 460 | EOF</userinput></screen>
|
---|
| 461 |
|
---|
| 462 | <para>
|
---|
| 463 | If you installed <application>Qt5</application> in a location other
|
---|
| 464 | than <filename class="directory">/usr</filename>, you need to update the
|
---|
| 465 | following configuration files so that <application>Qt5</application> is
|
---|
| 466 | correctly found by other packages and system processes.
|
---|
| 467 | </para>
|
---|
| 468 |
|
---|
| 469 | <para>
|
---|
| 470 | As the <systemitem class="username">root</systemitem> user, update
|
---|
| 471 | the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
|
---|
| 472 | run-time cache file:
|
---|
| 473 | </para>
|
---|
| 474 |
|
---|
| 475 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
| 476 | <literal># Begin Qt addition
|
---|
| 477 |
|
---|
| 478 | /opt/qt5/lib
|
---|
| 479 |
|
---|
| 480 | # End Qt addition</literal>
|
---|
| 481 | EOF
|
---|
| 482 |
|
---|
| 483 | ldconfig</userinput></screen>
|
---|
| 484 |
|
---|
| 485 | <indexterm zone="qt5 qt5-config">
|
---|
| 486 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 487 | </indexterm>
|
---|
| 488 |
|
---|
| 489 | <para>
|
---|
| 490 | As the <systemitem class="username">root</systemitem> user, create
|
---|
| 491 | the <filename>/etc/profile.d/qt5.sh</filename> file:
|
---|
| 492 | </para>
|
---|
| 493 |
|
---|
| 494 | <screen role="root"><userinput>cat > /etc/profile.d/qt5.sh << EOF
|
---|
| 495 | <literal># Begin /etc/profile.d/qt5.sh
|
---|
| 496 |
|
---|
| 497 | QT5DIR=/opt/qt5
|
---|
| 498 |
|
---|
| 499 | pathappend /opt/qt5/bin PATH
|
---|
| 500 | pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
|
---|
| 501 |
|
---|
| 502 | export QT5DIR
|
---|
| 503 |
|
---|
| 504 | # End /etc/profile.d/qt5.sh</literal>
|
---|
| 505 | EOF</userinput></screen>
|
---|
| 506 |
|
---|
[104b5bf] | 507 | </sect3>
|
---|
| 508 |
|
---|
[ec7940be] | 509 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 510 | href="../../xincludes/setqt.xml"/>
|
---|
[104b5bf] | 511 | </sect2>
|
---|
| 512 |
|
---|
| 513 | <sect2 role="content">
|
---|
| 514 | <title>Contents</title>
|
---|
| 515 |
|
---|
| 516 | <segmentedlist>
|
---|
| 517 | <segtitle>Installed Programs</segtitle>
|
---|
| 518 | <segtitle>Installed Libraries</segtitle>
|
---|
| 519 | <segtitle>Installed Directories</segtitle>
|
---|
| 520 |
|
---|
| 521 | <seglistitem>
|
---|
| 522 | <seg>
|
---|
[ec7940be] | 523 | assistant, designer, lconvert, linguist, lrelease,
|
---|
| 524 | lupdate, moc, pixeltool, qcollectiongenerator, qdbuscpp2xml,
|
---|
| 525 | qdbus, qdbusviewer, qdbusxml2cpp, qdoc, qhelpconverter,
|
---|
| 526 | qhelpgenerator, qmake, qml1plugindump, qmlbundle,
|
---|
| 527 | qmlimportscanner, qmlmin, qmlplugindump, qmlprofiler, qml,
|
---|
| 528 | qmlscene, qmltestrunner, qmlviewer, qtpaths, rcc,
|
---|
| 529 | syncqt.pl, uic, xmlpatterns, and xmlpatternsvalidator
|
---|
[104b5bf] | 530 | </seg>
|
---|
| 531 | <seg>
|
---|
[0173357f] | 532 | libqgsttools_p.so, libQt5Bluetooth.so, libQt5Bootstrap.a, libQt5CLucene.so,
|
---|
| 533 | libQt5Concurrent.so, libQt5Core.so, libQt5DBus.so, libQt5Declarative.so,
|
---|
| 534 | libQt5DesignerComponents.so, libQt5Designer.so, libQt5Gui.so, libQt5Help.so,
|
---|
| 535 | libQt5MultimediaQuick_p.so, libQt5Multimedia.so, libQt5MultimediaWidgets.so,
|
---|
| 536 | libQt5Network.so, libQt5Nfc.so, libQt5OpenGLExtensions.a, libQt5OpenGL.so,
|
---|
| 537 | libQt5PlatformSupport.a, libQt5Positioning.so, libQt5PrintSupport.so,
|
---|
| 538 | libQt5QmlDevTools.a, libQt5Qml.so, libQt5QuickParticles.so, libQt5Quick.so,
|
---|
| 539 | libQt5QuickTest.so, libQt5Script.so, libQt5ScriptTools.so, libQt5Sensors.so,
|
---|
| 540 | libQt5SerialPort.so, libQt5Sql.so, libQt5Svg.so, libQt5Test.so, libQt5UiTools.a,
|
---|
| 541 | libQt5WebKit.so, libQt5WebKitWidgets.so, libQt5Widgets.so, libQt5X11Extras.so,
|
---|
| 542 | libQt5XmlPatterns.so, and libQt5Xml.so
|
---|
[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>
|
---|