Ubuntu10.0下编译qt版webkit
1.设定依赖库和头文件(root下)
apt-get build-dep firefox
apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm
这个很费时间,我大概用了一下午的时间才安排完毕
参考文档:https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Linux_Prerequisites
2.下载webkit源码
svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit
如果没有svn的用sudo apt-get subversion安装svn
3.编译webkit
./WebKit/WebKitTools/Scripts/build-webkit --qt
编译成功之后,有如下信息:
===========================================================
WebKit is now built (1h:20m:37s).
To run QtTestBrowser with this newly-built code, use the
"WebKit/WebKitTools/Scripts/run-launcher" script.
===========================================================
4.然后运行测试webkit
WebKit/WebKitTools/Scripts/run-launcher --qt
这样就显示一个界面简单的浏览器了,输入google测试下,如图
5.接下来,研究源代码!
1.设定依赖库和头文件(root下)
apt-get build-dep firefox
apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm
这个很费时间,我大概用了一下午的时间才安排完毕
参考文档:https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Linux_Prerequisites
2.下载webkit源码
svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit
如果没有svn的用sudo apt-get subversion安装svn
3.编译webkit
./WebKit/WebKitTools/Scripts/build-webkit --qt
编译成功之后,有如下信息:
===========================================================
WebKit is now built (1h:20m:37s).
To run QtTestBrowser with this newly-built code, use the
"WebKit/WebKitTools/Scripts/run-launcher" script.
===========================================================
4.然后运行测试webkit
WebKit/WebKitTools/Scripts/run-launcher --qt
这样就显示一个界面简单的浏览器了,输入google测试下,如图
5.接下来,研究源代码!