[ceb3dc7] | 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 |
|
---|
[640f4c21] | 7 | <!ENTITY qtwebengine-major "5.9">
|
---|
[ceb3dc7] | 8 | <!ENTITY qtwebengine-download-http "https://download.qt.io/archive/qt/&qtwebengine-major;/&qtwebengine-version;/submodules/qtwebengine-opensource-src-&qtwebengine-version;.tar.xz">
|
---|
| 9 | <!ENTITY qtwebengine-download-ftp " ">
|
---|
[640f4c21] | 10 | <!ENTITY qtwebengine-md5sum "d7ca5049baf5ff69d69ee58d5da392d4">
|
---|
| 11 | <!ENTITY qtwebengine-size "208 MB">
|
---|
| 12 | <!ENTITY qtwebengine-buildsize "3.2 GB (153 MB installed)">
|
---|
[ceb3dc7] | 13 | <!ENTITY qtwebengine-time "43 SBU (on a 4 core processor)">
|
---|
| 14 |
|
---|
| 15 | <!-- Both qmake and ninja will use all available cores, in fact ninja runs n+2
|
---|
| 16 | jobs at a time. Most of our readers do not have more than 4 cores.
|
---|
| 17 | To reduce the number of available cores for measuring the build time:
|
---|
| 18 | # echo 0 > /sys/devices/system/cpu/cpu4/online
|
---|
| 19 | and repeat for each subsequent cpu. Never do this for cpu0.
|
---|
| 20 | You can cat /sys/devices/system/cpu/{online,offline} to check.
|
---|
| 21 | To reinstate the cores after measuring, echo 1 to the same files. -->
|
---|
| 22 | ]>
|
---|
| 23 |
|
---|
| 24 | <sect1 id="qtwebengine" xreflabel="qtwebengine-&qtwebengine-version;">
|
---|
| 25 | <?dbhtml filename="qtwebengine.html"?>
|
---|
| 26 |
|
---|
| 27 | <sect1info>
|
---|
| 28 | <othername>$LastChangedBy$</othername>
|
---|
| 29 | <date>$Date$</date>
|
---|
| 30 | </sect1info>
|
---|
| 31 |
|
---|
| 32 | <title>QtWebEngine-&qtwebengine-version;</title>
|
---|
| 33 |
|
---|
| 34 | <indexterm zone="qtwebengine">
|
---|
| 35 | <primary sortas="a-qtwebengine">qtwebengine</primary>
|
---|
| 36 | </indexterm>
|
---|
| 37 |
|
---|
| 38 | <sect2 role="package">
|
---|
| 39 | <title>Introduction to QtWebEngine</title>
|
---|
| 40 |
|
---|
| 41 | <para>
|
---|
| 42 | <application>QtWebEngine</application> integrates
|
---|
| 43 | <application>chromium</application>"s web capabilities into Qt. It
|
---|
| 44 | ships with its own copy of <xref linkend="ninja"/> which it uses for the
|
---|
| 45 | build, and various copies of libraries from ffmpeg, icu, libvpx, and zlib
|
---|
| 46 | (including libminizip) which have been forked by the
|
---|
| 47 | <application>chromium</application> developers.
|
---|
| 48 | </para>
|
---|
| 49 |
|
---|
| 50 | &lfs80_checked;
|
---|
| 51 | &gcc7_checked;
|
---|
| 52 |
|
---|
| 53 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 54 | <itemizedlist spacing="compact">
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download (HTTP): <ulink url="&qtwebengine-download-http;"/>
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Download (FTP): <ulink url="&qtwebengine-download-ftp;"/>
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Download MD5 sum: &qtwebengine-md5sum;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>
|
---|
| 72 | Download size: &qtwebengine-size;
|
---|
| 73 | </para>
|
---|
| 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>
|
---|
| 77 | Estimated disk space required: &qtwebengine-buildsize;
|
---|
| 78 | </para>
|
---|
| 79 | </listitem>
|
---|
| 80 | <listitem>
|
---|
| 81 | <para>
|
---|
| 82 | Estimated build time: &qtwebengine-time;
|
---|
| 83 | </para>
|
---|
| 84 | </listitem>
|
---|
| 85 | </itemizedlist>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect3">qtwebengine Dependencies</bridgehead>
|
---|
| 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 90 | <!-- the qmake output tends to be misleading. 'khr' is from Mesa -->
|
---|
| 91 | <para role="required">
|
---|
| 92 | <xref linkend="nss"/>,
|
---|
[640f4c21] | 93 | <xref linkend="pulseaudio"/>, and
|
---|
[ceb3dc7] | 94 | <xref linkend='qt5'/>
|
---|
| 95 | </para>
|
---|
| 96 |
|
---|
| 97 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 98 | <note>
|
---|
| 99 | <para>
|
---|
| 100 | If these packages are not installed, the build process will compile and
|
---|
| 101 | install its own (perhaps older) version, with the side effect of
|
---|
| 102 | increasing build and installed disk space and build time.
|
---|
| 103 | </para>
|
---|
| 104 | </note>
|
---|
| 105 |
|
---|
| 106 | <para role="recommended">
|
---|
| 107 | <xref linkend="libwebp"/>,
|
---|
| 108 | <xref linkend="libxslt"/>,
|
---|
[640f4c21] | 109 | <xref linkend="opus"/>, and
|
---|
| 110 | <xref linkend="rust"/>
|
---|
[ceb3dc7] | 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 114 | <para role="optional">
|
---|
| 115 | <xref linkend="libevent"/>,
|
---|
| 116 | <ulink url="https://github.com/open-source-parsers/jsoncpp/releases">jsoncpp</ulink>,
|
---|
| 117 | <ulink url="https://github.com/cisco/libsrtp/releases">libsrtp</ulink>,
|
---|
| 118 | <ulink url="http://google.github.io/snappy/">snappy</ulink>
|
---|
| 119 | </para>
|
---|
| 120 |
|
---|
| 121 | <para condition="html" role="usernotes">
|
---|
| 122 | User Notes: <ulink url="&blfs-wiki;/qtwebengine"/>
|
---|
| 123 | </para>
|
---|
| 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="installation">
|
---|
| 127 | <title>Installation of qtwebengine</title>
|
---|
| 128 |
|
---|
| 129 | <para>
|
---|
| 130 | Install <application>qtwebengine</application> by running the following
|
---|
| 131 | commands:
|
---|
| 132 | </para>
|
---|
| 133 |
|
---|
[640f4c21] | 134 | <screen><userinput>mkdir build &&
|
---|
| 135 | cd build &&
|
---|
[ceb3dc7] | 136 |
|
---|
[640f4c21] | 137 | qmake .. &&
|
---|
| 138 | make</userinput></screen>
|
---|
| 139 | <!--
|
---|
[ceb3dc7] | 140 | <para>
|
---|
| 141 | if you wish to build the HTML documentation, issue:
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <screen><userinput>make docs</userinput></screen>
|
---|
[640f4c21] | 145 | -->
|
---|
[ceb3dc7] | 146 | <para>
|
---|
| 147 | This package does not come with a test suite.
|
---|
| 148 | </para>
|
---|
| 149 |
|
---|
| 150 | <para>
|
---|
| 151 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
[640f4c21] | 154 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 155 | <!--
|
---|
[ceb3dc7] | 156 | <para>
|
---|
| 157 | If you built the HTML documentation, install it with:
|
---|
| 158 | </para>
|
---|
| 159 |
|
---|
| 160 | <screen role="root"><userinput>make install_docs</userinput></screen>
|
---|
[640f4c21] | 161 | -->
|
---|
[ceb3dc7] | 162 | <para>
|
---|
| 163 | Remove references to the build directory from installed library
|
---|
| 164 | dependency (prl) files by running the following
|
---|
| 165 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <screen role="root"><userinput>find $QT5PREFIX/ -name \*.prl \
|
---|
| 169 | -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
---|
| 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | <sect2 role="commands">
|
---|
| 173 | <title>Command Explanations</title>
|
---|
| 174 |
|
---|
| 175 | <para>
|
---|
[640f4c21] | 176 | <command>qmake</command>: This will build the included copy of
|
---|
| 177 | <application>ninja</application> if it is not already installed
|
---|
| 178 | and use it to configure the build. That and the subsequent
|
---|
| 179 | <command>make</command> command will use all available CPU cores.
|
---|
[ceb3dc7] | 180 | </para>
|
---|
| 181 |
|
---|
| 182 | </sect2>
|
---|
| 183 |
|
---|
| 184 | <sect2 role="content">
|
---|
| 185 | <title>Contents</title>
|
---|
| 186 |
|
---|
| 187 | <segmentedlist>
|
---|
| 188 | <segtitle>Installed Programs</segtitle>
|
---|
| 189 | <segtitle>Installed Libraries</segtitle>
|
---|
| 190 | <segtitle>Installed Directories</segtitle>
|
---|
| 191 |
|
---|
| 192 | <seglistitem>
|
---|
| 193 | <seg>
|
---|
[640f4c21] | 194 | qtwebengine_convert_dict and
|
---|
| 195 | QtWebEngineProcess
|
---|
[ceb3dc7] | 196 | </seg>
|
---|
| 197 | <seg>
|
---|
[640f4c21] | 198 | libQt5WebEngineCore.so,
|
---|
| 199 | libQt5WebEngine.so, and
|
---|
| 200 | libQt5WebEngineWidgets.so
|
---|
[ceb3dc7] | 201 | </seg>
|
---|
| 202 | <seg>
|
---|
| 203 | $QT5PREFIX/doc/qtwebengine,
|
---|
| 204 | $QT5PREFIX/includeQtWebEngine,
|
---|
[640f4c21] | 205 | $QT5PREFIX/include/QtWebEngineCore, and
|
---|
[ceb3dc7] | 206 | $QT5PREFIX/include/QtWebEngineWidgets
|
---|
| 207 | </seg>
|
---|
| 208 | </seglistitem>
|
---|
| 209 | </segmentedlist>
|
---|
| 210 |
|
---|
| 211 | <variablelist>
|
---|
| 212 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 213 | <?dbfo list-presentation="list"?>
|
---|
| 214 | <?dbhtml list-presentation="table"?>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="qtwebengine_convert_dict">
|
---|
| 217 | <term><command>qtwebengine_convert_dict</command></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>
|
---|
| 220 | converts hunspell dictionaries (<literal>.dic</literal>) to chromium
|
---|
| 221 | format (<literal>.bdic</literal>)
|
---|
| 222 | </para>
|
---|
| 223 | <indexterm zone="qtwebengine qtwebengine_convert_dict">
|
---|
| 224 | <primary sortas="b-qtwebengine_convert_dict">qtwebengine_convert_dict</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
| 228 |
|
---|
| 229 | <varlistentry id="QtWebEngineProcess">
|
---|
| 230 | <term><command>QtWebEngineProcess</command></term>
|
---|
| 231 | <listitem>
|
---|
| 232 | <para>
|
---|
| 233 | is a libexec program which runs a zygote process (one that listens
|
---|
| 234 | for spawn requests from a master process and will fork itself in
|
---|
| 235 | response).
|
---|
| 236 | </para>
|
---|
| 237 | <indexterm zone="qtwebengine QtWebEngineProcess">
|
---|
| 238 | <primary sortas="b-QtWebEngineProcess">QtWebEngineProcess</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
| 242 |
|
---|
| 243 | <varlistentry id="libQtWebEngine-lib">
|
---|
| 244 | <term><filename class="libraryfile">libQtWebEngine.so</filename></term>
|
---|
| 245 | <listitem>
|
---|
| 246 | <para>
|
---|
| 247 | provides QML types for rendering web content within a QML application.
|
---|
| 248 | </para>
|
---|
| 249 | <indexterm zone="qtwebengine libQtWebEngine-lib">
|
---|
| 250 | <primary sortas="c-libQtWebEngine">libQtWebEngine.so</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="libQtWebEngineCore">
|
---|
| 256 | <term><filename class="libraryfile">libQtWebEngineCore.so</filename></term>
|
---|
| 257 | <listitem>
|
---|
| 258 | <para>
|
---|
| 259 | provides public API shared by both QtWebEngine and QtWebEngineWidgets.
|
---|
| 260 | </para>
|
---|
| 261 | <indexterm zone="qtwebengine libQtWebEngineCore">
|
---|
| 262 | <primary sortas="c-libQtWebEngineCore">libQtWebEngineCore.so</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
| 267 | <varlistentry id="libQtWebEngineWidgets">
|
---|
| 268 | <term><filename class="libraryfile">libQtWebEngineWidgets.so</filename></term>
|
---|
| 269 | <listitem>
|
---|
| 270 | <para>
|
---|
| 271 | provides a web browser engine as well as C++ classes to render and
|
---|
| 272 | interact with web content.
|
---|
| 273 | </para>
|
---|
| 274 | <indexterm zone="qtwebengine libQtWebEngineWidgets">
|
---|
| 275 | <primary sortas="c-libQtWebEngineWidgets">libQtWebEngineWidgets.so</primary>
|
---|
| 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
| 279 |
|
---|
| 280 | </variablelist>
|
---|
| 281 | </sect2>
|
---|
| 282 | </sect1>
|
---|