个人工具

“UbuntuHelp:WebKit”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(创建新页面为 '{{From|https://help.ubuntu.com/community/WebKit}} {{Languages|UbuntuHelp:WebKit}} == Introduction == WebKit is an open source web browser engine. WebKit is also the name of the ...')
 
第8行: 第8行:
 
WebKit requires libraries to successfully aquire, configure, and compile. You can get libraries by issuing the following command in your terminal:
 
WebKit requires libraries to successfully aquire, configure, and compile. You can get libraries by issuing the following command in your terminal:
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install subversion gtk-doc-tools autoconf automake libtool libgtk2.0-dev libpango1.0-dev libicu-dev libxslt-dev libsoup2.4-dev libsqlite3-dev gperf bison flex libjpeg62-dev libpng12-dev libxt-dev autotools-dev libgstreamer-plugins-base0.10-dev libenchant-dev
+
sudo apt-get install subversion gtk-doc-tools autoconf automake libtool libgtk2.0-dev libpango1.0-dev libicu-dev libxslt-dev libsoup2.4-dev libsqlite3-dev gperf bison flex libjpeg62-dev libpng12-dev libxt-dev autotools-dev libgstreamer-plugins-base0.10-dev libenchant-dev libgail-dev
 
</nowiki></pre>
 
</nowiki></pre>
 
== Get the source code ==
 
== Get the source code ==

2009年11月17日 (二) 21:09的版本

Introduction

WebKit is an open source web browser engine. WebKit is also the name of the Mac OS X system framework version of the engine that's used by Safari, Dashboard, Mail, and many other OS X applications. WebKit's HTML and JavaScript code began as a branch of the KHTML and KJS libraries from KDE. This page will help you compile WebKit on your Ubuntu system.

Prerequisites

You should be familiar with the terminal. Visit UsingTheTerminal to learn more about the terminal.

Get dependencies

WebKit requires libraries to successfully aquire, configure, and compile. You can get libraries by issuing the following command in your terminal:

sudo apt-get install subversion gtk-doc-tools autoconf automake libtool libgtk2.0-dev libpango1.0-dev libicu-dev libxslt-dev libsoup2.4-dev libsqlite3-dev gperf bison flex libjpeg62-dev libpng12-dev libxt-dev autotools-dev libgstreamer-plugins-base0.10-dev libenchant-dev libgail-dev

Get the source code

To acquire the WebKit source code issue the following command in your terminal:

svn checkout http://svn.webkit.org/repository/webkit/trunk ~/src/WebKit

Be patient, this step will take some time.

Compile the code

Change the directory in your terminal to the newly created ~/src/WebKit directory with the following command:

cd ~/src/WebKit

Now you will need to configure the source to be sure all dependencies are present on your system. Issue this simple command in your terminal:

./autogen.sh --prefix=/usr

If your ./autogen.sh command runs without any hitches you are ready to compile WebKit. Issue the following command in your terminal and grab a beer:

make

Test WebKit

Assuming no errors occurred during the build you can now test WebKit. Launch the demo browser by issuing the following command in your terminal:

~/src/WebKit/Programs/GtkLauncher

Enter the following URL in the browser: http://acid3.acidtests.org, you should see something like the following image: https://help.ubuntu.com/community/acid3.png%7CThe Acid3 Test: 100?action=AttachFile&do=get&target=100

External Links

For more information about WebKit see the following links