[099ebaf] | 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 |
|
---|
[4f1a8e5] | 7 | <!ENTITY webkitgtk-download-http
|
---|
[9ce0afc2] | 8 | "http://webkitgtk.org/releases/webkit-&webkitgtk-version;.tar.xz">
|
---|
[099ebaf] | 9 | <!ENTITY webkitgtk-download-ftp " ">
|
---|
[50f6ac1] | 10 | <!ENTITY webkitgtk-md5sum "f2f01b1fdc7262a2eede81ebed0970b2">
|
---|
[26047b6e] | 11 | <!ENTITY webkitgtk-size "7.6 MB">
|
---|
[f3eb6d99] | 12 | <!ENTITY webkitgtk-buildsize "566 MB (43 MB installed)">
|
---|
[d57804d] | 13 | <!ENTITY webkitgtk-time "28 SBU">
|
---|
[099ebaf] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="webkitgtk" xreflabel="WebKitGTK+-&webkitgtk-version;">
|
---|
| 17 | <?dbhtml filename="webkitgtk.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>WebKitGTK+-&webkitgtk-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="webkitgtk">
|
---|
| 27 | <primary sortas="a-WebKitGTK+">WebKitGTK+</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to WebKitGTK+</title>
|
---|
| 32 |
|
---|
[4f1a8e5] | 33 | <para>
|
---|
| 34 | The <application>WebKitGTK+</application> package is the port of the
|
---|
| 35 | portable web rendering engine <application>WebKit</application> to the
|
---|
| 36 | <application>GTK+</application> platform.
|
---|
| 37 | </para>
|
---|
[099ebaf] | 38 |
|
---|
[4c77a949] | 39 | &lfs71_checked;
|
---|
[18d8af99] | 40 |
|
---|
[099ebaf] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[4f1a8e5] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&webkitgtk-download-http;"/>
|
---|
| 46 | </para>
|
---|
[099ebaf] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[4f1a8e5] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&webkitgtk-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[099ebaf] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[4f1a8e5] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &webkitgtk-md5sum;
|
---|
| 56 | </para>
|
---|
[099ebaf] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[4f1a8e5] | 59 | <para>
|
---|
| 60 | Download size: &webkitgtk-size;
|
---|
| 61 | </para>
|
---|
[099ebaf] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[4f1a8e5] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &webkitgtk-buildsize;
|
---|
| 66 | </para>
|
---|
[099ebaf] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[4f1a8e5] | 69 | <para>
|
---|
| 70 | Estimated build time: &webkitgtk-time;
|
---|
| 71 | </para>
|
---|
[099ebaf] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect3">WebKitGTK+ Dependencies</bridgehead>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[4f1a8e5] | 78 | <para role="required">
|
---|
| 79 | <xref linkend="gperf"/>,
|
---|
| 80 | <xref linkend="icu"/>,
|
---|
| 81 | <xref linkend="libxslt"/>,
|
---|
[4ac4aea] | 82 | <xref linkend="gtk2"/> or <xref linkend="gtk3"/>
|
---|
| 83 | (<command>configure</command> defaults to using gtk+-3),
|
---|
[4f1a8e5] | 84 | <xref linkend="libsoup"/>,
|
---|
| 85 | <xref linkend="gst-plugins-base"/>,
|
---|
[11daca34] | 86 | <xref linkend="geoclue"/>,
|
---|
[4f1a8e5] | 87 | <xref linkend="which"/> and
|
---|
| 88 | <xref linkend="sqlite"/>.
|
---|
| 89 | </para>
|
---|
[57aae596] | 90 |
|
---|
[4c2be438] | 91 | <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
|
---|
| 92 | <para role="optional">
|
---|
| 93 | <xref linkend="gobject-introspection"/>
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
[099ebaf] | 96 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[4f1a8e5] | 97 | <para role="optional">
|
---|
| 98 | <xref linkend="curl"/>,
|
---|
| 99 | <xref linkend="enchant"/>,
|
---|
| 100 | <xref linkend="gtk-doc"/> and
|
---|
| 101 | <ulink url="http://xsltml.sourceforge.net/">MathML</ulink>.
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
| 104 | <para condition="html" role="usernotes">
|
---|
| 105 | User Notes: <ulink url="&blfs-wiki;/webkitgtk"/>
|
---|
| 106 | </para>
|
---|
[099ebaf] | 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 role="installation">
|
---|
| 110 | <title>Installation of WebKitGTK+</title>
|
---|
| 111 |
|
---|
[eedd7058] | 112 | <para>
|
---|
[826ddf4] | 113 | If you have <application>pkg-config 0.23</application> or older installed
|
---|
[eedd7058] | 114 | fix a bug in the configure script that will stop it detecting
|
---|
| 115 | <application>Gstreamer</application> correctly:
|
---|
| 116 | </para>
|
---|
| 117 | <!-- https://bugs.webkit.org/show_bug.cgi?id=82580 -->
|
---|
| 118 |
|
---|
| 119 | <screen><userinput>sed -i 's#=GST#=$GST#' configure</userinput></screen>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | If you have not installed <xref linkend="gtk-doc"/>, fix a bug that will
|
---|
| 123 | cause <command>make install</command> to fail:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <screen><userinput>sed -i '/generate-gtkdoc --rebase/s:^:# :' GNUmakefile.in</userinput></screen>
|
---|
| 127 |
|
---|
[4f1a8e5] | 128 | <para>
|
---|
[4ac4aea] | 129 | <application>WebKit</application> takes a long time to compile, so if you
|
---|
| 130 | have a multicore CPU it can be useful to speed up the build by running
|
---|
| 131 | make with multiple jobs.
|
---|
[4f1a8e5] | 132 | </para>
|
---|
[39ed0a6e] | 133 |
|
---|
[4f1a8e5] | 134 | <para>
|
---|
[50f6ac1] | 135 | If you want to run make with just one core, install
|
---|
[4ac4aea] | 136 | <application>WebKit</application> by running the following commands:
|
---|
[4f1a8e5] | 137 | </para>
|
---|
[099ebaf] | 138 |
|
---|
[4ac4aea] | 139 | <screen><userinput>./configure --prefix=/usr --enable-introspection &&
|
---|
[099ebaf] | 140 | make</userinput></screen>
|
---|
| 141 |
|
---|
[4ac4aea] | 142 | <para>
|
---|
[50f6ac1] | 143 | If you have a multicore CPU and want to run make with multiple jobs
|
---|
| 144 | running in parallel, install <application>WebKit</application> with the
|
---|
| 145 | following commands:
|
---|
[4ac4aea] | 146 | </para>
|
---|
| 147 |
|
---|
| 148 | <screen><userinput>./configure --prefix=/usr --enable-introspection &&
|
---|
[50f6ac1] | 149 | error_count=0
|
---|
[4ac4aea] | 150 | until make -j$(getconf _NPROCESSORS_ONLN)
|
---|
[50f6ac1] | 151 | do
|
---|
| 152 | if (( $((error_count++)) > 4 ))
|
---|
| 153 | then
|
---|
| 154 | echo Too Many Errors
|
---|
| 155 | break
|
---|
| 156 | fi
|
---|
| 157 | done
|
---|
| 158 | unset error_count</userinput></screen>
|
---|
[4ac4aea] | 159 |
|
---|
| 160 | <para>
|
---|
| 161 | This package does not have a working testsuite.
|
---|
| 162 | </para>
|
---|
| 163 | <!--
|
---|
[4f1a8e5] | 164 | <para>
|
---|
| 165 | To test the results, issue: <command>make check</command> (you must be in
|
---|
| 166 | an xterm or similar to do this, because it launches some windows).
|
---|
[4ac4aea] | 167 | Requires <xref linkend="pygobject2"/>.
|
---|
[4f1a8e5] | 168 | </para>
|
---|
[4ac4aea] | 169 | -->
|
---|
[099ebaf] | 170 |
|
---|
[4f1a8e5] | 171 | <para>
|
---|
| 172 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 173 | </para>
|
---|
[099ebaf] | 174 |
|
---|
| 175 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 176 | </sect2>
|
---|
| 177 |
|
---|
| 178 | <sect2 role="commands">
|
---|
| 179 | <title>Command Explanations</title>
|
---|
| 180 |
|
---|
[4ac4aea] | 181 | <para>
|
---|
| 182 | <option>--enable-introspection</option>: This option enables support for
|
---|
| 183 | <application>Gobject-Introspection</application> and is required for a
|
---|
[50f6ac1] | 184 | <application>GNOME</application> desktop. If you don't have
|
---|
| 185 | <application>Gobject-Introspection</application> installed and don't want
|
---|
| 186 | to install <application>GNOME</application> remove this option.
|
---|
[4ac4aea] | 187 | </para>
|
---|
| 188 |
|
---|
| 189 | <para>
|
---|
[50f6ac1] | 190 | <command>error_count=0; until make ...</command>: Sadly
|
---|
[4ac4aea] | 191 | there are race conditions in the makefiles that will cause the build to
|
---|
| 192 | fail if you run make with multiple jobs. This simple hack works around
|
---|
[50f6ac1] | 193 | that problem by using <command>until</command> to keep running
|
---|
| 194 | <command>make</command> until it succeeds. The variable
|
---|
| 195 | <envar>error_count</envar> is incremented each time an error occurs and is
|
---|
| 196 | checked to ensure that no more than 5 errors occur. This is so that if an
|
---|
| 197 | error occurs that is <emphasis>not</emphasis> due to a race condition then
|
---|
| 198 | it will not keep repeating <command>make</command> forever.
|
---|
| 199 | <command>$(getconf _NPROCESSORS_ONLN)</command> prints the number of cores
|
---|
| 200 | your computer seems to have. If you would prefer, you can use any positive
|
---|
| 201 | integer such as 4.
|
---|
[4ac4aea] | 202 | </para>
|
---|
| 203 |
|
---|
[4f1a8e5] | 204 | <para>
|
---|
| 205 | <option>--with-gtk=2.0</option>: This option forces
|
---|
| 206 | <application>Webkit</application> to compile against
|
---|
| 207 | <application>Gtk+-2</application>, even if
|
---|
| 208 | <application>Gtk+-3</application> is also installed. With
|
---|
| 209 | <application>Gtk+-2</application>, everything
|
---|
| 210 | <application>Webkit</application> installs is suffixed with 1.0. When it
|
---|
| 211 | is compiled against <application>Gtk+-3</application> everything it
|
---|
| 212 | installs is suffixed with 3.0. Both versions can be installed alongside
|
---|
| 213 | one another with no namespace conflicts.
|
---|
| 214 | </para>
|
---|
| 215 |
|
---|
[e05cd03f] | 216 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[099ebaf] | 217 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
| 218 | </sect2>
|
---|
| 219 |
|
---|
| 220 | <sect2 role="content">
|
---|
| 221 | <title>Contents</title>
|
---|
| 222 |
|
---|
| 223 | <segmentedlist>
|
---|
| 224 | <segtitle>Installed Program</segtitle>
|
---|
| 225 | <segtitle>Installed Library</segtitle>
|
---|
| 226 | <segtitle>Installed Directories</segtitle>
|
---|
| 227 |
|
---|
| 228 | <seglistitem>
|
---|
[4f1a8e5] | 229 | <seg>
|
---|
[4ac4aea] | 230 | jsc-1 or jsc-3 (depending on whether you installed the
|
---|
| 231 | <application>Gtk+-2</application> or <application>Gtk+-3</application>
|
---|
| 232 | version of <application>WebKit</application>).
|
---|
[4f1a8e5] | 233 | </seg>
|
---|
| 234 | <seg>
|
---|
| 235 | libwebkit-1.0.so and libjavascriptcoregtk-1.0.so or libwebkit-3.0.so
|
---|
| 236 | and libjavascriptcoregtk-3.0.so (depending on whether you installed
|
---|
[4ac4aea] | 237 | the <application>Gtk+-2</application> or
|
---|
| 238 | <application>Gtk+-3</application> version of
|
---|
| 239 | <application>WebKit</application>).
|
---|
[4f1a8e5] | 240 | </seg>
|
---|
| 241 | <seg>
|
---|
| 242 | /usr/include/webkit-1.0 and /usr/share/webkit-1.0 or
|
---|
| 243 | /usr/include/webkit-3.0 and /usr/share/webkit-3.0 (depending on
|
---|
[4ac4aea] | 244 | whether you installed the <application>Gtk+-2</application> or
|
---|
| 245 | <application>Gtk+-3</application> version of
|
---|
| 246 | <application>WebKit</application>).
|
---|
[4f1a8e5] | 247 | </seg>
|
---|
[099ebaf] | 248 | </seglistitem>
|
---|
| 249 | </segmentedlist>
|
---|
| 250 |
|
---|
| 251 | <variablelist>
|
---|
| 252 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 253 | <?dbfo list-presentation="list"?>
|
---|
| 254 | <?dbhtml list-presentation="table"?>
|
---|
| 255 |
|
---|
| 256 | <varlistentry id="jsc">
|
---|
[d57804d] | 257 | <term><command>jsc-1</command> or <command>jsc-3</command></term>
|
---|
[099ebaf] | 258 | <listitem>
|
---|
[4f1a8e5] | 259 | <para>
|
---|
| 260 | is a command-line utility that allows you to run JavaScript programs
|
---|
| 261 | outside of the context of a web browser.
|
---|
| 262 | </para>
|
---|
[099ebaf] | 263 | <indexterm zone="webkitgtk jsc">
|
---|
| 264 | <primary sortas="b-jsc">jsc</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="libwebkit-1.0">
|
---|
[d57804d] | 270 | <term><filename class="libraryfile">libwebkit-1.0.so</filename></term>
|
---|
[099ebaf] | 271 | <listitem>
|
---|
[4f1a8e5] | 272 | <para>
|
---|
[4ac4aea] | 273 | contains the <application>WebKit</application> API functions for
|
---|
[4f1a8e5] | 274 | <application>gtk+-2</application>.
|
---|
| 275 | </para>
|
---|
[099ebaf] | 276 | <indexterm zone="webkitgtk libwebkit-1.0">
|
---|
| 277 | <primary sortas="c-libwebkit-1.0">libwebkit-1.0.so</primary>
|
---|
| 278 | </indexterm>
|
---|
| 279 | </listitem>
|
---|
| 280 | </varlistentry>
|
---|
| 281 |
|
---|
[d57804d] | 282 | <varlistentry id="libwebkit-3.0">
|
---|
| 283 | <term><filename class="libraryfile">libwebkit-3.0.so</filename></term>
|
---|
| 284 | <listitem>
|
---|
[4f1a8e5] | 285 | <para>
|
---|
[4ac4aea] | 286 | contains the <application>WebKit</application> API functions for
|
---|
[4f1a8e5] | 287 | <application>gtk+-3</application>.
|
---|
| 288 | </para>
|
---|
[d57804d] | 289 | <indexterm zone="webkitgtk libwebkit-3.0">
|
---|
| 290 | <primary sortas="c-libwebkit-3.0">libwebkit-3.0.so</primary>
|
---|
| 291 | </indexterm>
|
---|
| 292 | </listitem>
|
---|
| 293 | </varlistentry>
|
---|
| 294 |
|
---|
| 295 | <varlistentry id="libjavascriptcoregtk-1.0">
|
---|
| 296 | <term><filename
|
---|
| 297 | class="libraryfile">libjavascriptcoregtk-1.0.so</filename></term>
|
---|
| 298 | <listitem>
|
---|
[4f1a8e5] | 299 | <para>
|
---|
| 300 | contains functions that are used by <command>jsc-1</command>.
|
---|
| 301 | </para>
|
---|
[d57804d] | 302 | <indexterm zone="webkitgtk libjavascriptcoregtk-1.0">
|
---|
[4ac4aea] | 303 | <primary sortas="c-libjavascriptcoregtk-1.0">libjavascriptcoregtk-1.0.so</primary>
|
---|
[d57804d] | 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
| 307 |
|
---|
| 308 | <varlistentry id="libjavascriptcoregtk-3.0">
|
---|
| 309 | <term><filename
|
---|
| 310 | class="libraryfile">libjavascriptcoregtk-3.0.so</filename></term>
|
---|
| 311 | <listitem>
|
---|
[4f1a8e5] | 312 | <para>
|
---|
| 313 | contains functions that are used by <command>jsc-3</command>.
|
---|
| 314 | </para>
|
---|
[d57804d] | 315 | <indexterm zone="webkitgtk libjavascriptcoregtk-3.0">
|
---|
[4ac4aea] | 316 | <primary sortas="c-libjavascriptcoregtk-3.0">libjavascriptcoregtk-3.0.so</primary>
|
---|
[d57804d] | 317 | </indexterm>
|
---|
| 318 | </listitem>
|
---|
| 319 | </varlistentry>
|
---|
[099ebaf] | 320 | </variablelist>
|
---|
| 321 | </sect2>
|
---|
| 322 | </sect1>
|
---|