[ceb3dc7] | 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 |
|
---|
[08f2ed34] | 7 | <!ENTITY qtwebengine-major "5.10">
|
---|
[ceb3dc7] | 8 | <!ENTITY qtwebengine-download-http "https://download.qt.io/archive/qt/&qtwebengine-major;/&qtwebengine-version;/submodules/qtwebengine-opensource-src-&qtwebengine-version;.tar.xz">
|
---|
| 9 | <!ENTITY qtwebengine-download-ftp " ">
|
---|
[08f2ed34] | 10 | <!ENTITY qtwebengine-md5sum "0ea0b32e97911cf80d32b31cf10a6d8b">
|
---|
[28620f60] | 11 | <!ENTITY qtwebengine-size "208 MB">
|
---|
[08f2ed34] | 12 | <!ENTITY qtwebengine-buildsize "3.3 GB (144 MB installed)">
|
---|
| 13 | <!ENTITY qtwebengine-time "95 SBU (using 4 cores)">
|
---|
[ceb3dc7] | 14 |
|
---|
[dff94d4] | 15 | <!-- Both qmake and ninja will use all available cores, in fact ninja runs n+2
|
---|
[ceb3dc7] | 16 | jobs at a time. Most of our readers do not have more than 4 cores.
|
---|
| 17 | To reduce the number of available cores for measuring the build time:
|
---|
| 18 | # echo 0 > /sys/devices/system/cpu/cpu4/online
|
---|
| 19 | and repeat for each subsequent cpu. Never do this for cpu0.
|
---|
| 20 | You can cat /sys/devices/system/cpu/{online,offline} to check.
|
---|
| 21 | To reinstate the cores after measuring, echo 1 to the same files. -->
|
---|
| 22 | ]>
|
---|
| 23 |
|
---|
| 24 | <sect1 id="qtwebengine" xreflabel="qtwebengine-&qtwebengine-version;">
|
---|
| 25 | <?dbhtml filename="qtwebengine.html"?>
|
---|
| 26 |
|
---|
| 27 | <sect1info>
|
---|
| 28 | <othername>$LastChangedBy$</othername>
|
---|
| 29 | <date>$Date$</date>
|
---|
| 30 | </sect1info>
|
---|
| 31 |
|
---|
| 32 | <title>QtWebEngine-&qtwebengine-version;</title>
|
---|
| 33 |
|
---|
| 34 | <indexterm zone="qtwebengine">
|
---|
| 35 | <primary sortas="a-qtwebengine">qtwebengine</primary>
|
---|
| 36 | </indexterm>
|
---|
| 37 |
|
---|
| 38 | <sect2 role="package">
|
---|
| 39 | <title>Introduction to QtWebEngine</title>
|
---|
| 40 |
|
---|
| 41 | <para>
|
---|
| 42 | <application>QtWebEngine</application> integrates
|
---|
| 43 | <application>chromium</application>"s web capabilities into Qt. It
|
---|
[a9c0e8d] | 44 | ships with its own copy of ninja which it uses for the build if it cannot
|
---|
| 45 | find a system copy, and various copies of libraries from ffmpeg, icu,
|
---|
| 46 | libvpx, and zlib (including libminizip) which have been forked by the
|
---|
[ceb3dc7] | 47 | <application>chromium</application> developers.
|
---|
| 48 | </para>
|
---|
| 49 |
|
---|
[601e298] | 50 | &lfs81_checked;
|
---|
[dff94d4] | 51 |
|
---|
| 52 | <note><para>Both qmake and ninja will use all available cores when
|
---|
| 53 | building. There is no conveninet way to control the number of cores
|
---|
| 54 | used during the build.</para></note>
|
---|
[ceb3dc7] | 55 |
|
---|
| 56 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 57 | <itemizedlist spacing="compact">
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download (HTTP): <ulink url="&qtwebengine-download-http;"/>
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Download (FTP): <ulink url="&qtwebengine-download-ftp;"/>
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Download MD5 sum: &qtwebengine-md5sum;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>
|
---|
| 75 | Download size: &qtwebengine-size;
|
---|
| 76 | </para>
|
---|
| 77 | </listitem>
|
---|
| 78 | <listitem>
|
---|
| 79 | <para>
|
---|
| 80 | Estimated disk space required: &qtwebengine-buildsize;
|
---|
| 81 | </para>
|
---|
| 82 | </listitem>
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>
|
---|
| 85 | Estimated build time: &qtwebengine-time;
|
---|
| 86 | </para>
|
---|
| 87 | </listitem>
|
---|
| 88 | </itemizedlist>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect3">qtwebengine Dependencies</bridgehead>
|
---|
| 91 |
|
---|
| 92 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 93 | <!-- the qmake output tends to be misleading. 'khr' is from Mesa -->
|
---|
| 94 | <para role="required">
|
---|
| 95 | <xref linkend="nss"/>,
|
---|
[640f4c21] | 96 | <xref linkend="pulseaudio"/>, and
|
---|
[ceb3dc7] | 97 | <xref linkend='qt5'/>
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 101 | <note>
|
---|
| 102 | <para>
|
---|
| 103 | If these packages are not installed, the build process will compile and
|
---|
| 104 | install its own (perhaps older) version, with the side effect of
|
---|
| 105 | increasing build and installed disk space and build time.
|
---|
| 106 | </para>
|
---|
| 107 | </note>
|
---|
| 108 |
|
---|
| 109 | <para role="recommended">
|
---|
| 110 | <xref linkend="libwebp"/>,
|
---|
[f5932da] | 111 | <xref linkend="libxslt"/>, and
|
---|
| 112 | <xref linkend="opus"/>
|
---|
[ceb3dc7] | 113 | </para>
|
---|
| 114 |
|
---|
| 115 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 116 | <para role="optional">
|
---|
| 117 | <xref linkend="libevent"/>,
|
---|
| 118 | <ulink url="https://github.com/open-source-parsers/jsoncpp/releases">jsoncpp</ulink>,
|
---|
| 119 | <ulink url="https://github.com/cisco/libsrtp/releases">libsrtp</ulink>,
|
---|
| 120 | <ulink url="http://google.github.io/snappy/">snappy</ulink>
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <para condition="html" role="usernotes">
|
---|
| 124 | User Notes: <ulink url="&blfs-wiki;/qtwebengine"/>
|
---|
| 125 | </para>
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="installation">
|
---|
| 129 | <title>Installation of qtwebengine</title>
|
---|
| 130 |
|
---|
| 131 | <para>
|
---|
| 132 | Install <application>qtwebengine</application> by running the following
|
---|
| 133 | commands:
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
[640f4c21] | 136 | <screen><userinput>mkdir build &&
|
---|
| 137 | cd build &&
|
---|
[ceb3dc7] | 138 |
|
---|
[640f4c21] | 139 | qmake .. &&
|
---|
| 140 | make</userinput></screen>
|
---|
| 141 | <!--
|
---|
[ceb3dc7] | 142 | <para>
|
---|
| 143 | if you wish to build the HTML documentation, issue:
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
| 146 | <screen><userinput>make docs</userinput></screen>
|
---|
[640f4c21] | 147 | -->
|
---|
[ceb3dc7] | 148 | <para>
|
---|
| 149 | This package does not come with a test suite.
|
---|
| 150 | </para>
|
---|
| 151 |
|
---|
| 152 | <para>
|
---|
| 153 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 154 | </para>
|
---|
| 155 |
|
---|
[640f4c21] | 156 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 157 | <!--
|
---|
[ceb3dc7] | 158 | <para>
|
---|
| 159 | If you built the HTML documentation, install it with:
|
---|
| 160 | </para>
|
---|
| 161 |
|
---|
| 162 | <screen role="root"><userinput>make install_docs</userinput></screen>
|
---|
[640f4c21] | 163 | -->
|
---|
[ceb3dc7] | 164 | <para>
|
---|
| 165 | Remove references to the build directory from installed library
|
---|
| 166 | dependency (prl) files by running the following
|
---|
| 167 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 168 | </para>
|
---|
| 169 |
|
---|
[dff94d4] | 170 | <screen role="root"><userinput>find $QT5DIR/ -name \*.prl \
|
---|
[ceb3dc7] | 171 | -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
---|
| 172 | </sect2>
|
---|
| 173 |
|
---|
| 174 | <sect2 role="commands">
|
---|
| 175 | <title>Command Explanations</title>
|
---|
| 176 |
|
---|
| 177 | <para>
|
---|
[640f4c21] | 178 | <command>qmake</command>: This will build the included copy of
|
---|
| 179 | <application>ninja</application> if it is not already installed
|
---|
| 180 | and use it to configure the build. That and the subsequent
|
---|
| 181 | <command>make</command> command will use all available CPU cores.
|
---|
[ceb3dc7] | 182 | </para>
|
---|
| 183 |
|
---|
| 184 | </sect2>
|
---|
| 185 |
|
---|
| 186 | <sect2 role="content">
|
---|
| 187 | <title>Contents</title>
|
---|
| 188 |
|
---|
| 189 | <segmentedlist>
|
---|
| 190 | <segtitle>Installed Programs</segtitle>
|
---|
| 191 | <segtitle>Installed Libraries</segtitle>
|
---|
| 192 | <segtitle>Installed Directories</segtitle>
|
---|
| 193 |
|
---|
| 194 | <seglistitem>
|
---|
| 195 | <seg>
|
---|
[640f4c21] | 196 | qtwebengine_convert_dict and
|
---|
| 197 | QtWebEngineProcess
|
---|
[ceb3dc7] | 198 | </seg>
|
---|
| 199 | <seg>
|
---|
[640f4c21] | 200 | libQt5WebEngineCore.so,
|
---|
| 201 | libQt5WebEngine.so, and
|
---|
| 202 | libQt5WebEngineWidgets.so
|
---|
[ceb3dc7] | 203 | </seg>
|
---|
| 204 | <seg>
|
---|
| 205 | $QT5PREFIX/doc/qtwebengine,
|
---|
| 206 | $QT5PREFIX/includeQtWebEngine,
|
---|
[640f4c21] | 207 | $QT5PREFIX/include/QtWebEngineCore, and
|
---|
[ceb3dc7] | 208 | $QT5PREFIX/include/QtWebEngineWidgets
|
---|
| 209 | </seg>
|
---|
| 210 | </seglistitem>
|
---|
| 211 | </segmentedlist>
|
---|
| 212 |
|
---|
| 213 | <variablelist>
|
---|
| 214 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 215 | <?dbfo list-presentation="list"?>
|
---|
| 216 | <?dbhtml list-presentation="table"?>
|
---|
| 217 |
|
---|
| 218 | <varlistentry id="qtwebengine_convert_dict">
|
---|
| 219 | <term><command>qtwebengine_convert_dict</command></term>
|
---|
| 220 | <listitem>
|
---|
| 221 | <para>
|
---|
| 222 | converts hunspell dictionaries (<literal>.dic</literal>) to chromium
|
---|
| 223 | format (<literal>.bdic</literal>)
|
---|
| 224 | </para>
|
---|
| 225 | <indexterm zone="qtwebengine qtwebengine_convert_dict">
|
---|
| 226 | <primary sortas="b-qtwebengine_convert_dict">qtwebengine_convert_dict</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
| 231 | <varlistentry id="QtWebEngineProcess">
|
---|
| 232 | <term><command>QtWebEngineProcess</command></term>
|
---|
| 233 | <listitem>
|
---|
| 234 | <para>
|
---|
| 235 | is a libexec program which runs a zygote process (one that listens
|
---|
| 236 | for spawn requests from a master process and will fork itself in
|
---|
| 237 | response).
|
---|
| 238 | </para>
|
---|
| 239 | <indexterm zone="qtwebengine QtWebEngineProcess">
|
---|
| 240 | <primary sortas="b-QtWebEngineProcess">QtWebEngineProcess</primary>
|
---|
| 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
| 245 | <varlistentry id="libQtWebEngine-lib">
|
---|
| 246 | <term><filename class="libraryfile">libQtWebEngine.so</filename></term>
|
---|
| 247 | <listitem>
|
---|
| 248 | <para>
|
---|
| 249 | provides QML types for rendering web content within a QML application.
|
---|
| 250 | </para>
|
---|
| 251 | <indexterm zone="qtwebengine libQtWebEngine-lib">
|
---|
| 252 | <primary sortas="c-libQtWebEngine">libQtWebEngine.so</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 |
|
---|
| 257 | <varlistentry id="libQtWebEngineCore">
|
---|
| 258 | <term><filename class="libraryfile">libQtWebEngineCore.so</filename></term>
|
---|
| 259 | <listitem>
|
---|
| 260 | <para>
|
---|
| 261 | provides public API shared by both QtWebEngine and QtWebEngineWidgets.
|
---|
| 262 | </para>
|
---|
| 263 | <indexterm zone="qtwebengine libQtWebEngineCore">
|
---|
| 264 | <primary sortas="c-libQtWebEngineCore">libQtWebEngineCore.so</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="libQtWebEngineWidgets">
|
---|
| 270 | <term><filename class="libraryfile">libQtWebEngineWidgets.so</filename></term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>
|
---|
| 273 | provides a web browser engine as well as C++ classes to render and
|
---|
| 274 | interact with web content.
|
---|
| 275 | </para>
|
---|
| 276 | <indexterm zone="qtwebengine libQtWebEngineWidgets">
|
---|
| 277 | <primary sortas="c-libQtWebEngineWidgets">libQtWebEngineWidgets.so</primary>
|
---|
| 278 | </indexterm>
|
---|
| 279 | </listitem>
|
---|
| 280 | </varlistentry>
|
---|
| 281 |
|
---|
| 282 | </variablelist>
|
---|
| 283 | </sect2>
|
---|
| 284 | </sect1>
|
---|