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 |
|
---|
7 | <!ENTITY webkitgtk-download-http
|
---|
8 | "http://webkitgtk.org/releases/webkit-&webkitgtk-version;.tar.xz">
|
---|
9 | <!ENTITY webkitgtk-download-ftp " ">
|
---|
10 | <!ENTITY webkitgtk-md5sum "f2f01b1fdc7262a2eede81ebed0970b2">
|
---|
11 | <!ENTITY webkitgtk-size "7.6 MB">
|
---|
12 | <!ENTITY webkitgtk-buildsize "566 MB (43 MB installed)">
|
---|
13 | <!ENTITY webkitgtk-time "28 SBU">
|
---|
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 |
|
---|
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>
|
---|
38 |
|
---|
39 | &lfs71_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&webkitgtk-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&webkitgtk-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &webkitgtk-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &webkitgtk-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &webkitgtk-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &webkitgtk-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">WebKitGTK+ Dependencies</bridgehead>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
78 | <para role="required">
|
---|
79 | <xref linkend="gperf"/>,
|
---|
80 | <xref linkend="icu"/>,
|
---|
81 | <xref linkend="libxslt"/>,
|
---|
82 | <xref linkend="gtk2"/> or <xref linkend="gtk3"/>
|
---|
83 | (<command>configure</command> defaults to using gtk+-3),
|
---|
84 | <xref linkend="libsoup"/>,
|
---|
85 | <xref linkend="gst-plugins-base"/>,
|
---|
86 | <xref linkend="geoclue"/>,
|
---|
87 | <xref linkend="which"/> and
|
---|
88 | <xref linkend="sqlite"/>.
|
---|
89 | </para>
|
---|
90 |
|
---|
91 | <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
|
---|
92 | <para role="optional">
|
---|
93 | <xref linkend="gobject-introspection"/>
|
---|
94 | </para>
|
---|
95 |
|
---|
96 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
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>
|
---|
107 | </sect2>
|
---|
108 |
|
---|
109 | <sect2 role="installation">
|
---|
110 | <title>Installation of WebKitGTK+</title>
|
---|
111 |
|
---|
112 | <para>
|
---|
113 | If you have <application>pkg-config 0.23</application> or older installed
|
---|
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 |
|
---|
128 | <para>
|
---|
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.
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <para>
|
---|
135 | If you want to run make with just one core, install
|
---|
136 | <application>WebKit</application> by running the following commands:
|
---|
137 | </para>
|
---|
138 |
|
---|
139 | <screen><userinput>./configure --prefix=/usr --enable-introspection &&
|
---|
140 | make</userinput></screen>
|
---|
141 |
|
---|
142 | <para>
|
---|
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:
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | <screen><userinput>./configure --prefix=/usr --enable-introspection &&
|
---|
149 | error_count=0
|
---|
150 | until make -j$(getconf _NPROCESSORS_ONLN)
|
---|
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>
|
---|
159 |
|
---|
160 | <para>
|
---|
161 | This package does not have a working testsuite.
|
---|
162 | </para>
|
---|
163 | <!--
|
---|
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).
|
---|
167 | Requires <xref linkend="pygobject2"/>.
|
---|
168 | </para>
|
---|
169 | -->
|
---|
170 |
|
---|
171 | <para>
|
---|
172 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
173 | </para>
|
---|
174 |
|
---|
175 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
176 | </sect2>
|
---|
177 |
|
---|
178 | <sect2 role="commands">
|
---|
179 | <title>Command Explanations</title>
|
---|
180 |
|
---|
181 | <para>
|
---|
182 | <option>--enable-introspection</option>: This option enables support for
|
---|
183 | <application>Gobject-Introspection</application> and is required for a
|
---|
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.
|
---|
187 | </para>
|
---|
188 |
|
---|
189 | <para>
|
---|
190 | <command>error_count=0; until make ...</command>: Sadly
|
---|
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
|
---|
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.
|
---|
202 | </para>
|
---|
203 |
|
---|
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 |
|
---|
216 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
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>
|
---|
229 | <seg>
|
---|
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>).
|
---|
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
|
---|
237 | the <application>Gtk+-2</application> or
|
---|
238 | <application>Gtk+-3</application> version of
|
---|
239 | <application>WebKit</application>).
|
---|
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
|
---|
244 | whether you installed the <application>Gtk+-2</application> or
|
---|
245 | <application>Gtk+-3</application> version of
|
---|
246 | <application>WebKit</application>).
|
---|
247 | </seg>
|
---|
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">
|
---|
257 | <term><command>jsc-1</command> or <command>jsc-3</command></term>
|
---|
258 | <listitem>
|
---|
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>
|
---|
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">
|
---|
270 | <term><filename class="libraryfile">libwebkit-1.0.so</filename></term>
|
---|
271 | <listitem>
|
---|
272 | <para>
|
---|
273 | contains the <application>WebKit</application> API functions for
|
---|
274 | <application>gtk+-2</application>.
|
---|
275 | </para>
|
---|
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 |
|
---|
282 | <varlistentry id="libwebkit-3.0">
|
---|
283 | <term><filename class="libraryfile">libwebkit-3.0.so</filename></term>
|
---|
284 | <listitem>
|
---|
285 | <para>
|
---|
286 | contains the <application>WebKit</application> API functions for
|
---|
287 | <application>gtk+-3</application>.
|
---|
288 | </para>
|
---|
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>
|
---|
299 | <para>
|
---|
300 | contains functions that are used by <command>jsc-1</command>.
|
---|
301 | </para>
|
---|
302 | <indexterm zone="webkitgtk libjavascriptcoregtk-1.0">
|
---|
303 | <primary sortas="c-libjavascriptcoregtk-1.0">libjavascriptcoregtk-1.0.so</primary>
|
---|
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>
|
---|
312 | <para>
|
---|
313 | contains functions that are used by <command>jsc-3</command>.
|
---|
314 | </para>
|
---|
315 | <indexterm zone="webkitgtk libjavascriptcoregtk-3.0">
|
---|
316 | <primary sortas="c-libjavascriptcoregtk-3.0">libjavascriptcoregtk-3.0.so</primary>
|
---|
317 | </indexterm>
|
---|
318 | </listitem>
|
---|
319 | </varlistentry>
|
---|
320 | </variablelist>
|
---|
321 | </sect2>
|
---|
322 | </sect1>
|
---|