source: x/lib/qtwebengine.xml@ 73c17c25

lazarus trunk
Last change on this file since 73c17c25 was 73c17c25, checked in by Bruce Dubbs <bdubbs@…>, 3 months ago

Update to qt6-6.6.3 and qtwebengine-6.6.3.

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