source: x/lib/qtwebengine.xml@ 0b1ad94

12.2 trunk
Last change on this file since 0b1ad94 was 6360539, checked in by Bruce Dubbs <bdubbs@…>, 3 weeks ago

Tag x libraries.

  • Property mode set to 100644
File size: 16.0 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[ceb3dc7]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
[f806bbf2]7 <!ENTITY qtwebengine-download-http "https://download.qt.io/official_releases/qt/&qtwebengine-major;/&qtwebengine-version;/submodules/qtwebengine-everywhere-src-&qtwebengine-version;.tar.xz">
[ceb3dc7]8 <!ENTITY qtwebengine-download-ftp " ">
[7ef2fd34]9 <!ENTITY qtwebengine-md5sum "650bacb77f1fa3d4843e0667df07a1b8">
[64c41e6]10 <!ENTITY qtwebengine-size "525 MB">
[71818de]11 <!ENTITY qtwebengine-buildsize "8.7 GB (335 MB installed)">
[7ef2fd34]12 <!ENTITY qtwebengine-time "40 SBU (Using parallelism=8)">
[ceb3dc7]13]>
14
15<sect1 id="qtwebengine" xreflabel="qtwebengine-&qtwebengine-version;">
16 <?dbhtml filename="qtwebengine.html"?>
17
18 <title>QtWebEngine-&qtwebengine-version;</title>
19
20 <indexterm zone="qtwebengine">
21 <primary sortas="a-qtwebengine">qtwebengine</primary>
22 </indexterm>
23
24 <sect2 role="package">
25 <title>Introduction to QtWebEngine</title>
26
27 <para>
28 <application>QtWebEngine</application> integrates
[55a55f1]29 <application>chromium</application>'s web capabilities into Qt. It
[a9c0e8d]30 ships with its own copy of ninja which it uses for the build if it cannot
31 find a system copy, and various copies of libraries from ffmpeg, icu,
32 libvpx, and zlib (including libminizip) which have been forked by the
[ceb3dc7]33 <application>chromium</application> developers.
34 </para>
35
[6ab9228f]36 <para>
37 This package and browsers using it may be useful if you need to use a
38 website designed for google chrome, or chromium, browsers.
39 </para>
40
41 <warning>
42 <para>
43 QtWebEngine uses a forked copy of chromium, and is therefore vulnerable
44 to many issues found there. The Qt developers seem to fork a newer
45 version for minor Qt versions, but because chromium moves to newer
46 versions very often, by the time the Qt developers get a forked version
47 to pass their extended tests it is always an old version and security
48 fixes from chromium (some of which have a CVE number) can take several
49 months to appear in a QtWebengine release, even if the severity has been
50 rated as Critical.
51 </para>
52
53 <para>
54 Therefore, you should be wary of using QtWebEngine in a sensitive
55 context and should always update to the next release as soon as it
56 appears in this book, even if is not flagged as a Security Update.
57 Identifying which vulnerabilities have been fixed in a particular
58 release requires pulling the appropriate 'based-NNN' branch just before
59 the previous and current releases and is often impractical. Reports of
60 fixed QTBUG items do not seem to be available and there is not any
61 documentation in the tarball for changes after the qt-5 versions.
62 </para>
63 </warning>
[455eec0]64
[6360539]65 &lfs122_checked;
[088e7e06]66
[00032e41]67 <warning>
[55a55f1]68 <para>
69 By default, ninja will use all online CPUs +2 (if at least 4 exist),
70 even if they are not available to the current task because the build
[8558044]71 terminal has been restricted with 'taskset'. In BLFS, this package
[511e498]72 takes more time to build than any other. In one example,
[8558044]73 the build of this package crashed at about the 90 percent point
74 due to an out of memory problem on a system with 24 cores and 32 GB
[00032e41]75 of memory.
[55a55f1]76 </para>
77
[00032e41]78 <para>
79 To work around this, see the Command Explanations below.
80 </para>
81 </warning>
[9e0ab833]82
[ceb3dc7]83 <bridgehead renderas="sect3">Package Information</bridgehead>
84 <itemizedlist spacing="compact">
85 <listitem>
86 <para>
87 Download (HTTP): <ulink url="&qtwebengine-download-http;"/>
88 </para>
89 </listitem>
90 <listitem>
91 <para>
92 Download (FTP): <ulink url="&qtwebengine-download-ftp;"/>
93 </para>
94 </listitem>
95 <listitem>
96 <para>
97 Download MD5 sum: &qtwebengine-md5sum;
98 </para>
99 </listitem>
100 <listitem>
101 <para>
102 Download size: &qtwebengine-size;
103 </para>
104 </listitem>
105 <listitem>
106 <para>
107 Estimated disk space required: &qtwebengine-buildsize;
108 </para>
109 </listitem>
110 <listitem>
111 <para>
112 Estimated build time: &qtwebengine-time;
113 </para>
114 </listitem>
115 </itemizedlist>
[72119155]116
[1d776f0b]117 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
118 <itemizedlist spacing="compact">
[a7787e3]119 <!-- keep links for releases and git versions as a reminder
[94f5f13d]120 that the tarball names names differ
[a7787e3]121 <ulink url="&patch-root;/qtwebengine-everywhere-src-&qtwebengine-version;-ICU68-2.patch"/>-->
122 <!--<ulink url="&patch-root;/qtwebengine-&qtwebengine-version;-5.15.7-1.patch"/>-->
[aebb5271]123 <listitem>
124 <para>
125 Required patch:
[a7787e3]126 <ulink url="&patch-root;/qtwebengine-&qtwebengine-version;-ffmpeg7_fixes-1.patch"/>
[2a89d308]127 </para>
128 </listitem>
[1d776f0b]129 </itemizedlist>
[a7787e3]130
[72119155]131
[ceb3dc7]132 <bridgehead renderas="sect3">qtwebengine Dependencies</bridgehead>
133
134 <bridgehead renderas="sect4">Required</bridgehead>
[f806bbf2]135
[ceb3dc7]136 <para role="required">
[7ef2fd34]137 <xref linkend="cups"/>,
[a3e69b9b]138 <xref linkend="html5lib"/>,
[639a5b9]139 <xref linkend="nodejs"/>,
[ceb3dc7]140 <xref linkend="nss"/>,
[f806bbf2]141 <xref linkend="pciutils"/>, and
142 <xref linkend='qt6'/>
[ceb3dc7]143 </para>
144
145 <bridgehead renderas="sect4">Recommended</bridgehead>
146 <note>
147 <para>
148 If these packages are not installed, the build process will compile and
149 install its own (perhaps older) version, with the side effect of
150 increasing build and installed disk space and build time.
151 </para>
152 </note>
153
154 <para role="recommended">
[55a55f1]155 either <xref linkend="alsa-lib"/> or
156 <xref linkend="pulseaudio"/> (or both),
157 <xref linkend="ffmpeg"/>,
[ead4657]158 <xref linkend="icu"/>,
[ceb3dc7]159 <xref linkend="libwebp"/>,
[55a55f1]160 <xref linkend="libxslt"/>, and
[f5932da]161 <xref linkend="opus"/>
[ceb3dc7]162 </para>
163
164 <bridgehead renderas="sect4">Optional</bridgehead>
165 <para role="optional">
166 <xref linkend="libevent"/>,
[ff00f810]167 <xref linkend="mitkrb"/>,
[d885388]168 <xref linkend="pipewire"/>,
[e847737]169 <xref linkend="poppler"/>,
[ceb3dc7]170 <ulink url="https://github.com/open-source-parsers/jsoncpp/releases">jsoncpp</ulink>,
171 <ulink url="https://github.com/cisco/libsrtp/releases">libsrtp</ulink>,
[87fc185]172 <ulink url="https://google.github.io/snappy/">snappy</ulink>
[ceb3dc7]173 </para>
174
175 </sect2>
176
177 <sect2 role="installation">
178 <title>Installation of qtwebengine</title>
[a7787e3]179
180 <para>
181 First, adapt the bundled copy of Chromium to the latest version of ffmpeg:
182 </para>
183
184<screen><userinput remap="pre">patch -Np1 -d src/3rdparty/chromium &lt; ../qtwebengine-&qtwebengine-version;-ffmpeg7_fixes-1.patch</userinput></screen>
185
186 <para>
187 Next, fix a build failure that occurs because the BLFS build of ffmpeg
188 does not use OpenH264:
189 </para>
190
191<screen><userinput remap="pre">sed -e '189 s/=/&amp; false/' \
192 -e '190 d' \
193 -i.orig src/3rdparty/chromium/third_party/webrtc/webrtc.gni</userinput></screen>
194
[d4bafcc7]195 <para>
196 Install <application>qtwebengine</application> by running the following
197 commands:
198 </para>
[1d776f0b]199
[2f3c55c5]200<screen><userinput>mkdir build &amp;&amp;
201cd build &amp;&amp;
[ceb3dc7]202
[f806bbf2]203cmake -D CMAKE_MESSAGE_LOG_LEVEL=STATUS \
[a7787e3]204 -D QT_FEATURE_webengine_system_ffmpeg=ON \
[f806bbf2]205 -D QT_FEATURE_webengine_system_icu=ON \
206 -D QT_FEATURE_webengine_system_libevent=ON \
207 -D QT_FEATURE_webengine_proprietary_codecs=ON \
208 -D QT_FEATURE_webengine_webrtc_pipewire=ON \
209 -D QT_BUILD_EXAMPLES_BY_DEFAULT=OFF \
210 -G Ninja .. &amp;&amp;
211
212ninja</userinput></screen>
[ceb3dc7]213
214 <para>
215 This package does not come with a test suite.
216 </para>
217
218 <para>
219 Now, as the <systemitem class="username">root</systemitem> user:
220 </para>
221
[c28dcdf1]222<screen role="root"><userinput>ninja install</userinput></screen>
[4eb513e]223
[e847737]224 <!-- EDITORS NOTE: If you are updating this package, use INSTALL_ROOT=
[f806bbf2]225 instead of DESTDIR= Not sure this is valid any more with version 6.6.2 -->
[ceb3dc7]226 </sect2>
227
228 <sect2 role="commands">
229 <title>Command Explanations</title>
230
[c0f71f2]231 <para>
[f806bbf2]232 <parameter>CMAKE_MESSAGE_LOG_LEVEL=STATUS</parameter>: Output
233 interesting messages that project users might be interested in.
234 Ideally these should be concise, no more than a single line,
235 but still informative.
[55a55f1]236 </para>
237
[d885388]238 <para>
[f806bbf2]239 <parameter>QT_FEATURE_webengine_system_*</parameter>: Specify what
240 external packages the system should use.
[d885388]241 </para>
242
[ff00f810]243 <para>
[f806bbf2]244 <parameter>QT_BUILD_EXAMPLES_BY_DEFAULT=OFF</parameter>: Do not build
[5af8f488]245 examples by default.
[ff00f810]246 </para>
247
[088e7e06]248 <para>
249 <option>NINJAJOBS=4 make</option>: If you patched system ninja in LFS to
250 recognize the NINJAJOBS environment variable, this command will run system
[8558044]251 ninja with the specified number of jobs (i.e. 4).
[d885388]252 There are several reasons why you might want to use options like this this:
[4eb513e]253 </para>
[d885388]254
[5c7f2497]255 <itemizedlist>
256 <listitem>
[baac59c]257 <para>
258 Building on a subset of CPUs allows measuring the build time
[d885388]259 for a smaller number of processors, and/or running other
260 CPU-intensive tasks at the same time. For an editor on a machine
261 with a lot of CPUs, trying to measure the build time for a 4-CPU
262 machine, <option>NINJAJOBS=4 make</option> will give a reasonable
[70e458ba]263 approximation (there is a short period where N+2 python and node
[d885388]264 jobs run).
[baac59c]265 </para>
[5c7f2497]266 </listitem>
267 <listitem>
[baac59c]268 <para>
[d885388]269 On a machine with only 4 CPUs online, the default of scheduling
[c7ce2b46]270 N+2 jobs for qtwebengine is slower by between 3% and 7%, probably
[d885388]271 because of the size of the C++ files and their many includes and
272 templates. Therefore, if in doubt set NINJAJOBS to the number of CPUs.
[baac59c]273 </para>
[5c7f2497]274 </listitem>
275 <listitem>
[baac59c]276 <para>
277 Reducing the number of cores being used on long running, CPU
278 intensive packages may alleviate heat problems.
279 </para>
[5c7f2497]280 </listitem>
[00032e41]281 <listitem>
282 <para>
283 Reducing the number of cores will prevent potential out-of-memory
284 problems on systems that do not have enough memory (or swap)
[8558044]285 when all cores are active. A suggested approach is to limit
286 the number of cores to about one core for each 1.5 GB of
[00032e41]287 combined RAM and swap space.
288 </para>
289 </listitem>
[5c7f2497]290 </itemizedlist>
[ceb3dc7]291
292 </sect2>
293
[55a55f1]294 <sect2 role="configuration">
295 <title>Configuring QtWebEngine</title>
296
297 <sect3 id="qtwebengine-config">
298 <title>Configuration Information</title>
299
300 <para>
301 If you are upgrading from an older minor version of this
302 application, for some webpages to load you may need to
303 clear the <emphasis>browser</emphasis> caches, e.g. for
304 <application>falkon</application> they will be found in
305 <filename class="directory">~/.cache/falkon/</filename>.
306 You will need to do this if the browser starts to render
307 the page and then changes to a blank tab with a message
308 that something went wrong, and a button to Retry. Even
309 after removing the old caches, you may need to retry a
310 few times for each affected tab.
311 </para>
312
[4eb513e]313 <para>
314 If a browser using this package fails to run and when run
315 from a term it reports 'Trace/breakpoint trap' that is
316 probably a kernel configuration issue - there is no need
317 to rebuild QtWebEngine, see the next section, recompile
318 the kernel and reboot to the new kernel.
319 </para>
320
[55a55f1]321 </sect3>
322
323 </sect2>
324
[4eb513e]325 <sect2 role="kernel" id="qtwebengine-kernel">
326 <title>Kernel Configuration</title>
327
328 <para>
[866d8e15]329 This package does not require any of the optional kernel namespace items,
330 but if User namespace is enabled <phrase revision="systemd">(as happens
331 in some unit files, for hardening)</phrase> PID namespace must also be
332 enabled. In that case enable the following options in the kernel
333 configuration and recompile the kernel if necessary:
[4eb513e]334 </para>
335
[cddcdb14]336 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
337 href="qtwebengine-kernel.xml"/>
[4eb513e]338
339 <indexterm zone="qtwebengine qtwebengine-kernel">
340 <primary sortas="d-qtwebengine">qtwebengine</primary>
341 </indexterm>
342 </sect2>
[55a55f1]343
[ceb3dc7]344 <sect2 role="content">
345 <title>Contents</title>
346
347 <segmentedlist>
348 <segtitle>Installed Programs</segtitle>
349 <segtitle>Installed Libraries</segtitle>
350 <segtitle>Installed Directories</segtitle>
351
352 <seglistitem>
353 <seg>
[8558044]354 qtwebengine_convert_dict and
[f806bbf2]355 QtWebEngineProcess (both in $QT6DIR/libexec)
[ceb3dc7]356 </seg>
357 <seg>
[f806bbf2]358 libQt6Pdf.so,
359 libQt6PdfQuick.so,
360 libQt6PdfWidgets.so,
361 libQt6WebEngineCore.so,
362 libQt6WebEngineiQuick.so,
363 libQt6WebEngineQuickDelegatesQml.so, and
364 libQt6WebEngineWidgets.so
[ceb3dc7]365 </seg>
366 <seg>
[f806bbf2]367 $QT6DIR/include/QtPdf,
368 $QT6DIR/include/QtPdfQuick,
369 $QT6DIR/include/QtPdfWidgets,
370 $QT6DIR/include/QtWebEngineCore,
371 $QT6DIR/include/QtWebEngineQuick,
372 $QT6DIR/include/QtWebEngineWidgets,
373 $QT6DIR/qml/QtWebEngine, and
374 $QT6DIR/translations/qtwebengine_locales
[ceb3dc7]375 </seg>
376 </seglistitem>
377 </segmentedlist>
378
379 <variablelist>
380 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
381 <?dbfo list-presentation="list"?>
382 <?dbhtml list-presentation="table"?>
383
384 <varlistentry id="qtwebengine_convert_dict">
385 <term><command>qtwebengine_convert_dict</command></term>
386 <listitem>
387 <para>
388 converts hunspell dictionaries (<literal>.dic</literal>) to chromium
389 format (<literal>.bdic</literal>)
390 </para>
391 <indexterm zone="qtwebengine qtwebengine_convert_dict">
392 <primary sortas="b-qtwebengine_convert_dict">qtwebengine_convert_dict</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="QtWebEngineProcess">
398 <term><command>QtWebEngineProcess</command></term>
399 <listitem>
400 <para>
401 is a libexec program which runs a zygote process (one that listens
402 for spawn requests from a master process and will fork itself in
[4c24eb0a]403 response)
[ceb3dc7]404 </para>
405 <indexterm zone="qtwebengine QtWebEngineProcess">
406 <primary sortas="b-QtWebEngineProcess">QtWebEngineProcess</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
[f806bbf2]410<!--
[ceb3dc7]411 <varlistentry id="libQtWebEngine-lib">
412 <term><filename class="libraryfile">libQtWebEngine.so</filename></term>
413 <listitem>
414 <para>
[4c24eb0a]415 provides QML types for rendering web content within a QML application
[ceb3dc7]416 </para>
417 <indexterm zone="qtwebengine libQtWebEngine-lib">
418 <primary sortas="c-libQtWebEngine">libQtWebEngine.so</primary>
419 </indexterm>
420 </listitem>
421 </varlistentry>
422
423 <varlistentry id="libQtWebEngineCore">
424 <term><filename class="libraryfile">libQtWebEngineCore.so</filename></term>
425 <listitem>
426 <para>
[4c24eb0a]427 provides public API shared by both QtWebEngine and QtWebEngineWidgets
[ceb3dc7]428 </para>
429 <indexterm zone="qtwebengine libQtWebEngineCore">
430 <primary sortas="c-libQtWebEngineCore">libQtWebEngineCore.so</primary>
431 </indexterm>
432 </listitem>
433 </varlistentry>
434
435 <varlistentry id="libQtWebEngineWidgets">
436 <term><filename class="libraryfile">libQtWebEngineWidgets.so</filename></term>
437 <listitem>
438 <para>
439 provides a web browser engine as well as C++ classes to render and
[4c24eb0a]440 interact with web content
[ceb3dc7]441 </para>
442 <indexterm zone="qtwebengine libQtWebEngineWidgets">
443 <primary sortas="c-libQtWebEngineWidgets">libQtWebEngineWidgets.so</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
[f806bbf2]447-->
[ceb3dc7]448 </variablelist>
449 </sect2>
[4c24eb0a]450
[ceb3dc7]451</sect1>
Note: See TracBrowser for help on using the repository browser.