2010-01-11 16:32: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;
|
|
|
|
|
2012-03-28 01:36:31 +08:00
|
|
|
<!ENTITY webkitgtk-download-http
|
2012-03-29 05:39:14 +08:00
|
|
|
"http://webkitgtk.org/releases/webkit-&webkitgtk-version;.tar.xz">
|
2010-01-11 16:32:12 +08:00
|
|
|
<!ENTITY webkitgtk-download-ftp " ">
|
2012-03-31 02:23:39 +08:00
|
|
|
<!ENTITY webkitgtk-md5sum "52b2feb0fae01e68432b547bd85e8d74">
|
|
|
|
<!ENTITY webkitgtk-size "7.6 MB">
|
2011-12-12 21:12:28 +08:00
|
|
|
<!ENTITY webkitgtk-buildsize "500 MB (38 MB installed)">
|
|
|
|
<!ENTITY webkitgtk-time "28 SBU">
|
2010-01-11 16:32:12 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="webkitgtk" xreflabel="WebKitGTK+-&webkitgtk-version;">
|
|
|
|
<?dbhtml filename="webkitgtk.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>WebKitGTK+-&webkitgtk-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="webkitgtk">
|
|
|
|
<primary sortas="a-WebKitGTK+">WebKitGTK+</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to WebKitGTK+</title>
|
|
|
|
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
The <application>WebKitGTK+</application> package is the port of the
|
|
|
|
portable web rendering engine <application>WebKit</application> to the
|
|
|
|
<application>GTK+</application> platform.
|
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
|
2012-03-05 23:41:10 +08:00
|
|
|
&lfs71_checked;
|
2010-08-12 08:08:40 +08:00
|
|
|
|
2010-01-11 16:32:12 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&webkitgtk-download-http;"/>
|
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&webkitgtk-download-ftp;"/>
|
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &webkitgtk-md5sum;
|
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
Download size: &webkitgtk-size;
|
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &webkitgtk-buildsize;
|
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &webkitgtk-time;
|
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">WebKitGTK+ Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para role="required">
|
|
|
|
<xref linkend="gperf"/>,
|
|
|
|
<xref linkend="libjpeg"/>,
|
|
|
|
<xref linkend="libpng"/>,
|
|
|
|
<xref linkend="icu"/>,
|
|
|
|
<xref linkend="libxslt"/>,
|
2012-03-29 19:35:14 +08:00
|
|
|
<xref linkend="gtk2"/> or <xref linkend="gtk3"/>
|
|
|
|
(<command>configure</command> defaults to using gtk+-3),
|
2012-03-28 01:36:31 +08:00
|
|
|
<xref linkend="libsoup"/>,
|
|
|
|
<xref linkend="gst-plugins-base"/>,
|
2012-03-29 20:18:14 +08:00
|
|
|
<xref linkend="geoclue"/>,
|
2012-03-28 01:36:31 +08:00
|
|
|
<xref linkend="which"/> and
|
|
|
|
<xref linkend="sqlite"/>.
|
|
|
|
</para>
|
2010-09-10 08:09:38 +08:00
|
|
|
|
2010-01-11 16:32:12 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="curl"/>,
|
|
|
|
<xref linkend="enchant"/>,
|
|
|
|
<xref linkend="gobject-introspection"/> (required if building
|
|
|
|
<application>epiphany</application>),
|
|
|
|
<xref linkend="gtk-doc"/> and
|
|
|
|
<ulink url="http://xsltml.sourceforge.net/">MathML</ulink>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/webkitgtk"/>
|
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of WebKitGTK+</title>
|
|
|
|
|
2012-04-19 02:16:55 +08:00
|
|
|
<para>
|
2012-04-20 01:01:19 +08:00
|
|
|
If you have <application>pkg-config 0.23</application> or older installed
|
2012-04-19 02:16:55 +08:00
|
|
|
fix a bug in the configure script that will stop it detecting
|
|
|
|
<application>Gstreamer</application> correctly:
|
|
|
|
</para>
|
|
|
|
<!-- https://bugs.webkit.org/show_bug.cgi?id=82580 -->
|
|
|
|
|
|
|
|
<screen><userinput>sed -i 's#=GST#=$GST#' configure</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If you have not installed <xref linkend="gtk-doc"/>, fix a bug that will
|
|
|
|
cause <command>make install</command> to fail:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>sed -i '/generate-gtkdoc --rebase/s:^:# :' GNUmakefile.in</userinput></screen>
|
|
|
|
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
2012-03-29 19:35:14 +08:00
|
|
|
<application>WebKit</application> takes a long time to compile, so if you
|
|
|
|
have a multicore CPU it can be useful to speed up the build by running
|
|
|
|
make with multiple jobs.
|
2012-03-28 01:36:31 +08:00
|
|
|
</para>
|
2012-02-10 01:46:20 +08:00
|
|
|
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
2012-03-29 19:35:14 +08:00
|
|
|
If you want to run make with just one job, install
|
|
|
|
<application>WebKit</application> by running the following commands:
|
2012-03-28 01:36:31 +08:00
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
|
2012-03-29 19:35:14 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr --enable-introspection &&
|
2010-01-11 16:32:12 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2012-03-29 19:35:14 +08:00
|
|
|
<para>
|
|
|
|
If you have a multicore CPU and want to run make with multiple jobs,
|
|
|
|
install <application>WebKit</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>./configure --prefix=/usr --enable-introspection &&
|
|
|
|
until make -j$(getconf _NPROCESSORS_ONLN)
|
|
|
|
do echo "Let's try that again..."
|
|
|
|
done</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
This package does not have a working testsuite.
|
|
|
|
</para>
|
|
|
|
<!--
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
To test the results, issue: <command>make check</command> (you must be in
|
|
|
|
an xterm or similar to do this, because it launches some windows).
|
2012-03-29 19:35:14 +08:00
|
|
|
Requires <xref linkend="pygobject2"/>.
|
2012-03-28 01:36:31 +08:00
|
|
|
</para>
|
2012-03-29 19:35:14 +08:00
|
|
|
-->
|
2010-01-11 16:32:12 +08:00
|
|
|
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-03-29 19:35:14 +08:00
|
|
|
<para>
|
|
|
|
<option>--enable-introspection</option>: This option enables support for
|
|
|
|
<application>Gobject-Introspection</application> and is required for a
|
|
|
|
<application>GNOME</application> desktop.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>until make -j$(getconf _NPROCESSORS_ONLN)</command>). Sadly
|
|
|
|
there are race conditions in the makefiles that will cause the build to
|
|
|
|
fail if you run make with multiple jobs. This simple hack works around
|
|
|
|
that, <command>until</command> will keep running <command>make</command>
|
2012-04-19 02:16:55 +08:00
|
|
|
until it succeeds. You will need to monitor the output of
|
|
|
|
<command>make</command>. If an error occurs that is
|
|
|
|
<emphasis>not</emphasis> due to a race condition then it will keep
|
|
|
|
repeating <command>make</command> until you kill the process.
|
|
|
|
<command>$(getconf _NPROCESSORS_ONLN)</command> prints
|
2012-03-29 19:35:14 +08:00
|
|
|
the number of cores your computer seems to have.
|
|
|
|
</para>
|
|
|
|
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
<option>--with-gtk=2.0</option>: This option forces
|
|
|
|
<application>Webkit</application> to compile against
|
|
|
|
<application>Gtk+-2</application>, even if
|
|
|
|
<application>Gtk+-3</application> is also installed. With
|
|
|
|
<application>Gtk+-2</application>, everything
|
|
|
|
<application>Webkit</application> installs is suffixed with 1.0. When it
|
|
|
|
is compiled against <application>Gtk+-3</application> everything it
|
|
|
|
installs is suffixed with 3.0. Both versions can be installed alongside
|
|
|
|
one another with no namespace conflicts.
|
|
|
|
</para>
|
|
|
|
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2010-01-11 16:32:12 +08:00
|
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Program</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<seg>
|
2012-03-29 19:35:14 +08:00
|
|
|
jsc-1 or jsc-3 (depending on whether you installed the
|
|
|
|
<application>Gtk+-2</application> or <application>Gtk+-3</application>
|
|
|
|
version of <application>WebKit</application>).
|
2012-03-28 01:36:31 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libwebkit-1.0.so and libjavascriptcoregtk-1.0.so or libwebkit-3.0.so
|
|
|
|
and libjavascriptcoregtk-3.0.so (depending on whether you installed
|
2012-03-29 19:35:14 +08:00
|
|
|
the <application>Gtk+-2</application> or
|
|
|
|
<application>Gtk+-3</application> version of
|
|
|
|
<application>WebKit</application>).
|
2012-03-28 01:36:31 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/webkit-1.0 and /usr/share/webkit-1.0 or
|
|
|
|
/usr/include/webkit-3.0 and /usr/share/webkit-3.0 (depending on
|
2012-03-29 19:35:14 +08:00
|
|
|
whether you installed the <application>Gtk+-2</application> or
|
|
|
|
<application>Gtk+-3</application> version of
|
|
|
|
<application>WebKit</application>).
|
2012-03-28 01:36:31 +08:00
|
|
|
</seg>
|
2010-01-11 16:32:12 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="jsc">
|
2011-12-12 21:12:28 +08:00
|
|
|
<term><command>jsc-1</command> or <command>jsc-3</command></term>
|
2010-01-11 16:32:12 +08:00
|
|
|
<listitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
is a command-line utility that allows you to run JavaScript programs
|
|
|
|
outside of the context of a web browser.
|
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
<indexterm zone="webkitgtk jsc">
|
|
|
|
<primary sortas="b-jsc">jsc</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libwebkit-1.0">
|
2011-12-12 21:12:28 +08:00
|
|
|
<term><filename class="libraryfile">libwebkit-1.0.so</filename></term>
|
2010-01-11 16:32:12 +08:00
|
|
|
<listitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
2012-03-29 19:35:14 +08:00
|
|
|
contains the <application>WebKit</application> API functions for
|
2012-03-28 01:36:31 +08:00
|
|
|
<application>gtk+-2</application>.
|
|
|
|
</para>
|
2010-01-11 16:32:12 +08:00
|
|
|
<indexterm zone="webkitgtk libwebkit-1.0">
|
|
|
|
<primary sortas="c-libwebkit-1.0">libwebkit-1.0.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-12-12 21:12:28 +08:00
|
|
|
<varlistentry id="libwebkit-3.0">
|
|
|
|
<term><filename class="libraryfile">libwebkit-3.0.so</filename></term>
|
|
|
|
<listitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
2012-03-29 19:35:14 +08:00
|
|
|
contains the <application>WebKit</application> API functions for
|
2012-03-28 01:36:31 +08:00
|
|
|
<application>gtk+-3</application>.
|
|
|
|
</para>
|
2011-12-12 21:12:28 +08:00
|
|
|
<indexterm zone="webkitgtk libwebkit-3.0">
|
|
|
|
<primary sortas="c-libwebkit-3.0">libwebkit-3.0.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libjavascriptcoregtk-1.0">
|
|
|
|
<term><filename
|
|
|
|
class="libraryfile">libjavascriptcoregtk-1.0.so</filename></term>
|
|
|
|
<listitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
contains functions that are used by <command>jsc-1</command>.
|
|
|
|
</para>
|
2011-12-12 21:12:28 +08:00
|
|
|
<indexterm zone="webkitgtk libjavascriptcoregtk-1.0">
|
2012-03-29 19:35:14 +08:00
|
|
|
<primary sortas="c-libjavascriptcoregtk-1.0">libjavascriptcoregtk-1.0.so</primary>
|
2011-12-12 21:12:28 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libjavascriptcoregtk-3.0">
|
|
|
|
<term><filename
|
|
|
|
class="libraryfile">libjavascriptcoregtk-3.0.so</filename></term>
|
|
|
|
<listitem>
|
2012-03-28 01:36:31 +08:00
|
|
|
<para>
|
|
|
|
contains functions that are used by <command>jsc-3</command>.
|
|
|
|
</para>
|
2011-12-12 21:12:28 +08:00
|
|
|
<indexterm zone="webkitgtk libjavascriptcoregtk-3.0">
|
2012-03-29 19:35:14 +08:00
|
|
|
<primary sortas="c-libjavascriptcoregtk-3.0">libjavascriptcoregtk-3.0.so</primary>
|
2011-12-12 21:12:28 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2010-01-11 16:32:12 +08:00
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|