source: x/lib/qtwebengine.xml@ 85e652d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.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 85e652d was ec42249, checked in by Ken Moffat <ken@…>, 4 years ago

Fix qtwebengine for ICU-65.

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

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