[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 |
|
---|
[21552cf] | 7 | <!ENTITY qtwebengine-major "5.15">
|
---|
[4eb513e] | 8 | <!-- URL if there is a public release
|
---|
[57e07f4] | 9 | <!ENTITY qtwebengine-download-http "https://download.qt.io/archive/qt/&qtwebengine-major;/&qtwebengine-version;/submodules/qtwebengine-everywhere-src-&qtwebengine-version;.tar.xz">
|
---|
[4eb513e] | 10 | URL for a prepared git version -->
|
---|
| 11 | <!ENTITY qtwebengine-download-http "&sources-anduin-http;/qtwebengine/qtwebengine-&qtwebengine-version;.tar.xz">
|
---|
[ceb3dc7] | 12 | <!ENTITY qtwebengine-download-ftp " ">
|
---|
[fb6d1550] | 13 | <!ENTITY qtwebengine-md5sum "97ee413dccf03d2fc09a7718f39367f7">
|
---|
[4eb513e] | 14 | <!ENTITY qtwebengine-size "306 MB">
|
---|
[b0599bb] | 15 | <!ENTITY qtwebengine-buildsize "5.1 GB (154 MB installed)">
|
---|
[e7cae3c] | 16 | <!ENTITY qtwebengine-time "95 SBU (Using 6 jobs on a 4-core processor)">
|
---|
[ceb3dc7] | 17 | ]>
|
---|
| 18 |
|
---|
| 19 | <sect1 id="qtwebengine" xreflabel="qtwebengine-&qtwebengine-version;">
|
---|
| 20 | <?dbhtml filename="qtwebengine.html"?>
|
---|
| 21 |
|
---|
| 22 | <sect1info>
|
---|
| 23 | <date>$Date$</date>
|
---|
| 24 | </sect1info>
|
---|
| 25 |
|
---|
| 26 | <title>QtWebEngine-&qtwebengine-version;</title>
|
---|
| 27 |
|
---|
| 28 | <indexterm zone="qtwebengine">
|
---|
| 29 | <primary sortas="a-qtwebengine">qtwebengine</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
| 33 | <title>Introduction to QtWebEngine</title>
|
---|
| 34 |
|
---|
| 35 | <para>
|
---|
| 36 | <application>QtWebEngine</application> integrates
|
---|
[55a55f1] | 37 | <application>chromium</application>'s web capabilities into Qt. It
|
---|
[a9c0e8d] | 38 | ships with its own copy of ninja which it uses for the build if it cannot
|
---|
| 39 | find a system copy, and various copies of libraries from ffmpeg, icu,
|
---|
| 40 | libvpx, and zlib (including libminizip) which have been forked by the
|
---|
[ceb3dc7] | 41 | <application>chromium</application> developers.
|
---|
| 42 | </para>
|
---|
| 43 |
|
---|
[455eec0] | 44 | <para>
|
---|
| 45 | This package and browsers using it may be useful if you need to use a
|
---|
| 46 | website designed for google chrome, or chromium, browsers.
|
---|
| 47 | </para>
|
---|
| 48 |
|
---|
[4eb513e] | 49 | <!-- Note for editors re switching between git versions and releases:
|
---|
| 50 | If a public release of Qt 5.15.3 (or later) appears in a meaningful
|
---|
| 51 | time frame, please keep the notes re the git build, as comments, so
|
---|
| 52 | that updating for later fixes will be easier: in the past, updates
|
---|
| 53 | of 'stable' versions (i.e. 5.12 when 5.14, 5.15 were the newest)
|
---|
| 54 | happened much later than updates to the newest version (now Qt6)
|
---|
| 55 | and it seems likely we might again need to use a git version to fix
|
---|
| 56 | future chromium vulnerabilities. -->
|
---|
| 57 |
|
---|
| 58 | <warning>
|
---|
[67ffe4e] | 59 | <!-- FIXME : remove this para before we release 11.0 -->
|
---|
| 60 | <para>
|
---|
| 61 | <emphasis>If you are using a development version of LFS with binutils-2.37,
|
---|
| 62 | you must rebuild binutils with the patch which is now in LFS, otherwise the
|
---|
| 63 | build will eventually fail with a message 'error adding symbols: malformed
|
---|
| 64 | archive'.</emphasis>
|
---|
| 65 | </para>
|
---|
| 66 |
|
---|
[fc0828f] | 67 | <para>
|
---|
| 68 | QtWebEngine uses a forked copy of chromium, and is therefore vulnerable
|
---|
| 69 | to many issues found there. The Qt developers have always preferred to
|
---|
| 70 | make releases at the same time as the rest of Qt (rather than adding
|
---|
[4eb513e] | 71 | emergency fixes), but with stable versions getting released after the
|
---|
| 72 | current development version. Now that they are keen to move to Qt6, the
|
---|
| 73 | 5.15.3 and later Qt-5.15 releases are initially only available to paying
|
---|
| 74 | customers. QtWebEngine is something of an exception because of its LGPL
|
---|
| 75 | licence, but getting the git sources (with the forked chromium submodule)
|
---|
| 76 | to a position where they will successfully build on a current BLFS system
|
---|
| 77 | can take a lot of effort and therefore updates to the book may be delayed.
|
---|
| 78 | </para>
|
---|
| 79 |
|
---|
| 80 | <para>
|
---|
| 81 | It seems likely that future 5.15-series versions will also be released
|
---|
[fb6d1550] | 82 | long after the chromium vulnerabilities are known, but fixes for
|
---|
| 83 | QtWebEngine can be found in git and the editors take the view that
|
---|
| 84 | known vulnerabilities in browsers should be fixed.
|
---|
[fc0828f] | 85 | </para>
|
---|
[4eb513e] | 86 |
|
---|
| 87 | <para> <!-- for git versions -->
|
---|
[639a5b9] | 88 | The tarball linked to below was created from the 5.15 git branch
|
---|
[fb6d1550] | 89 | and the 87-branch of the chromium submodule (which is forked from
|
---|
[685b8672] | 90 | chromium). See the GIT-VERSIONS file in the tarball (after applying
|
---|
| 91 | any patches) for details of the latest commits.
|
---|
[4eb513e] | 92 | </para>
|
---|
| 93 | </warning>
|
---|
| 94 |
|
---|
| 95 | <!-- note for editors on obtaining webengine from git.
|
---|
| 96 | First (if you do not already have a past version)
|
---|
| 97 | git clone git://code.qt.io/qt/qtwebengine.git
|
---|
| 98 | git submodule init -
|
---|
| 99 | that will report qtwebengine-chromium.git registered for src/3rdparty
|
---|
| 100 | now find the main branch names:
|
---|
| 101 | git fetch origin
|
---|
| 102 | git branch -r
|
---|
| 103 | after a release is prepared (even if the rest is not public), the 5.15
|
---|
| 104 | branch is probably what you want
|
---|
| 105 | git checkout origin/5.15
|
---|
| 106 | Confirm that HEAD is where you expected.
|
---|
| 107 | Now go to src/3rdparty
|
---|
| 108 | git fetch origin
|
---|
| 109 | git branch -r
|
---|
| 110 | The required branch is likely to be 87-branch unless there is a newer one
|
---|
[fb6d1550] | 111 | mentioned in the 5.15 cgit web page (below).
|
---|
[4eb513e] | 112 | git checkout origin/87-branch (or whatever)
|
---|
| 113 | Use git log or git tk to look at its HEAD and check it seems appropriate.
|
---|
| 114 |
|
---|
[fb6d1550] | 115 | To decide when it might be worth creating a new tarball, periodically keep
|
---|
| 116 | an eye on https://code.qt.io/cgit/qt/qtwebengine.git/ (currently, the 5.15
|
---|
| 117 | branch, 5.15.4 might get used later). The interesting items are CVE fixes
|
---|
| 118 | for known chromium vulnerabilities, as well as numbered Security bugs -
|
---|
| 119 | again, these relate to chromium.
|
---|
| 120 |
|
---|
| 121 | When I noticed some updates in late March I was searching for one of the
|
---|
| 122 | CVEs mentioned, and google found a link to a review page for Michael Brüning
|
---|
| 123 | at https://codereview.qt.nokia.com/q/owner:michael.bruning%2540qt.io. At that
|
---|
| 124 | time I could see various unmerged items, so I waited. The items for the
|
---|
| 125 | 69-based chromium module are not relevant to 5.15 (possibly they will
|
---|
| 126 | eventually update 5.12). Review queues for other Qt employees might be found
|
---|
| 127 | in a similar way, but remember that everythng EXCEPT qtwebengine and chromium
|
---|
| 128 | is private to Qt until they choose to release it.
|
---|
| 129 |
|
---|
[685b8672] | 130 | NOTE: the 3rdparty/chromium tree may contain more patches than have been
|
---|
| 131 | merged into the current 5.15.x branch. Any patches after what was in the
|
---|
| 132 | last 'update chromium' merge in qtwebengine may break the build. When Qt
|
---|
| 133 | is close to releasing a paid-for 5.15 version, items from 5.15.x get merged
|
---|
| 134 | into 5.15.
|
---|
| 135 |
|
---|
[fb6d1550] | 136 | After merging the contents of the qtwebengine and src/3rdparty git extracts,
|
---|
| 137 | in the top level please create a GIT-VERSIONS file summarising the HEAD
|
---|
| 138 | commits of both parts, as a reminder of where we are up to.
|
---|
| 139 |
|
---|
[4eb513e] | 140 | Now create tarballs - 'git archive' does not work across submodule boundaries,
|
---|
| 141 | so you need to create one archive from the top of qtwebengine/ and another
|
---|
| 142 | from the top of src/3rdparty (chromium, gn, ninja are apparently all part of
|
---|
| 143 | the qtwebengine-chromium module). Then in a work area untar the qtwebengine
|
---|
| 144 | tarball, go down to src/3rdparty and untar the submodule tarball.
|
---|
| 145 | Decide on what to call the result and create a full xz tarball using tar -cJf.
|
---|
[685b8672] | 146 |
|
---|
| 147 | UPDATE: Since we have to host the tarball, and it is over 300MB, it makes
|
---|
| 148 | sense to create a patch for subsequent fixes (for the first version, 314KB
|
---|
| 149 | including the updates to the GIT-VERSIONS file). For future updates, view
|
---|
| 150 | the current updates patch to see the previous commits. When the new commits
|
---|
| 151 | have been applied, rename the updated version to 'b', but untar the
|
---|
| 152 | unpatched tarball as 'a' and then diff a to b in the usual manner to get
|
---|
| 153 | all updates since the tarball was created.
|
---|
| 154 |
|
---|
| 155 | For our own releases, probably best to create a fresh tarball.
|
---|
| 156 |
|
---|
[fb6d1550] | 157 | end of note for editors -->
|
---|
[fc0828f] | 158 |
|
---|
[33f44cf] | 159 | &lfs101_checked;
|
---|
[088e7e06] | 160 |
|
---|
[55a55f1] | 161 | <note>
|
---|
| 162 | <para>
|
---|
| 163 | By default, ninja will use all online CPUs +2 (if at least 4 exist),
|
---|
| 164 | even if they are not available to the current task because the build
|
---|
| 165 | terminal has been restricted with 'taskset'. To work around this, see
|
---|
| 166 | the Command Explanations below.
|
---|
| 167 | </para>
|
---|
| 168 |
|
---|
| 169 | <para>
|
---|
| 170 | Unusually, the shipped GN build system (used to create the Ninja files)
|
---|
| 171 | requires a static <filename class="libraryfile">libstdc++.a</filename>
|
---|
| 172 | although the installed libraries correctly use the shared version. If
|
---|
| 173 | that static library is not present, the build will fail quite quickly.
|
---|
[5510d3e] | 174 | Please note that if you try to build webengine as part of
|
---|
| 175 | <application>Qt</application> and the static library is not available,
|
---|
[baac59c] | 176 | that build will either complete without installing webengine, or else
|
---|
| 177 | fail during the install (both variants have been observed in 5.12.0).
|
---|
[55a55f1] | 178 | </para>
|
---|
| 179 | </note>
|
---|
[ceb3dc7] | 180 |
|
---|
| 181 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 182 | <itemizedlist spacing="compact">
|
---|
| 183 | <listitem>
|
---|
| 184 | <para>
|
---|
| 185 | Download (HTTP): <ulink url="&qtwebengine-download-http;"/>
|
---|
| 186 | </para>
|
---|
| 187 | </listitem>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>
|
---|
| 190 | Download (FTP): <ulink url="&qtwebengine-download-ftp;"/>
|
---|
| 191 | </para>
|
---|
| 192 | </listitem>
|
---|
| 193 | <listitem>
|
---|
| 194 | <para>
|
---|
| 195 | Download MD5 sum: &qtwebengine-md5sum;
|
---|
| 196 | </para>
|
---|
| 197 | </listitem>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>
|
---|
| 200 | Download size: &qtwebengine-size;
|
---|
| 201 | </para>
|
---|
| 202 | </listitem>
|
---|
| 203 | <listitem>
|
---|
| 204 | <para>
|
---|
| 205 | Estimated disk space required: &qtwebengine-buildsize;
|
---|
| 206 | </para>
|
---|
| 207 | </listitem>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>
|
---|
| 210 | Estimated build time: &qtwebengine-time;
|
---|
| 211 | </para>
|
---|
| 212 | </listitem>
|
---|
| 213 | </itemizedlist>
|
---|
[72119155] | 214 |
|
---|
[1d776f0b] | 215 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 216 | <itemizedlist spacing="compact">
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>
|
---|
[52249aa] | 219 | Required patch:
|
---|
[4eb513e] | 220 | <!-- keep links for releases and git versions as a reminder
|
---|
[94f5f13d] | 221 | that the tarball names names differ
|
---|
| 222 | <ulink url="&patch-root;/qtwebengine-everywhere-src-&qtwebengine-version;-ICU68-2.patch"/> -->
|
---|
[e7cae3c] | 223 | <ulink url="&patch-root;/qtwebengine-&qtwebengine-version;-upstream_fixes-2.patch"/>
|
---|
[685b8672] | 224 | </para>
|
---|
| 225 | </listitem>
|
---|
| 226 | <listitem>
|
---|
| 227 | <para>
|
---|
| 228 | Required patch:
|
---|
[67ffe4e] | 229 | <ulink url="&patch-root;/qtwebengine-&qtwebengine-version;-build_fixes-4.patch"/>
|
---|
[8ed3ef2a] | 230 | </para>
|
---|
| 231 | </listitem>
|
---|
[1d776f0b] | 232 | </itemizedlist>
|
---|
[72119155] | 233 |
|
---|
[ceb3dc7] | 234 | <bridgehead renderas="sect3">qtwebengine Dependencies</bridgehead>
|
---|
| 235 |
|
---|
| 236 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 237 | <!-- the qmake output tends to be misleading. 'khr' is from Mesa -->
|
---|
| 238 | <para role="required">
|
---|
[639a5b9] | 239 | <xref linkend="nodejs"/>,
|
---|
[ceb3dc7] | 240 | <xref linkend="nss"/>,
|
---|
[55a55f1] | 241 | <xref linkend="python2"/>, and
|
---|
[ceb3dc7] | 242 | <xref linkend='qt5'/>
|
---|
| 243 | </para>
|
---|
| 244 |
|
---|
| 245 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 246 | <note>
|
---|
| 247 | <para>
|
---|
| 248 | If these packages are not installed, the build process will compile and
|
---|
| 249 | install its own (perhaps older) version, with the side effect of
|
---|
| 250 | increasing build and installed disk space and build time.
|
---|
| 251 | </para>
|
---|
| 252 | </note>
|
---|
| 253 |
|
---|
| 254 | <para role="recommended">
|
---|
[55a55f1] | 255 | either <xref linkend="alsa-lib"/> or
|
---|
| 256 | <xref linkend="pulseaudio"/> (or both),
|
---|
| 257 | <xref linkend="ffmpeg"/>,
|
---|
[9535df7e] | 258 | <xref linkend="icu"/>,
|
---|
[ceb3dc7] | 259 | <xref linkend="libwebp"/>,
|
---|
[55a55f1] | 260 | <xref linkend="libxslt"/>, and
|
---|
[f5932da] | 261 | <xref linkend="opus"/>
|
---|
[ceb3dc7] | 262 | </para>
|
---|
| 263 |
|
---|
| 264 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 265 | <para role="optional">
|
---|
| 266 | <xref linkend="libevent"/>,
|
---|
[e847737] | 267 | <xref linkend="poppler"/>,
|
---|
[ceb3dc7] | 268 | <ulink url="https://github.com/open-source-parsers/jsoncpp/releases">jsoncpp</ulink>,
|
---|
| 269 | <ulink url="https://github.com/cisco/libsrtp/releases">libsrtp</ulink>,
|
---|
| 270 | <ulink url="http://google.github.io/snappy/">snappy</ulink>
|
---|
| 271 | </para>
|
---|
| 272 |
|
---|
| 273 | <para condition="html" role="usernotes">
|
---|
| 274 | User Notes: <ulink url="&blfs-wiki;/qtwebengine"/>
|
---|
| 275 | </para>
|
---|
| 276 | </sect2>
|
---|
| 277 |
|
---|
| 278 | <sect2 role="installation">
|
---|
| 279 | <title>Installation of qtwebengine</title>
|
---|
| 280 |
|
---|
[4eb513e] | 281 | <note>
|
---|
| 282 | <para>
|
---|
| 283 | Unlike version 5.15.2, the chromium-derived build system now needs
|
---|
| 284 | <command>python</command> to be available and to be python2. In
|
---|
| 285 | BLFS-10.1 the creation of the python symlink was removed as a step
|
---|
| 286 | towards eventually getting rid of python2 (other old packages which
|
---|
| 287 | need python2 usually work by invoking python2). If you are still
|
---|
| 288 | using an earlier version of BLFS where
|
---|
| 289 | <filename>/usr/bin/python</filename> exists, you can skip the
|
---|
| 290 | commands to create the symlink, and to later remove it.
|
---|
| 291 | </para>
|
---|
| 292 | </note>
|
---|
| 293 |
|
---|
[55a55f1] | 294 | <para>
|
---|
[4eb513e] | 295 | First, as the <systemitem class="username">root</systemitem>
|
---|
| 296 | user, create the python symlink:
|
---|
[55a55f1] | 297 | </para>
|
---|
| 298 |
|
---|
[4eb513e] | 299 | <screen role="root"><userinput>ln -svf /usr/bin/python{2,}</userinput></screen>
|
---|
[72119155] | 300 |
|
---|
[52249aa] | 301 | <para>
|
---|
[e7cae3c] | 302 | Now apply a patch for security and other fixes:
|
---|
[52249aa] | 303 | </para>
|
---|
| 304 |
|
---|
[e7cae3c] | 305 | <screen><userinput remap="pre">patch -Np1 -i ../qtwebengine-&qtwebengine-version;-upstream_fixes-2.patch</userinput></screen>
|
---|
[685b8672] | 306 |
|
---|
| 307 | <para>
|
---|
[e7cae3c] | 308 | Next apply a patch to fix several issues that can prevent the build working:
|
---|
[685b8672] | 309 | </para>
|
---|
| 310 |
|
---|
[67ffe4e] | 311 | <screen><userinput remap="pre">patch -Np1 -i ../qtwebengine-&qtwebengine-version;-build_fixes-4.patch</userinput></screen>
|
---|
[72119155] | 312 |
|
---|
[4eb513e] | 313 | <!-- start of commands for git versions only -->
|
---|
[8ed3ef2a] | 314 | <para>
|
---|
[685b8672] | 315 | Although the first patch has ensured that git is not invoked during the build,
|
---|
[4eb513e] | 316 | the build system has labyrinthine rules of byzantine complexity, and in
|
---|
| 317 | particular trying to build without two <filename>.git</filename> directories
|
---|
| 318 | will lead to it eventually falling into unexpected and unbuildable code
|
---|
| 319 | which references a private header that has not been created. Avoid this
|
---|
| 320 | by creating the required directories:
|
---|
[8ed3ef2a] | 321 | </para>
|
---|
| 322 |
|
---|
[4eb513e] | 323 | <screen><userinput>mkdir -pv .git src/3rdparty/chromium/.git</userinput></screen>
|
---|
| 324 |
|
---|
| 325 | <para>
|
---|
| 326 | Because this version of qtwebengine is aimed at a later release than the
|
---|
| 327 | current public releases, change it to build for qt-&qt5-version; using a
|
---|
| 328 | sed:
|
---|
| 329 | </para>
|
---|
| 330 |
|
---|
| 331 | <screen><userinput>sed -e '/^MODULE_VERSION/s/5.*/&qt5-version;/' -i .qmake.conf</userinput></screen>
|
---|
| 332 | <!-- end of commands for git versions only -->
|
---|
| 333 |
|
---|
| 334 | <para>
|
---|
| 335 | Now, ensure that the local headers are available when not building as
|
---|
| 336 | part of the complete <xref linkend="qt5"/>:
|
---|
| 337 | </para>
|
---|
| 338 |
|
---|
| 339 | <screen><userinput>find -type f -name "*.pr[io]" |
|
---|
| 340 | xargs sed -i -e 's|INCLUDEPATH += |&$$QTWEBENGINE_ROOT/include |'</userinput></screen>
|
---|
[8ed3ef2a] | 341 |
|
---|
[ae39488] | 342 | <para>
|
---|
| 343 | Next, allow the pulseaudio library to be linked at build time, instead
|
---|
| 344 | of run time. This also prevents an issue with newer pulseaudio:
|
---|
| 345 | </para>
|
---|
| 346 |
|
---|
| 347 | <screen><userinput>sed -e '/link_pulseaudio/s/false/true/' \
|
---|
| 348 | -i src/3rdparty/chromium/media/media_options.gni</userinput></screen>
|
---|
| 349 |
|
---|
[e90b81d] | 350 | <para>
|
---|
| 351 | Finally, fix a change in the build system which allows its developers to
|
---|
| 352 | pass e.g. -j20 to make (for quick tests of some areas) but breaks the
|
---|
| 353 | build with LFS's use of the NINJAJOBS environment variable:
|
---|
| 354 | </para>
|
---|
| 355 |
|
---|
| 356 | <!-- editors: See thread at
|
---|
| 357 | http://lists.linuxfromscratch.org/pipermail/blfs-dev/2019-December/036996.html
|
---|
| 358 | et.seq, particularly 037002.html which shows the commit near the end. -->
|
---|
| 359 |
|
---|
| 360 | <screen><userinput>sed -i 's/NINJAJOBS/NINJA_JOBS/' src/core/gn_run.pro</userinput></screen>
|
---|
| 361 |
|
---|
[55a55f1] | 362 | <para>
|
---|
| 363 | If an older version of the package's main library has been installed,
|
---|
| 364 | when the package is built separately it will link to that in preference
|
---|
| 365 | to its own not-yet-installed version, and fail because of missing symbols.
|
---|
| 366 | Prevent that by, as the <systemitem class="username">root</systemitem>
|
---|
[fa4e429] | 367 | user, moving the symlink out of the way:
|
---|
[55a55f1] | 368 | </para>
|
---|
| 369 |
|
---|
[8eb0021] | 370 | <screen role="root"><userinput>if [ -e ${QT5DIR}/lib/libQt5WebEngineCore.so ]; then
|
---|
| 371 | mv -v ${QT5DIR}/lib/libQt5WebEngineCore.so{,.old}
|
---|
[05b66d9a] | 372 | fi</userinput></screen>
|
---|
[55a55f1] | 373 |
|
---|
[d4bafcc7] | 374 | <para>
|
---|
| 375 | Install <application>qtwebengine</application> by running the following
|
---|
| 376 | commands:
|
---|
| 377 | </para>
|
---|
[1d776f0b] | 378 |
|
---|
[2f3c55c5] | 379 | <screen><userinput>mkdir build &&
|
---|
| 380 | cd build &&
|
---|
| 381 |
|
---|
[9535df7e] | 382 | qmake .. -- -system-ffmpeg -webengine-icu &&
|
---|
[2f3c55c5] | 383 | make</userinput></screen>
|
---|
[ceb3dc7] | 384 |
|
---|
[640f4c21] | 385 | <!--
|
---|
[ceb3dc7] | 386 | <para>
|
---|
| 387 | if you wish to build the HTML documentation, issue:
|
---|
| 388 | </para>
|
---|
| 389 |
|
---|
| 390 | <screen><userinput>make docs</userinput></screen>
|
---|
[640f4c21] | 391 | -->
|
---|
[ceb3dc7] | 392 | <para>
|
---|
| 393 | This package does not come with a test suite.
|
---|
| 394 | </para>
|
---|
| 395 |
|
---|
| 396 | <para>
|
---|
| 397 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 398 | </para>
|
---|
| 399 |
|
---|
[640f4c21] | 400 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[4eb513e] | 401 |
|
---|
[e847737] | 402 | <!-- EDITORS NOTE: If you are updating this package, use INSTALL_ROOT=
|
---|
| 403 | instead of DESTDIR= -->
|
---|
[640f4c21] | 404 | <!--
|
---|
[ceb3dc7] | 405 | <para>
|
---|
| 406 | If you built the HTML documentation, install it with:
|
---|
| 407 | </para>
|
---|
| 408 |
|
---|
| 409 | <screen role="root"><userinput>make install_docs</userinput></screen>
|
---|
[640f4c21] | 410 | -->
|
---|
[ceb3dc7] | 411 | <para>
|
---|
| 412 | Remove references to the build directory from installed library
|
---|
| 413 | dependency (prl) files by running the following
|
---|
| 414 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 415 | </para>
|
---|
| 416 |
|
---|
[dff94d4] | 417 | <screen role="root"><userinput>find $QT5DIR/ -name \*.prl \
|
---|
[ceb3dc7] | 418 | -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
---|
[4eb513e] | 419 |
|
---|
| 420 | <para>
|
---|
| 421 | Finally, as the <systemitem class="username">root</systemitem>
|
---|
| 422 | user, remove the python symlink:
|
---|
| 423 | </para>
|
---|
| 424 |
|
---|
| 425 | <screen role="root"><userinput>rm -v /usr/bin/python</userinput></screen>
|
---|
[ceb3dc7] | 426 | </sect2>
|
---|
| 427 |
|
---|
| 428 | <sect2 role="commands">
|
---|
| 429 | <title>Command Explanations</title>
|
---|
| 430 |
|
---|
| 431 | <para>
|
---|
[640f4c21] | 432 | <command>qmake</command>: This will build the included copy of
|
---|
| 433 | <application>ninja</application> if it is not already installed
|
---|
[088e7e06] | 434 | and use it to configure the build.
|
---|
| 435 | </para>
|
---|
| 436 |
|
---|
[55a55f1] | 437 | <para>
|
---|
[9535df7e] | 438 | <command>-- -system-ffmpeg -webengine-icu</command>: If any options are
|
---|
| 439 | passed to qmake they must come after '--' which must follow '..' that points
|
---|
[55a55f1] | 440 | to the main directory. The options here cause it to use system ffmpeg and
|
---|
| 441 | system icu. If built as part of full Qt5, the system icu is automatically
|
---|
| 442 | used (only) by Qt5Core if it is available, but unless this option is used
|
---|
| 443 | webengine will always use its shipped copy of icu, adding time and space
|
---|
[9535df7e] | 444 | to the build.
|
---|
[55a55f1] | 445 | </para>
|
---|
| 446 |
|
---|
[c716497] | 447 | <!--
|
---|
[52249aa] | 448 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 449 | href="../../xincludes/SIOCGSTAMP.xml"/>
|
---|
[c716497] | 450 | -->
|
---|
[52249aa] | 451 |
|
---|
[088e7e06] | 452 | <para>
|
---|
| 453 | <option>NINJAJOBS=4 make</option>: If you patched system ninja in LFS to
|
---|
| 454 | recognize the NINJAJOBS environment variable, this command will run system
|
---|
[5c7f2497] | 455 | ninja with the specified number of jobs (i.e. 4).
|
---|
[baac59c] | 456 | There are several reasons why you might want to do this:
|
---|
[4eb513e] | 457 | </para>
|
---|
[5c7f2497] | 458 |
|
---|
| 459 | <itemizedlist>
|
---|
| 460 | <listitem>
|
---|
[baac59c] | 461 | <para>
|
---|
| 462 | Building on a subset of CPUs allows measuring the build time
|
---|
| 463 | for that number of processors or to run other CPU-intensive tasks on
|
---|
| 464 | other cores.
|
---|
| 465 | </para>
|
---|
[5c7f2497] | 466 | </listitem>
|
---|
| 467 | <listitem>
|
---|
[baac59c] | 468 | <para>
|
---|
| 469 | Improving the build speed on a less-well endowed 4-core machine.
|
---|
| 470 | On a machine with a powerful CPU and plenty of RAM, running N+2
|
---|
| 471 | jobs (the ninja default for 4+ cores) for the large working sets
|
---|
| 472 | of the C++ compiles in this package is typically only marginally
|
---|
| 473 | faster than running N jobs at a time. But for a machine with less
|
---|
| 474 | memory it can be much slower.
|
---|
| 475 | </para>
|
---|
[5c7f2497] | 476 | </listitem>
|
---|
| 477 | <listitem>
|
---|
[baac59c] | 478 | <para>
|
---|
| 479 | Reducing the number of cores being used on long running, CPU
|
---|
| 480 | intensive packages may alleviate heat problems.
|
---|
| 481 | </para>
|
---|
[5c7f2497] | 482 | </listitem>
|
---|
| 483 | </itemizedlist>
|
---|
[ceb3dc7] | 484 |
|
---|
| 485 | </sect2>
|
---|
| 486 |
|
---|
[55a55f1] | 487 | <sect2 role="configuration">
|
---|
| 488 | <title>Configuring QtWebEngine</title>
|
---|
| 489 |
|
---|
| 490 | <sect3 id="qtwebengine-config">
|
---|
| 491 | <title>Configuration Information</title>
|
---|
| 492 |
|
---|
| 493 | <para>
|
---|
| 494 | If you are upgrading from an older minor version of this
|
---|
| 495 | application, for some webpages to load you may need to
|
---|
| 496 | clear the <emphasis>browser</emphasis> caches, e.g. for
|
---|
| 497 | <application>falkon</application> they will be found in
|
---|
| 498 | <filename class="directory">~/.cache/falkon/</filename>.
|
---|
| 499 | You will need to do this if the browser starts to render
|
---|
| 500 | the page and then changes to a blank tab with a message
|
---|
| 501 | that something went wrong, and a button to Retry. Even
|
---|
| 502 | after removing the old caches, you may need to retry a
|
---|
| 503 | few times for each affected tab.
|
---|
| 504 | </para>
|
---|
| 505 |
|
---|
[4eb513e] | 506 | <para>
|
---|
| 507 | If a browser using this package fails to run and when run
|
---|
| 508 | from a term it reports 'Trace/breakpoint trap' that is
|
---|
| 509 | probably a kernel configuration issue - there is no need
|
---|
| 510 | to rebuild QtWebEngine, see the next section, recompile
|
---|
| 511 | the kernel and reboot to the new kernel.
|
---|
| 512 | </para>
|
---|
| 513 |
|
---|
[55a55f1] | 514 | </sect3>
|
---|
| 515 |
|
---|
| 516 | </sect2>
|
---|
| 517 |
|
---|
[4eb513e] | 518 | <sect2 role="kernel" id="qtwebengine-kernel">
|
---|
| 519 | <title>Kernel Configuration</title>
|
---|
| 520 |
|
---|
| 521 | <para>
|
---|
[866d8e15] | 522 | This package does not require any of the optional kernel namespace items,
|
---|
| 523 | but if User namespace is enabled <phrase revision="systemd">(as happens
|
---|
| 524 | in some unit files, for hardening)</phrase> PID namespace must also be
|
---|
| 525 | enabled. In that case enable the following options in the kernel
|
---|
| 526 | configuration and recompile the kernel if necessary:
|
---|
[4eb513e] | 527 | </para>
|
---|
| 528 |
|
---|
| 529 | <!-- Spaces are significant in <screen> sections -->
|
---|
| 530 | <screen><literal>General setup --->
|
---|
| 531 | -*- Namespaces support --->
|
---|
[866d8e15] | 532 | [ ] User namespace [CONFIG_USER_NS]
|
---|
| 533 | [*] PID namespace [CONFIG_PID_NS]</literal></screen>
|
---|
[4eb513e] | 534 |
|
---|
| 535 | <indexterm zone="qtwebengine qtwebengine-kernel">
|
---|
| 536 | <primary sortas="d-qtwebengine">qtwebengine</primary>
|
---|
| 537 | </indexterm>
|
---|
| 538 | </sect2>
|
---|
[55a55f1] | 539 |
|
---|
[ceb3dc7] | 540 | <sect2 role="content">
|
---|
| 541 | <title>Contents</title>
|
---|
| 542 |
|
---|
| 543 | <segmentedlist>
|
---|
| 544 | <segtitle>Installed Programs</segtitle>
|
---|
| 545 | <segtitle>Installed Libraries</segtitle>
|
---|
| 546 | <segtitle>Installed Directories</segtitle>
|
---|
| 547 |
|
---|
| 548 | <seglistitem>
|
---|
| 549 | <seg>
|
---|
[640f4c21] | 550 | qtwebengine_convert_dict and
|
---|
[e10e1a8e] | 551 | QtWebEngineProcess (in $QT5DIR/libexec)
|
---|
[ceb3dc7] | 552 | </seg>
|
---|
| 553 | <seg>
|
---|
[21552cf] | 554 | libQt5Pdf.so,
|
---|
| 555 | libQt5PdfWidgets.so,
|
---|
[640f4c21] | 556 | libQt5WebEngineCore.so,
|
---|
| 557 | libQt5WebEngine.so, and
|
---|
| 558 | libQt5WebEngineWidgets.so
|
---|
[ceb3dc7] | 559 | </seg>
|
---|
| 560 | <seg>
|
---|
[21552cf] | 561 | $QT5DIR/include/QtPdf,
|
---|
| 562 | $QT5DIR/include/QtPdfWidgets,
|
---|
[e10e1a8e] | 563 | $QT5DIR/include/QtWebEngine,
|
---|
| 564 | $QT5DIR/include/QtWebEngineCore,
|
---|
| 565 | $QT5DIR/include/QtWebEngineWidgets,
|
---|
| 566 | $QT5DIR/qml/QtWebEngine, and
|
---|
| 567 | $QT5DIR/translations/qtwebengine_locales
|
---|
[ceb3dc7] | 568 | </seg>
|
---|
| 569 | </seglistitem>
|
---|
| 570 | </segmentedlist>
|
---|
| 571 |
|
---|
| 572 | <variablelist>
|
---|
| 573 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 574 | <?dbfo list-presentation="list"?>
|
---|
| 575 | <?dbhtml list-presentation="table"?>
|
---|
| 576 |
|
---|
| 577 | <varlistentry id="qtwebengine_convert_dict">
|
---|
| 578 | <term><command>qtwebengine_convert_dict</command></term>
|
---|
| 579 | <listitem>
|
---|
| 580 | <para>
|
---|
| 581 | converts hunspell dictionaries (<literal>.dic</literal>) to chromium
|
---|
| 582 | format (<literal>.bdic</literal>)
|
---|
| 583 | </para>
|
---|
| 584 | <indexterm zone="qtwebengine qtwebengine_convert_dict">
|
---|
| 585 | <primary sortas="b-qtwebengine_convert_dict">qtwebengine_convert_dict</primary>
|
---|
| 586 | </indexterm>
|
---|
| 587 | </listitem>
|
---|
| 588 | </varlistentry>
|
---|
| 589 |
|
---|
| 590 | <varlistentry id="QtWebEngineProcess">
|
---|
| 591 | <term><command>QtWebEngineProcess</command></term>
|
---|
| 592 | <listitem>
|
---|
| 593 | <para>
|
---|
| 594 | is a libexec program which runs a zygote process (one that listens
|
---|
| 595 | for spawn requests from a master process and will fork itself in
|
---|
[4c24eb0a] | 596 | response)
|
---|
[ceb3dc7] | 597 | </para>
|
---|
| 598 | <indexterm zone="qtwebengine QtWebEngineProcess">
|
---|
| 599 | <primary sortas="b-QtWebEngineProcess">QtWebEngineProcess</primary>
|
---|
| 600 | </indexterm>
|
---|
| 601 | </listitem>
|
---|
| 602 | </varlistentry>
|
---|
| 603 |
|
---|
| 604 | <varlistentry id="libQtWebEngine-lib">
|
---|
| 605 | <term><filename class="libraryfile">libQtWebEngine.so</filename></term>
|
---|
| 606 | <listitem>
|
---|
| 607 | <para>
|
---|
[4c24eb0a] | 608 | provides QML types for rendering web content within a QML application
|
---|
[ceb3dc7] | 609 | </para>
|
---|
| 610 | <indexterm zone="qtwebengine libQtWebEngine-lib">
|
---|
| 611 | <primary sortas="c-libQtWebEngine">libQtWebEngine.so</primary>
|
---|
| 612 | </indexterm>
|
---|
| 613 | </listitem>
|
---|
| 614 | </varlistentry>
|
---|
| 615 |
|
---|
| 616 | <varlistentry id="libQtWebEngineCore">
|
---|
| 617 | <term><filename class="libraryfile">libQtWebEngineCore.so</filename></term>
|
---|
| 618 | <listitem>
|
---|
| 619 | <para>
|
---|
[4c24eb0a] | 620 | provides public API shared by both QtWebEngine and QtWebEngineWidgets
|
---|
[ceb3dc7] | 621 | </para>
|
---|
| 622 | <indexterm zone="qtwebengine libQtWebEngineCore">
|
---|
| 623 | <primary sortas="c-libQtWebEngineCore">libQtWebEngineCore.so</primary>
|
---|
| 624 | </indexterm>
|
---|
| 625 | </listitem>
|
---|
| 626 | </varlistentry>
|
---|
| 627 |
|
---|
| 628 | <varlistentry id="libQtWebEngineWidgets">
|
---|
| 629 | <term><filename class="libraryfile">libQtWebEngineWidgets.so</filename></term>
|
---|
| 630 | <listitem>
|
---|
| 631 | <para>
|
---|
| 632 | provides a web browser engine as well as C++ classes to render and
|
---|
[4c24eb0a] | 633 | interact with web content
|
---|
[ceb3dc7] | 634 | </para>
|
---|
| 635 | <indexterm zone="qtwebengine libQtWebEngineWidgets">
|
---|
| 636 | <primary sortas="c-libQtWebEngineWidgets">libQtWebEngineWidgets.so</primary>
|
---|
| 637 | </indexterm>
|
---|
| 638 | </listitem>
|
---|
| 639 | </varlistentry>
|
---|
| 640 |
|
---|
| 641 | </variablelist>
|
---|
| 642 | </sect2>
|
---|
[4c24eb0a] | 643 |
|
---|
[ceb3dc7] | 644 | </sect1>
|
---|