2017-05-20 02:39:12 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2017-12-17 15:01:39 +08:00
|
|
|
<!ENTITY qtwebengine-major "5.10">
|
2017-05-20 02:39:12 +08:00
|
|
|
<!ENTITY qtwebengine-download-http "https://download.qt.io/archive/qt/&qtwebengine-major;/&qtwebengine-version;/submodules/qtwebengine-opensource-src-&qtwebengine-version;.tar.xz">
|
|
|
|
<!ENTITY qtwebengine-download-ftp " ">
|
2017-12-17 15:01:39 +08:00
|
|
|
<!ENTITY qtwebengine-md5sum "0ea0b32e97911cf80d32b31cf10a6d8b">
|
2017-12-01 06:36:21 +08:00
|
|
|
<!ENTITY qtwebengine-size "208 MB">
|
2017-12-17 15:01:39 +08:00
|
|
|
<!ENTITY qtwebengine-buildsize "3.3 GB (144 MB installed)">
|
|
|
|
<!ENTITY qtwebengine-time "95 SBU (using 4 cores)">
|
2017-05-20 02:39:12 +08:00
|
|
|
|
2017-10-12 05:58:50 +08:00
|
|
|
<!-- Both qmake and ninja will use all available cores, in fact ninja runs n+2
|
2017-05-20 02:39:12 +08:00
|
|
|
jobs at a time. Most of our readers do not have more than 4 cores.
|
|
|
|
To reduce the number of available cores for measuring the build time:
|
|
|
|
# echo 0 > /sys/devices/system/cpu/cpu4/online
|
|
|
|
and repeat for each subsequent cpu. Never do this for cpu0.
|
|
|
|
You can cat /sys/devices/system/cpu/{online,offline} to check.
|
|
|
|
To reinstate the cores after measuring, echo 1 to the same files. -->
|
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="qtwebengine" xreflabel="qtwebengine-&qtwebengine-version;">
|
|
|
|
<?dbhtml filename="qtwebengine.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>QtWebEngine-&qtwebengine-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="qtwebengine">
|
|
|
|
<primary sortas="a-qtwebengine">qtwebengine</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to QtWebEngine</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<application>QtWebEngine</application> integrates
|
|
|
|
<application>chromium</application>"s web capabilities into Qt. It
|
2017-10-16 05:22:27 +08:00
|
|
|
ships with its own copy of ninja which it uses for the build if it cannot
|
|
|
|
find a system copy, and various copies of libraries from ffmpeg, icu,
|
|
|
|
libvpx, and zlib (including libminizip) which have been forked by the
|
2017-05-20 02:39:12 +08:00
|
|
|
<application>chromium</application> developers.
|
|
|
|
</para>
|
|
|
|
|
2017-08-26 02:57:45 +08:00
|
|
|
&lfs81_checked;
|
2017-10-12 05:58:50 +08:00
|
|
|
|
|
|
|
<note><para>Both qmake and ninja will use all available cores when
|
|
|
|
building. There is no conveninet way to control the number of cores
|
|
|
|
used during the build.</para></note>
|
2017-05-20 02:39:12 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&qtwebengine-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&qtwebengine-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &qtwebengine-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &qtwebengine-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &qtwebengine-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &qtwebengine-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">qtwebengine Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<!-- the qmake output tends to be misleading. 'khr' is from Mesa -->
|
|
|
|
<para role="required">
|
|
|
|
<xref linkend="nss"/>,
|
2017-06-01 23:30:51 +08:00
|
|
|
<xref linkend="pulseaudio"/>, and
|
2017-05-20 02:39:12 +08:00
|
|
|
<xref linkend='qt5'/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
If these packages are not installed, the build process will compile and
|
|
|
|
install its own (perhaps older) version, with the side effect of
|
|
|
|
increasing build and installed disk space and build time.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="libwebp"/>,
|
2017-11-13 16:24:14 +08:00
|
|
|
<xref linkend="libxslt"/>, and
|
|
|
|
<xref linkend="opus"/>
|
2017-05-20 02:39:12 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="libevent"/>,
|
|
|
|
<ulink url="https://github.com/open-source-parsers/jsoncpp/releases">jsoncpp</ulink>,
|
|
|
|
<ulink url="https://github.com/cisco/libsrtp/releases">libsrtp</ulink>,
|
|
|
|
<ulink url="http://google.github.io/snappy/">snappy</ulink>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/qtwebengine"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of qtwebengine</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install <application>qtwebengine</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2017-06-01 23:30:51 +08:00
|
|
|
<screen><userinput>mkdir build &&
|
|
|
|
cd build &&
|
2017-05-20 02:39:12 +08:00
|
|
|
|
2017-06-01 23:30:51 +08:00
|
|
|
qmake .. &&
|
|
|
|
make</userinput></screen>
|
|
|
|
<!--
|
2017-05-20 02:39:12 +08:00
|
|
|
<para>
|
|
|
|
if you wish to build the HTML documentation, issue:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>make docs</userinput></screen>
|
2017-06-01 23:30:51 +08:00
|
|
|
-->
|
2017-05-20 02:39:12 +08:00
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2017-06-01 23:30:51 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
<!--
|
2017-05-20 02:39:12 +08:00
|
|
|
<para>
|
|
|
|
If you built the HTML documentation, install it with:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install_docs</userinput></screen>
|
2017-06-01 23:30:51 +08:00
|
|
|
-->
|
2017-05-20 02:39:12 +08:00
|
|
|
<para>
|
|
|
|
Remove references to the build directory from installed library
|
|
|
|
dependency (prl) files by running the following
|
|
|
|
commands as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2017-10-12 05:58:50 +08:00
|
|
|
<screen role="root"><userinput>find $QT5DIR/ -name \*.prl \
|
2017-05-20 02:39:12 +08:00
|
|
|
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para>
|
2017-06-01 23:30:51 +08:00
|
|
|
<command>qmake</command>: This will build the included copy of
|
|
|
|
<application>ninja</application> if it is not already installed
|
|
|
|
and use it to configure the build. That and the subsequent
|
|
|
|
<command>make</command> command will use all available CPU cores.
|
2017-05-20 02:39:12 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2017-06-01 23:30:51 +08:00
|
|
|
qtwebengine_convert_dict and
|
|
|
|
QtWebEngineProcess
|
2017-05-20 02:39:12 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2017-06-01 23:30:51 +08:00
|
|
|
libQt5WebEngineCore.so,
|
|
|
|
libQt5WebEngine.so, and
|
|
|
|
libQt5WebEngineWidgets.so
|
2017-05-20 02:39:12 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
$QT5PREFIX/doc/qtwebengine,
|
|
|
|
$QT5PREFIX/includeQtWebEngine,
|
2017-06-01 23:30:51 +08:00
|
|
|
$QT5PREFIX/include/QtWebEngineCore, and
|
2017-05-20 02:39:12 +08:00
|
|
|
$QT5PREFIX/include/QtWebEngineWidgets
|
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="qtwebengine_convert_dict">
|
|
|
|
<term><command>qtwebengine_convert_dict</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
converts hunspell dictionaries (<literal>.dic</literal>) to chromium
|
|
|
|
format (<literal>.bdic</literal>)
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qtwebengine qtwebengine_convert_dict">
|
|
|
|
<primary sortas="b-qtwebengine_convert_dict">qtwebengine_convert_dict</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="QtWebEngineProcess">
|
|
|
|
<term><command>QtWebEngineProcess</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a libexec program which runs a zygote process (one that listens
|
|
|
|
for spawn requests from a master process and will fork itself in
|
|
|
|
response).
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qtwebengine QtWebEngineProcess">
|
|
|
|
<primary sortas="b-QtWebEngineProcess">QtWebEngineProcess</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libQtWebEngine-lib">
|
|
|
|
<term><filename class="libraryfile">libQtWebEngine.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
provides QML types for rendering web content within a QML application.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qtwebengine libQtWebEngine-lib">
|
|
|
|
<primary sortas="c-libQtWebEngine">libQtWebEngine.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libQtWebEngineCore">
|
|
|
|
<term><filename class="libraryfile">libQtWebEngineCore.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
provides public API shared by both QtWebEngine and QtWebEngineWidgets.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qtwebengine libQtWebEngineCore">
|
|
|
|
<primary sortas="c-libQtWebEngineCore">libQtWebEngineCore.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libQtWebEngineWidgets">
|
|
|
|
<term><filename class="libraryfile">libQtWebEngineWidgets.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
provides a web browser engine as well as C++ classes to render and
|
|
|
|
interact with web content.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="qtwebengine libQtWebEngineWidgets">
|
|
|
|
<primary sortas="c-libQtWebEngineWidgets">libQtWebEngineWidgets.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|