source: x/lib/qtwebengine.xml@ 55f7457

12.2 gimp3 lazarus trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since 55f7457 was 7ef2fd34, checked in by Bruce Dubbs <bdubbs@…>, 3 months ago

Update to qt6-6.7.2 and qtwebengine-6.7.2.
Also do some spacing changes in uchardet, mpv, and intel-media

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