个人工具
登录
查看“UbuntuHelp:WebKit”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:WebKit”的源代码
来自Ubuntu中文
←
UbuntuHelp:WebKit
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{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 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 [[UbuntuHelp:UsingTheTerminal|UsingTheTerminal]] to learn more about the terminal. == Get dependencies == WebKit requires a newer version of libsoup than provided by the official Ubuntu repositories. Add the [https://launchpad.net/~webkit-team/+archive/ppa PPA for WebKit Team repository] to get access to the right version: <pre><nowiki> sudo add-apt-repository ppa:webkit-team sudo apt-get update </nowiki></pre> WebKit requires libraries to successfully aquire, configure, and compile. You can get libraries by issuing the following command in your terminal: <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 libgail-dev </nowiki></pre> == Get the source code == To acquire the WebKit source code issue the following command in your terminal: <pre><nowiki> svn checkout http://svn.webkit.org/repository/webkit/trunk ~/src/WebKit </nowiki></pre> 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: <pre><nowiki> cd ~/src/WebKit </nowiki></pre> 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: <pre><nowiki> ./autogen.sh --prefix=/usr </nowiki></pre> 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: <pre><nowiki> make </nowiki></pre> To install run: <pre><nowiki> sudo make install </nowiki></pre> == 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: <pre><nowiki> ~/src/WebKit/Programs/GtkLauncher </nowiki></pre> 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|The Acid3 Test: 100?action=AttachFile&do=get&target=100 == External Links == For more information about WebKit see the following links * < http://webkit.org/ > - The WebKit Open Source Project. * < http://trac.webkit.org/wiki/BuildingGtk > - Building the GTK+ port. * < http://trac.webkit.org/wiki/HackingGtk > - Hacker's guide to WebKit/GTK+. * < http://trac.webkit.org/wiki/ApplicationsGtk > - Applications using WebKit/GTK+. * < http://live.gnome.org/WebKitGtk > - Gnome hosted site dedicated to WebKit/GTK+. * < http://planet.webkit.org/ > - Planet WebKit provides updated news about WebKit. [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:WebKit
。