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