[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 " ">
|
---|
[26047b6e] | 10 | <!ENTITY webkitgtk-md5sum "52b2feb0fae01e68432b547bd85e8d74">
|
---|
| 11 | <!ENTITY webkitgtk-size "7.6 MB">
|
---|
[d57804d] | 12 | <!ENTITY webkitgtk-buildsize "500 MB (38 MB installed)">
|
---|
| 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="libjpeg"/>,
|
---|
| 81 | <xref linkend="libpng"/>,
|
---|
| 82 | <xref linkend="icu"/>,
|
---|
| 83 | <xref linkend="libxslt"/>,
|
---|
[4ac4aea] | 84 | <xref linkend="gtk2"/> or <xref linkend="gtk3"/>
|
---|
| 85 | (<command>configure</command> defaults to using gtk+-3),
|
---|
[4f1a8e5] | 86 | <xref linkend="libsoup"/>,
|
---|
| 87 | <xref linkend="gst-plugins-base"/>,
|
---|
[11daca34] | 88 | <xref linkend="geoclue"/>,
|
---|
[4f1a8e5] | 89 | <xref linkend="which"/> and
|
---|
| 90 | <xref linkend="sqlite"/>.
|
---|
| 91 | </para>
|
---|
[57aae596] | 92 |
|
---|
[099ebaf] | 93 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[4f1a8e5] | 94 | <para role="optional">
|
---|
| 95 | <xref linkend="curl"/>,
|
---|
| 96 | <xref linkend="enchant"/>,
|
---|
| 97 | <xref linkend="gobject-introspection"/> (required if building
|
---|
| 98 | <application>epiphany</application>),
|
---|
| 99 | <xref linkend="gtk-doc"/> and
|
---|
| 100 | <ulink url="http://xsltml.sourceforge.net/">MathML</ulink>.
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
| 103 | <para condition="html" role="usernotes">
|
---|
| 104 | User Notes: <ulink url="&blfs-wiki;/webkitgtk"/>
|
---|
| 105 | </para>
|
---|
[099ebaf] | 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="installation">
|
---|
| 109 | <title>Installation of WebKitGTK+</title>
|
---|
| 110 |
|
---|
[eedd7058] | 111 | <para>
|
---|
[826ddf4] | 112 | If you have <application>pkg-config 0.23</application> or older installed
|
---|
[eedd7058] | 113 | fix a bug in the configure script that will stop it detecting
|
---|
| 114 | <application>Gstreamer</application> correctly:
|
---|
| 115 | </para>
|
---|
| 116 | <!-- https://bugs.webkit.org/show_bug.cgi?id=82580 -->
|
---|
| 117 |
|
---|
| 118 | <screen><userinput>sed -i 's#=GST#=$GST#' configure</userinput></screen>
|
---|
| 119 |
|
---|
| 120 | <para>
|
---|
| 121 | If you have not installed <xref linkend="gtk-doc"/>, fix a bug that will
|
---|
| 122 | cause <command>make install</command> to fail:
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <screen><userinput>sed -i '/generate-gtkdoc --rebase/s:^:# :' GNUmakefile.in</userinput></screen>
|
---|
| 126 |
|
---|
[4f1a8e5] | 127 | <para>
|
---|
[4ac4aea] | 128 | <application>WebKit</application> takes a long time to compile, so if you
|
---|
| 129 | have a multicore CPU it can be useful to speed up the build by running
|
---|
| 130 | make with multiple jobs.
|
---|
[4f1a8e5] | 131 | </para>
|
---|
[39ed0a6e] | 132 |
|
---|
[4f1a8e5] | 133 | <para>
|
---|
[4ac4aea] | 134 | If you want to run make with just one job, install
|
---|
| 135 | <application>WebKit</application> by running the following commands:
|
---|
[4f1a8e5] | 136 | </para>
|
---|
[099ebaf] | 137 |
|
---|
[4ac4aea] | 138 | <screen><userinput>./configure --prefix=/usr --enable-introspection &&
|
---|
[099ebaf] | 139 | make</userinput></screen>
|
---|
| 140 |
|
---|
[4ac4aea] | 141 | <para>
|
---|
| 142 | If you have a multicore CPU and want to run make with multiple jobs,
|
---|
| 143 | install <application>WebKit</application> by running the following
|
---|
| 144 | commands:
|
---|
| 145 | </para>
|
---|
| 146 |
|
---|
| 147 | <screen><userinput>./configure --prefix=/usr --enable-introspection &&
|
---|
| 148 | until make -j$(getconf _NPROCESSORS_ONLN)
|
---|
| 149 | do echo "Let's try that again..."
|
---|
| 150 | done</userinput></screen>
|
---|
| 151 |
|
---|
| 152 | <para>
|
---|
| 153 | This package does not have a working testsuite.
|
---|
| 154 | </para>
|
---|
| 155 | <!--
|
---|
[4f1a8e5] | 156 | <para>
|
---|
| 157 | To test the results, issue: <command>make check</command> (you must be in
|
---|
| 158 | an xterm or similar to do this, because it launches some windows).
|
---|
[4ac4aea] | 159 | Requires <xref linkend="pygobject2"/>.
|
---|
[4f1a8e5] | 160 | </para>
|
---|
[4ac4aea] | 161 | -->
|
---|
[099ebaf] | 162 |
|
---|
[4f1a8e5] | 163 | <para>
|
---|
| 164 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 165 | </para>
|
---|
[099ebaf] | 166 |
|
---|
| 167 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 168 | </sect2>
|
---|
| 169 |
|
---|
| 170 | <sect2 role="commands">
|
---|
| 171 | <title>Command Explanations</title>
|
---|
| 172 |
|
---|
[4ac4aea] | 173 | <para>
|
---|
| 174 | <option>--enable-introspection</option>: This option enables support for
|
---|
| 175 | <application>Gobject-Introspection</application> and is required for a
|
---|
| 176 | <application>GNOME</application> desktop.
|
---|
| 177 | </para>
|
---|
| 178 |
|
---|
| 179 | <para>
|
---|
| 180 | <command>until make -j$(getconf _NPROCESSORS_ONLN)</command>). Sadly
|
---|
| 181 | there are race conditions in the makefiles that will cause the build to
|
---|
| 182 | fail if you run make with multiple jobs. This simple hack works around
|
---|
| 183 | that, <command>until</command> will keep running <command>make</command>
|
---|
[eedd7058] | 184 | until it succeeds. You will need to monitor the output of
|
---|
| 185 | <command>make</command>. If an error occurs that is
|
---|
| 186 | <emphasis>not</emphasis> due to a race condition then it will keep
|
---|
| 187 | repeating <command>make</command> until you kill the process.
|
---|
| 188 | <command>$(getconf _NPROCESSORS_ONLN)</command> prints
|
---|
[4ac4aea] | 189 | the number of cores your computer seems to have.
|
---|
| 190 | </para>
|
---|
| 191 |
|
---|
[4f1a8e5] | 192 | <para>
|
---|
| 193 | <option>--with-gtk=2.0</option>: This option forces
|
---|
| 194 | <application>Webkit</application> to compile against
|
---|
| 195 | <application>Gtk+-2</application>, even if
|
---|
| 196 | <application>Gtk+-3</application> is also installed. With
|
---|
| 197 | <application>Gtk+-2</application>, everything
|
---|
| 198 | <application>Webkit</application> installs is suffixed with 1.0. When it
|
---|
| 199 | is compiled against <application>Gtk+-3</application> everything it
|
---|
| 200 | installs is suffixed with 3.0. Both versions can be installed alongside
|
---|
| 201 | one another with no namespace conflicts.
|
---|
| 202 | </para>
|
---|
| 203 |
|
---|
[e05cd03f] | 204 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[099ebaf] | 205 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
| 206 | </sect2>
|
---|
| 207 |
|
---|
| 208 | <sect2 role="content">
|
---|
| 209 | <title>Contents</title>
|
---|
| 210 |
|
---|
| 211 | <segmentedlist>
|
---|
| 212 | <segtitle>Installed Program</segtitle>
|
---|
| 213 | <segtitle>Installed Library</segtitle>
|
---|
| 214 | <segtitle>Installed Directories</segtitle>
|
---|
| 215 |
|
---|
| 216 | <seglistitem>
|
---|
[4f1a8e5] | 217 | <seg>
|
---|
[4ac4aea] | 218 | jsc-1 or jsc-3 (depending on whether you installed the
|
---|
| 219 | <application>Gtk+-2</application> or <application>Gtk+-3</application>
|
---|
| 220 | version of <application>WebKit</application>).
|
---|
[4f1a8e5] | 221 | </seg>
|
---|
| 222 | <seg>
|
---|
| 223 | libwebkit-1.0.so and libjavascriptcoregtk-1.0.so or libwebkit-3.0.so
|
---|
| 224 | and libjavascriptcoregtk-3.0.so (depending on whether you installed
|
---|
[4ac4aea] | 225 | the <application>Gtk+-2</application> or
|
---|
| 226 | <application>Gtk+-3</application> version of
|
---|
| 227 | <application>WebKit</application>).
|
---|
[4f1a8e5] | 228 | </seg>
|
---|
| 229 | <seg>
|
---|
| 230 | /usr/include/webkit-1.0 and /usr/share/webkit-1.0 or
|
---|
| 231 | /usr/include/webkit-3.0 and /usr/share/webkit-3.0 (depending on
|
---|
[4ac4aea] | 232 | whether you installed the <application>Gtk+-2</application> or
|
---|
| 233 | <application>Gtk+-3</application> version of
|
---|
| 234 | <application>WebKit</application>).
|
---|
[4f1a8e5] | 235 | </seg>
|
---|
[099ebaf] | 236 | </seglistitem>
|
---|
| 237 | </segmentedlist>
|
---|
| 238 |
|
---|
| 239 | <variablelist>
|
---|
| 240 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 241 | <?dbfo list-presentation="list"?>
|
---|
| 242 | <?dbhtml list-presentation="table"?>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="jsc">
|
---|
[d57804d] | 245 | <term><command>jsc-1</command> or <command>jsc-3</command></term>
|
---|
[099ebaf] | 246 | <listitem>
|
---|
[4f1a8e5] | 247 | <para>
|
---|
| 248 | is a command-line utility that allows you to run JavaScript programs
|
---|
| 249 | outside of the context of a web browser.
|
---|
| 250 | </para>
|
---|
[099ebaf] | 251 | <indexterm zone="webkitgtk jsc">
|
---|
| 252 | <primary sortas="b-jsc">jsc</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 |
|
---|
| 257 | <varlistentry id="libwebkit-1.0">
|
---|
[d57804d] | 258 | <term><filename class="libraryfile">libwebkit-1.0.so</filename></term>
|
---|
[099ebaf] | 259 | <listitem>
|
---|
[4f1a8e5] | 260 | <para>
|
---|
[4ac4aea] | 261 | contains the <application>WebKit</application> API functions for
|
---|
[4f1a8e5] | 262 | <application>gtk+-2</application>.
|
---|
| 263 | </para>
|
---|
[099ebaf] | 264 | <indexterm zone="webkitgtk libwebkit-1.0">
|
---|
| 265 | <primary sortas="c-libwebkit-1.0">libwebkit-1.0.so</primary>
|
---|
| 266 | </indexterm>
|
---|
| 267 | </listitem>
|
---|
| 268 | </varlistentry>
|
---|
| 269 |
|
---|
[d57804d] | 270 | <varlistentry id="libwebkit-3.0">
|
---|
| 271 | <term><filename class="libraryfile">libwebkit-3.0.so</filename></term>
|
---|
| 272 | <listitem>
|
---|
[4f1a8e5] | 273 | <para>
|
---|
[4ac4aea] | 274 | contains the <application>WebKit</application> API functions for
|
---|
[4f1a8e5] | 275 | <application>gtk+-3</application>.
|
---|
| 276 | </para>
|
---|
[d57804d] | 277 | <indexterm zone="webkitgtk libwebkit-3.0">
|
---|
| 278 | <primary sortas="c-libwebkit-3.0">libwebkit-3.0.so</primary>
|
---|
| 279 | </indexterm>
|
---|
| 280 | </listitem>
|
---|
| 281 | </varlistentry>
|
---|
| 282 |
|
---|
| 283 | <varlistentry id="libjavascriptcoregtk-1.0">
|
---|
| 284 | <term><filename
|
---|
| 285 | class="libraryfile">libjavascriptcoregtk-1.0.so</filename></term>
|
---|
| 286 | <listitem>
|
---|
[4f1a8e5] | 287 | <para>
|
---|
| 288 | contains functions that are used by <command>jsc-1</command>.
|
---|
| 289 | </para>
|
---|
[d57804d] | 290 | <indexterm zone="webkitgtk libjavascriptcoregtk-1.0">
|
---|
[4ac4aea] | 291 | <primary sortas="c-libjavascriptcoregtk-1.0">libjavascriptcoregtk-1.0.so</primary>
|
---|
[d57804d] | 292 | </indexterm>
|
---|
| 293 | </listitem>
|
---|
| 294 | </varlistentry>
|
---|
| 295 |
|
---|
| 296 | <varlistentry id="libjavascriptcoregtk-3.0">
|
---|
| 297 | <term><filename
|
---|
| 298 | class="libraryfile">libjavascriptcoregtk-3.0.so</filename></term>
|
---|
| 299 | <listitem>
|
---|
[4f1a8e5] | 300 | <para>
|
---|
| 301 | contains functions that are used by <command>jsc-3</command>.
|
---|
| 302 | </para>
|
---|
[d57804d] | 303 | <indexterm zone="webkitgtk libjavascriptcoregtk-3.0">
|
---|
[4ac4aea] | 304 | <primary sortas="c-libjavascriptcoregtk-3.0">libjavascriptcoregtk-3.0.so</primary>
|
---|
[d57804d] | 305 | </indexterm>
|
---|
| 306 | </listitem>
|
---|
| 307 | </varlistentry>
|
---|
[099ebaf] | 308 | </variablelist>
|
---|
| 309 | </sect2>
|
---|
| 310 | </sect1>
|
---|