source: x/lib/qtwebengine.xml@ fc0828f

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since fc0828f was fc0828f, checked in by Ken Moffat <ken@…>, 3 years ago

Add cautions to the QtWebEngine and Falkon pages.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24352 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 16.1 KB
Line 
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
7 <!ENTITY qtwebengine-major "5.15">
8 <!ENTITY qtwebengine-download-http "https://download.qt.io/archive/qt/&qtwebengine-major;/&qtwebengine-version;/submodules/qtwebengine-everywhere-src-&qtwebengine-version;.tar.xz">
9 <!ENTITY qtwebengine-download-ftp " ">
10 <!ENTITY qtwebengine-md5sum "c88cbe3158feb20c4feb3d54262feb23">
11 <!ENTITY qtwebengine-size "267 MB">
12 <!ENTITY qtwebengine-buildsize "4.4 GB (145 MB installed)">
13 <!ENTITY qtwebengine-time "64 SBU (Using parallelism=4)">
14]>
15
16<sect1 id="qtwebengine" xreflabel="qtwebengine-&qtwebengine-version;">
17 <?dbhtml filename="qtwebengine.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>QtWebEngine-&qtwebengine-version;</title>
25
26 <indexterm zone="qtwebengine">
27 <primary sortas="a-qtwebengine">qtwebengine</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to QtWebEngine</title>
32
33 <para>
34 <application>QtWebEngine</application> integrates
35 <application>chromium</application>'s web capabilities into Qt. It
36 ships with its own copy of ninja which it uses for the build if it cannot
37 find a system copy, and various copies of libraries from ffmpeg, icu,
38 libvpx, and zlib (including libminizip) which have been forked by the
39 <application>chromium</application> developers.
40 </para>
41
42 <caution>
43 <para>
44 QtWebEngine uses a forked copy of chromium, and is therefore vulnerable
45 to many issues found there. The Qt developers have always preferred to
46 make releases at the same time as the rest of Qt (rather than adding
47 emergency fixes). Now that they are keen to move to Qt6, the 5.15.3 and
48 later Qt-5.15 releases are initially only available to paying customers.
49 QtWebEngine is something of an exception because of its LGPL licence,
50 but the source in git and its forked submodules is not neatly packaged.
51 Until someone is able to build this on BLFS, using this package and
52 browsers which use it leaves you open you to unpatched security
53 vulnerabilities.
54 </para>
55 </caution>
56
57 &lfs101_checked;
58
59 <note>
60 <para>
61 By default, ninja will use all online CPUs +2 (if at least 4 exist),
62 even if they are not available to the current task because the build
63 terminal has been restricted with 'taskset'. To work around this, see
64 the Command Explanations below.
65 </para>
66
67 <para>
68 Unusually, the shipped GN build system (used to create the Ninja files)
69 requires a static <filename class="libraryfile">libstdc++.a</filename>
70 although the installed libraries correctly use the shared version. If
71 that static library is not present, the build will fail quite quickly.
72 Please note that if you try to build webengine as part of
73 <application>Qt</application> and the static library is not available,
74 that build will either complete without installing webengine, or else
75 fail during the install (both variants have been observed in 5.12.0).
76 </para>
77 </note>
78
79 <bridgehead renderas="sect3">Package Information</bridgehead>
80 <itemizedlist spacing="compact">
81 <listitem>
82 <para>
83 Download (HTTP): <ulink url="&qtwebengine-download-http;"/>
84 </para>
85 </listitem>
86 <listitem>
87 <para>
88 Download (FTP): <ulink url="&qtwebengine-download-ftp;"/>
89 </para>
90 </listitem>
91 <listitem>
92 <para>
93 Download MD5 sum: &qtwebengine-md5sum;
94 </para>
95 </listitem>
96 <listitem>
97 <para>
98 Download size: &qtwebengine-size;
99 </para>
100 </listitem>
101 <listitem>
102 <para>
103 Estimated disk space required: &qtwebengine-buildsize;
104 </para>
105 </listitem>
106 <listitem>
107 <para>
108 Estimated build time: &qtwebengine-time;
109 </para>
110 </listitem>
111 </itemizedlist>
112
113 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
114 <itemizedlist spacing="compact">
115 <listitem>
116 <para>
117 Required patch:
118 <ulink url="&patch-root;/qtwebengine-everywhere-src-&qtwebengine-version;-ICU68-2.patch"/>
119 </para>
120 </listitem>
121 <listitem>
122 <para>
123 Required patch:
124 <ulink url="&patch-root;/qtwebengine-everywhere-src-&qtwebengine-version;-glibc233-1.patch"/>
125 </para>
126 </listitem>
127 </itemizedlist>
128
129 <bridgehead renderas="sect3">qtwebengine Dependencies</bridgehead>
130
131 <bridgehead renderas="sect4">Required</bridgehead>
132 <!-- the qmake output tends to be misleading. 'khr' is from Mesa -->
133 <para role="required">
134 <xref linkend="nss"/>,
135 <xref linkend="python2"/>, and
136 <xref linkend='qt5'/>
137 </para>
138
139 <bridgehead renderas="sect4">Recommended</bridgehead>
140 <note>
141 <para>
142 If these packages are not installed, the build process will compile and
143 install its own (perhaps older) version, with the side effect of
144 increasing build and installed disk space and build time.
145 </para>
146 </note>
147
148 <para role="recommended">
149 either <xref linkend="alsa-lib"/> or
150 <xref linkend="pulseaudio"/> (or both),
151 <xref linkend="ffmpeg"/>,
152 <xref linkend="icu"/>,
153 <xref linkend="libwebp"/>,
154 <xref linkend="libxslt"/>, and
155 <xref linkend="opus"/>
156 </para>
157
158 <bridgehead renderas="sect4">Optional</bridgehead>
159 <para role="optional">
160 <xref linkend="libevent"/>,
161 <xref linkend="poppler"/>,
162 <ulink url="https://github.com/open-source-parsers/jsoncpp/releases">jsoncpp</ulink>,
163 <ulink url="https://github.com/cisco/libsrtp/releases">libsrtp</ulink>,
164 <ulink url="http://google.github.io/snappy/">snappy</ulink>
165 </para>
166
167 <para condition="html" role="usernotes">
168 User Notes: <ulink url="&blfs-wiki;/qtwebengine"/>
169 </para>
170 </sect2>
171
172 <sect2 role="installation">
173 <title>Installation of qtwebengine</title>
174
175 <para>
176 First, ensure that the local headers are available when not building as
177 part of the complete <xref linkend="qt5"/>:
178 </para>
179
180<screen><userinput>find -type f -name "*.pr[io]" |
181 xargs sed -i -e 's|INCLUDEPATH += |&amp;$$QTWEBENGINE_ROOT/include |'</userinput></screen>
182
183 <para>
184 Next, apply a patch that fixes the build with system ICU version 68.1.
185 </para>
186
187<screen><userinput remap="pre">patch -Np1 -i ../qtwebengine-everywhere-src-&qtwebengine-version;-ICU68-2.patch</userinput></screen>
188
189 <para>
190 Now apply a patch to fix an issue introduced by glibc-2.33.
191 </para>
192
193<screen><userinput remap="pre">patch -Np1 -i ../qtwebengine-everywhere-src-&qtwebengine-version;-glibc233-1.patch</userinput></screen>
194
195 <para>
196 Next, allow the pulseaudio library to be linked at build time, instead
197 of run time. This also prevents an issue with newer pulseaudio:
198 </para>
199
200<screen><userinput>sed -e '/link_pulseaudio/s/false/true/' \
201 -i src/3rdparty/chromium/media/media_options.gni</userinput></screen>
202
203 <para>
204 Finally, fix a change in the build system which allows its developers to
205 pass e.g. -j20 to make (for quick tests of some areas) but breaks the
206 build with LFS's use of the NINJAJOBS environment variable:
207 </para>
208
209<!-- editors: See thread at
210http://lists.linuxfromscratch.org/pipermail/blfs-dev/2019-December/036996.html
211et.seq, particularly 037002.html which shows the commit near the end. -->
212
213<screen><userinput>sed -i 's/NINJAJOBS/NINJA_JOBS/' src/core/gn_run.pro</userinput></screen>
214
215 <para>
216 If an older version of the package's main library has been installed,
217 when the package is built separately it will link to that in preference
218 to its own not-yet-installed version, and fail because of missing symbols.
219 Prevent that by, as the <systemitem class="username">root</systemitem>
220 user, moving the symlink out of the way:
221 </para>
222
223<screen role="root"><userinput>if [ -e ${QT5DIR}/lib/libQt5WebEngineCore.so ]; then
224 mv -v ${QT5DIR}/lib/libQt5WebEngineCore.so{,.old}
225fi</userinput></screen>
226
227 <para>
228 Install <application>qtwebengine</application> by running the following
229 commands:
230 </para>
231
232<screen><userinput>mkdir build &amp;&amp;
233cd build &amp;&amp;
234
235qmake .. -- -system-ffmpeg -webengine-icu &amp;&amp;
236make</userinput></screen>
237
238<!--
239 <para>
240 if you wish to build the HTML documentation, issue:
241 </para>
242
243<screen><userinput>make docs</userinput></screen>
244-->
245 <para>
246 This package does not come with a test suite.
247 </para>
248
249 <para>
250 Now, as the <systemitem class="username">root</systemitem> user:
251 </para>
252
253<screen role="root"><userinput>make install</userinput></screen>
254 <!-- EDITORS NOTE: If you are updating this package, use INSTALL_ROOT=
255 instead of DESTDIR= -->
256<!--
257 <para>
258 If you built the HTML documentation, install it with:
259 </para>
260
261<screen role="root"><userinput>make install_docs</userinput></screen>
262-->
263 <para>
264 Remove references to the build directory from installed library
265 dependency (prl) files by running the following
266 commands as the <systemitem class="username">root</systemitem> user:
267 </para>
268
269<screen role="root"><userinput>find $QT5DIR/ -name \*.prl \
270 -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
271 </sect2>
272
273 <sect2 role="commands">
274 <title>Command Explanations</title>
275
276 <para>
277 <command>qmake</command>: This will build the included copy of
278 <application>ninja</application> if it is not already installed
279 and use it to configure the build.
280 </para>
281
282 <para>
283 <command>-- -system-ffmpeg -webengine-icu</command>: If any options are
284 passed to qmake they must come after '--' which must follow '..' that points
285 to the main directory. The options here cause it to use system ffmpeg and
286 system icu. If built as part of full Qt5, the system icu is automatically
287 used (only) by Qt5Core if it is available, but unless this option is used
288 webengine will always use its shipped copy of icu, adding time and space
289 to the build.
290 </para>
291
292 <!--
293 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
294 href="../../xincludes/SIOCGSTAMP.xml"/>
295 -->
296
297 <para>
298 <option>NINJAJOBS=4 make</option>: If you patched system ninja in LFS to
299 recognize the NINJAJOBS environment variable, this command will run system
300 ninja with the specified number of jobs (i.e. 4).
301 There are several reasons why you might want to do this:
302 </para>
303
304 <itemizedlist>
305 <listitem>
306 <para>
307 Building on a subset of CPUs allows measuring the build time
308 for that number of processors or to run other CPU-intensive tasks on
309 other cores.
310 </para>
311 </listitem>
312 <listitem>
313 <para>
314 Improving the build speed on a less-well endowed 4-core machine.
315 On a machine with a powerful CPU and plenty of RAM, running N+2
316 jobs (the ninja default for 4+ cores) for the large working sets
317 of the C++ compiles in this package is typically only marginally
318 faster than running N jobs at a time. But for a machine with less
319 memory it can be much slower.
320 </para>
321 </listitem>
322 <listitem>
323 <para>
324 Reducing the number of cores being used on long running, CPU
325 intensive packages may alleviate heat problems.
326 </para>
327 </listitem>
328 </itemizedlist>
329
330 </sect2>
331
332 <sect2 role="configuration">
333 <title>Configuring QtWebEngine</title>
334
335 <sect3 id="qtwebengine-config">
336 <title>Configuration Information</title>
337
338 <para>
339 If you are upgrading from an older minor version of this
340 application, for some webpages to load you may need to
341 clear the <emphasis>browser</emphasis> caches, e.g. for
342 <application>falkon</application> they will be found in
343 <filename class="directory">~/.cache/falkon/</filename>.
344 You will need to do this if the browser starts to render
345 the page and then changes to a blank tab with a message
346 that something went wrong, and a button to Retry. Even
347 after removing the old caches, you may need to retry a
348 few times for each affected tab.
349 </para>
350
351 </sect3>
352
353 </sect2>
354
355
356 <sect2 role="content">
357 <title>Contents</title>
358
359 <segmentedlist>
360 <segtitle>Installed Programs</segtitle>
361 <segtitle>Installed Libraries</segtitle>
362 <segtitle>Installed Directories</segtitle>
363
364 <seglistitem>
365 <seg>
366 qtwebengine_convert_dict and
367 QtWebEngineProcess (in $QT5DIR/libexec)
368 </seg>
369 <seg>
370 libQt5Pdf.so,
371 libQt5PdfWidgets.so,
372 libQt5WebEngineCore.so,
373 libQt5WebEngine.so, and
374 libQt5WebEngineWidgets.so
375 </seg>
376 <seg>
377 $QT5DIR/include/QtPdf,
378 $QT5DIR/include/QtPdfWidgets,
379 $QT5DIR/include/QtWebEngine,
380 $QT5DIR/include/QtWebEngineCore,
381 $QT5DIR/include/QtWebEngineWidgets,
382 $QT5DIR/qml/QtWebEngine, and
383 $QT5DIR/translations/qtwebengine_locales
384 </seg>
385 </seglistitem>
386 </segmentedlist>
387
388 <variablelist>
389 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
390 <?dbfo list-presentation="list"?>
391 <?dbhtml list-presentation="table"?>
392
393 <varlistentry id="qtwebengine_convert_dict">
394 <term><command>qtwebengine_convert_dict</command></term>
395 <listitem>
396 <para>
397 converts hunspell dictionaries (<literal>.dic</literal>) to chromium
398 format (<literal>.bdic</literal>)
399 </para>
400 <indexterm zone="qtwebengine qtwebengine_convert_dict">
401 <primary sortas="b-qtwebengine_convert_dict">qtwebengine_convert_dict</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
406 <varlistentry id="QtWebEngineProcess">
407 <term><command>QtWebEngineProcess</command></term>
408 <listitem>
409 <para>
410 is a libexec program which runs a zygote process (one that listens
411 for spawn requests from a master process and will fork itself in
412 response)
413 </para>
414 <indexterm zone="qtwebengine QtWebEngineProcess">
415 <primary sortas="b-QtWebEngineProcess">QtWebEngineProcess</primary>
416 </indexterm>
417 </listitem>
418 </varlistentry>
419
420 <varlistentry id="libQtWebEngine-lib">
421 <term><filename class="libraryfile">libQtWebEngine.so</filename></term>
422 <listitem>
423 <para>
424 provides QML types for rendering web content within a QML application
425 </para>
426 <indexterm zone="qtwebengine libQtWebEngine-lib">
427 <primary sortas="c-libQtWebEngine">libQtWebEngine.so</primary>
428 </indexterm>
429 </listitem>
430 </varlistentry>
431
432 <varlistentry id="libQtWebEngineCore">
433 <term><filename class="libraryfile">libQtWebEngineCore.so</filename></term>
434 <listitem>
435 <para>
436 provides public API shared by both QtWebEngine and QtWebEngineWidgets
437 </para>
438 <indexterm zone="qtwebengine libQtWebEngineCore">
439 <primary sortas="c-libQtWebEngineCore">libQtWebEngineCore.so</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
444 <varlistentry id="libQtWebEngineWidgets">
445 <term><filename class="libraryfile">libQtWebEngineWidgets.so</filename></term>
446 <listitem>
447 <para>
448 provides a web browser engine as well as C++ classes to render and
449 interact with web content
450 </para>
451 <indexterm zone="qtwebengine libQtWebEngineWidgets">
452 <primary sortas="c-libQtWebEngineWidgets">libQtWebEngineWidgets.so</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
457 </variablelist>
458 </sect2>
459
460</sect1>
Note: See TracBrowser for help on using the repository browser.