source: x/lib/qtwebengine.xml@ 1e13ac4

lazarus trunk
Last change on this file since 1e13ac4 was 1e13ac4, checked in by Rahul Chandra <rahul@…>, 3 months ago

Turn off system FFMpeg in QtWebEngine as it FTBFS or has runtime errors

  • Property mode set to 100644
File size: 17.1 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 " ">
[64c41e6]9 <!ENTITY qtwebengine-md5sum "d2a509bd4dc6bbf1272217292546cfce">
10 <!ENTITY qtwebengine-size "525 MB">
11 <!ENTITY qtwebengine-buildsize "8.5 GB (319 MB installed)">
12 <!ENTITY qtwebengine-time "60 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
[f67c5c8]65 &lfs121_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>
[f806bbf2]82<!--
[00032e41]83 <note>
[9e0ab833]84 <para>
85 If you are upgrading and have installed a newer version of <xref
86 linkend='icu'/> since you last installed <xref linkend='qt5'/>, you
87 will need to reinstall Qt5 before upgrading, otherwise the final link
88 of this package will fail with a warning that the version of icu
89 libraries needed by libQt5Core.so may conflict with the version
90 used for this package.
91 </para>
92
[55a55f1]93 <para>
94 Unusually, the shipped GN build system (used to create the Ninja files)
95 requires a static <filename class="libraryfile">libstdc++.a</filename>
96 although the installed libraries correctly use the shared version. If
97 that static library is not present, the build will fail quite quickly.
[5510d3e]98 Please note that if you try to build webengine as part of
99 <application>Qt</application> and the static library is not available,
[baac59c]100 that build will either complete without installing webengine, or else
[d885388]101 fail during the install (both variants were observed in 5.12.0).
[55a55f1]102 </para>
103 </note>
[f806bbf2]104-->
[ceb3dc7]105 <bridgehead renderas="sect3">Package Information</bridgehead>
106 <itemizedlist spacing="compact">
107 <listitem>
108 <para>
109 Download (HTTP): <ulink url="&qtwebengine-download-http;"/>
110 </para>
111 </listitem>
112 <listitem>
113 <para>
114 Download (FTP): <ulink url="&qtwebengine-download-ftp;"/>
115 </para>
116 </listitem>
117 <listitem>
118 <para>
119 Download MD5 sum: &qtwebengine-md5sum;
120 </para>
121 </listitem>
122 <listitem>
123 <para>
124 Download size: &qtwebengine-size;
125 </para>
126 </listitem>
127 <listitem>
128 <para>
129 Estimated disk space required: &qtwebengine-buildsize;
130 </para>
131 </listitem>
132 <listitem>
133 <para>
134 Estimated build time: &qtwebengine-time;
135 </para>
136 </listitem>
137 </itemizedlist>
[72119155]138
[f806bbf2]139<!--
[1d776f0b]140 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
141 <itemizedlist spacing="compact">
[f806bbf2]142 <listitem>
[1d776f0b]143 <para>
[52249aa]144 Required patch:
[9e0ab833]145 <!\-\- keep links for releases and git versions as a reminder
[94f5f13d]146 that the tarball names names differ
[9e0ab833]147 <ulink url="&patch-root;/qtwebengine-everywhere-src-&qtwebengine-version;-ICU68-2.patch"/> \-\->
[7a9a7b26]148
[86e62cc]149 <ulink url="&patch-root;/qtwebengine-&qtwebengine-version;-5.15.7-1.patch"/>
[685b8672]150 </para>
[f806bbf2]151 </listitem>
[685b8672]152 <listitem>
153 <para>
[aebb5271]154 Required patch:
[c0f71f2]155 <ulink url="&patch-root;/qtwebengine-&qtwebengine-version;-build_fixes-2.patch"/>
[927e12e]156 </para>
157 </listitem>
[aebb5271]158 <listitem>
159 <para>
160 Required patch:
161 <ulink url="&patch-root;/qtwebengine-&qtwebengine-version;-ffmpeg5_fixes-1.patch"/>
162 </para>
163 </listitem>
[f806bbf2]164
[2a89d308]165 <listitem>
166 <para>
167 Required patch:
168 <ulink url="&patch-root;/qtwebengine-&qtwebengine-version;-icu_73-1.patch"/>
169 </para>
170 </listitem>
[1d776f0b]171 </itemizedlist>
[f806bbf2]172-->
[72119155]173
[ceb3dc7]174 <bridgehead renderas="sect3">qtwebengine Dependencies</bridgehead>
175
176 <bridgehead renderas="sect4">Required</bridgehead>
[f806bbf2]177
[ceb3dc7]178 <para role="required">
[a3e69b9b]179 <xref linkend="html5lib"/>,
[639a5b9]180 <xref linkend="nodejs"/>,
[ceb3dc7]181 <xref linkend="nss"/>,
[f806bbf2]182 <xref linkend="pciutils"/>, and
183 <xref linkend='qt6'/>
[ceb3dc7]184 </para>
185
186 <bridgehead renderas="sect4">Recommended</bridgehead>
187 <note>
188 <para>
189 If these packages are not installed, the build process will compile and
190 install its own (perhaps older) version, with the side effect of
191 increasing build and installed disk space and build time.
192 </para>
193 </note>
194
195 <para role="recommended">
[55a55f1]196 either <xref linkend="alsa-lib"/> or
197 <xref linkend="pulseaudio"/> (or both),
198 <xref linkend="ffmpeg"/>,
[ead4657]199 <xref linkend="icu"/>,
[ceb3dc7]200 <xref linkend="libwebp"/>,
[55a55f1]201 <xref linkend="libxslt"/>, and
[f5932da]202 <xref linkend="opus"/>
[ceb3dc7]203 </para>
204
205 <bridgehead renderas="sect4">Optional</bridgehead>
206 <para role="optional">
207 <xref linkend="libevent"/>,
[ff00f810]208 <xref linkend="mitkrb"/>,
[d885388]209 <xref linkend="pipewire"/>,
[e847737]210 <xref linkend="poppler"/>,
[ceb3dc7]211 <ulink url="https://github.com/open-source-parsers/jsoncpp/releases">jsoncpp</ulink>,
212 <ulink url="https://github.com/cisco/libsrtp/releases">libsrtp</ulink>,
[87fc185]213 <ulink url="https://google.github.io/snappy/">snappy</ulink>
[ceb3dc7]214 </para>
215
216 </sect2>
217
218 <sect2 role="installation">
219 <title>Installation of qtwebengine</title>
[d4bafcc7]220 <para>
221 Install <application>qtwebengine</application> by running the following
222 commands:
223 </para>
[1d776f0b]224
[1e13ac4]225
226<!-- Note to whoever is updating this next, test to see if it FTBFS/Runtime Errors with
227system FFMpeg, I can't get it to work on 6.7.0 and FFMpeg 7.0 [rahul] -->
[2f3c55c5]228<screen><userinput>mkdir build &amp;&amp;
229cd build &amp;&amp;
[ceb3dc7]230
[f806bbf2]231cmake -D CMAKE_MESSAGE_LOG_LEVEL=STATUS \
[1e13ac4]232 -D QT_FEATURE_webengine_system_ffmpeg=OFF \
[f806bbf2]233 -D QT_FEATURE_webengine_system_icu=ON \
234 -D QT_FEATURE_webengine_system_libevent=ON \
235 -D QT_FEATURE_webengine_proprietary_codecs=ON \
236 -D QT_FEATURE_webengine_webrtc_pipewire=ON \
237 -D QT_BUILD_EXAMPLES_BY_DEFAULT=OFF \
238 -G Ninja .. &amp;&amp;
239
240ninja</userinput></screen>
[ceb3dc7]241
242 <para>
243 This package does not come with a test suite.
244 </para>
245
246 <para>
247 Now, as the <systemitem class="username">root</systemitem> user:
248 </para>
249
[c28dcdf1]250<screen role="root"><userinput>ninja install</userinput></screen>
[4eb513e]251
[e847737]252 <!-- EDITORS NOTE: If you are updating this package, use INSTALL_ROOT=
[f806bbf2]253 instead of DESTDIR= Not sure this is valid any more with version 6.6.2 -->
[ceb3dc7]254 </sect2>
255
256 <sect2 role="commands">
257 <title>Command Explanations</title>
258
[c0f71f2]259 <para>
[f806bbf2]260 <parameter>CMAKE_MESSAGE_LOG_LEVEL=STATUS</parameter>: Output
261 interesting messages that project users might be interested in.
262 Ideally these should be concise, no more than a single line,
263 but still informative.
[55a55f1]264 </para>
265
[d885388]266 <para>
[f806bbf2]267 <parameter>QT_FEATURE_webengine_system_*</parameter>: Specify what
268 external packages the system should use.
[d885388]269 </para>
270
[ff00f810]271 <para>
[f806bbf2]272 <parameter>QT_BUILD_EXAMPLES_BY_DEFAULT=OFF</parameter>: Do not build
[5af8f488]273 examples by default.
[ff00f810]274 </para>
275
[088e7e06]276 <para>
277 <option>NINJAJOBS=4 make</option>: If you patched system ninja in LFS to
278 recognize the NINJAJOBS environment variable, this command will run system
[8558044]279 ninja with the specified number of jobs (i.e. 4).
[d885388]280 There are several reasons why you might want to use options like this this:
[4eb513e]281 </para>
[d885388]282
[5c7f2497]283 <itemizedlist>
284 <listitem>
[baac59c]285 <para>
286 Building on a subset of CPUs allows measuring the build time
[d885388]287 for a smaller number of processors, and/or running other
288 CPU-intensive tasks at the same time. For an editor on a machine
289 with a lot of CPUs, trying to measure the build time for a 4-CPU
290 machine, <option>NINJAJOBS=4 make</option> will give a reasonable
[70e458ba]291 approximation (there is a short period where N+2 python and node
[d885388]292 jobs run).
[baac59c]293 </para>
[5c7f2497]294 </listitem>
295 <listitem>
[baac59c]296 <para>
[d885388]297 On a machine with only 4 CPUs online, the default of scheduling
[c7ce2b46]298 N+2 jobs for qtwebengine is slower by between 3% and 7%, probably
[d885388]299 because of the size of the C++ files and their many includes and
300 templates. Therefore, if in doubt set NINJAJOBS to the number of CPUs.
[baac59c]301 </para>
[5c7f2497]302 </listitem>
303 <listitem>
[baac59c]304 <para>
305 Reducing the number of cores being used on long running, CPU
306 intensive packages may alleviate heat problems.
307 </para>
[5c7f2497]308 </listitem>
[00032e41]309 <listitem>
310 <para>
311 Reducing the number of cores will prevent potential out-of-memory
312 problems on systems that do not have enough memory (or swap)
[8558044]313 when all cores are active. A suggested approach is to limit
314 the number of cores to about one core for each 1.5 GB of
[00032e41]315 combined RAM and swap space.
316 </para>
317 </listitem>
[5c7f2497]318 </itemizedlist>
[ceb3dc7]319
320 </sect2>
321
[55a55f1]322 <sect2 role="configuration">
323 <title>Configuring QtWebEngine</title>
324
325 <sect3 id="qtwebengine-config">
326 <title>Configuration Information</title>
327
328 <para>
329 If you are upgrading from an older minor version of this
330 application, for some webpages to load you may need to
331 clear the <emphasis>browser</emphasis> caches, e.g. for
332 <application>falkon</application> they will be found in
333 <filename class="directory">~/.cache/falkon/</filename>.
334 You will need to do this if the browser starts to render
335 the page and then changes to a blank tab with a message
336 that something went wrong, and a button to Retry. Even
337 after removing the old caches, you may need to retry a
338 few times for each affected tab.
339 </para>
340
[4eb513e]341 <para>
342 If a browser using this package fails to run and when run
343 from a term it reports 'Trace/breakpoint trap' that is
344 probably a kernel configuration issue - there is no need
345 to rebuild QtWebEngine, see the next section, recompile
346 the kernel and reboot to the new kernel.
347 </para>
348
[55a55f1]349 </sect3>
350
351 </sect2>
352
[4eb513e]353 <sect2 role="kernel" id="qtwebengine-kernel">
354 <title>Kernel Configuration</title>
355
356 <para>
[866d8e15]357 This package does not require any of the optional kernel namespace items,
358 but if User namespace is enabled <phrase revision="systemd">(as happens
359 in some unit files, for hardening)</phrase> PID namespace must also be
360 enabled. In that case enable the following options in the kernel
361 configuration and recompile the kernel if necessary:
[4eb513e]362 </para>
363
[cddcdb14]364 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
365 href="qtwebengine-kernel.xml"/>
[4eb513e]366
367 <indexterm zone="qtwebengine qtwebengine-kernel">
368 <primary sortas="d-qtwebengine">qtwebengine</primary>
369 </indexterm>
370 </sect2>
[55a55f1]371
[ceb3dc7]372 <sect2 role="content">
373 <title>Contents</title>
374
375 <segmentedlist>
376 <segtitle>Installed Programs</segtitle>
377 <segtitle>Installed Libraries</segtitle>
378 <segtitle>Installed Directories</segtitle>
379
380 <seglistitem>
381 <seg>
[8558044]382 qtwebengine_convert_dict and
[f806bbf2]383 QtWebEngineProcess (both in $QT6DIR/libexec)
[ceb3dc7]384 </seg>
385 <seg>
[f806bbf2]386 libQt6Pdf.so,
387 libQt6PdfQuick.so,
388 libQt6PdfWidgets.so,
389 libQt6WebEngineCore.so,
390 libQt6WebEngineiQuick.so,
391 libQt6WebEngineQuickDelegatesQml.so, and
392 libQt6WebEngineWidgets.so
[ceb3dc7]393 </seg>
394 <seg>
[f806bbf2]395 $QT6DIR/include/QtPdf,
396 $QT6DIR/include/QtPdfQuick,
397 $QT6DIR/include/QtPdfWidgets,
398 $QT6DIR/include/QtWebEngineCore,
399 $QT6DIR/include/QtWebEngineQuick,
400 $QT6DIR/include/QtWebEngineWidgets,
401 $QT6DIR/qml/QtWebEngine, and
402 $QT6DIR/translations/qtwebengine_locales
[ceb3dc7]403 </seg>
404 </seglistitem>
405 </segmentedlist>
406
407 <variablelist>
408 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
409 <?dbfo list-presentation="list"?>
410 <?dbhtml list-presentation="table"?>
411
412 <varlistentry id="qtwebengine_convert_dict">
413 <term><command>qtwebengine_convert_dict</command></term>
414 <listitem>
415 <para>
416 converts hunspell dictionaries (<literal>.dic</literal>) to chromium
417 format (<literal>.bdic</literal>)
418 </para>
419 <indexterm zone="qtwebengine qtwebengine_convert_dict">
420 <primary sortas="b-qtwebengine_convert_dict">qtwebengine_convert_dict</primary>
421 </indexterm>
422 </listitem>
423 </varlistentry>
424
425 <varlistentry id="QtWebEngineProcess">
426 <term><command>QtWebEngineProcess</command></term>
427 <listitem>
428 <para>
429 is a libexec program which runs a zygote process (one that listens
430 for spawn requests from a master process and will fork itself in
[4c24eb0a]431 response)
[ceb3dc7]432 </para>
433 <indexterm zone="qtwebengine QtWebEngineProcess">
434 <primary sortas="b-QtWebEngineProcess">QtWebEngineProcess</primary>
435 </indexterm>
436 </listitem>
437 </varlistentry>
[f806bbf2]438<!--
[ceb3dc7]439 <varlistentry id="libQtWebEngine-lib">
440 <term><filename class="libraryfile">libQtWebEngine.so</filename></term>
441 <listitem>
442 <para>
[4c24eb0a]443 provides QML types for rendering web content within a QML application
[ceb3dc7]444 </para>
445 <indexterm zone="qtwebengine libQtWebEngine-lib">
446 <primary sortas="c-libQtWebEngine">libQtWebEngine.so</primary>
447 </indexterm>
448 </listitem>
449 </varlistentry>
450
451 <varlistentry id="libQtWebEngineCore">
452 <term><filename class="libraryfile">libQtWebEngineCore.so</filename></term>
453 <listitem>
454 <para>
[4c24eb0a]455 provides public API shared by both QtWebEngine and QtWebEngineWidgets
[ceb3dc7]456 </para>
457 <indexterm zone="qtwebengine libQtWebEngineCore">
458 <primary sortas="c-libQtWebEngineCore">libQtWebEngineCore.so</primary>
459 </indexterm>
460 </listitem>
461 </varlistentry>
462
463 <varlistentry id="libQtWebEngineWidgets">
464 <term><filename class="libraryfile">libQtWebEngineWidgets.so</filename></term>
465 <listitem>
466 <para>
467 provides a web browser engine as well as C++ classes to render and
[4c24eb0a]468 interact with web content
[ceb3dc7]469 </para>
470 <indexterm zone="qtwebengine libQtWebEngineWidgets">
471 <primary sortas="c-libQtWebEngineWidgets">libQtWebEngineWidgets.so</primary>
472 </indexterm>
473 </listitem>
474 </varlistentry>
[f806bbf2]475-->
[ceb3dc7]476 </variablelist>
477 </sect2>
[4c24eb0a]478
[ceb3dc7]479</sect1>
Note: See TracBrowser for help on using the repository browser.