首先參看官方文檔:
官方文章
我在運行腳本: ./Tools/Scripts/update-webkitgtk-libs腳本時遇到了這樣的錯誤:
No package “”x11-xcb”” found
No package ‘xcb-dri2’ found
解決辦法:
sudo apt-add-repository ppa:xorg-edgers
sudo apt-get update
sudo apt-get install libx11-xcb-dev
sudo apt-get install libxcb-xfixes0-dev
又遇到錯誤:
error: must install xorg-macros 1.14 or later before running autoconf/autogen
運行:sudo apt-get install xutils-dev
EGL支持:sudo apt-get install libgles2-mesa-dev
sudo apt-get install libtiff4-dev
後來看了這段話,有點道理
The PPA mentioned in the question is greatly outdated for 12.04 hence you have to disable it and find another instructions on building webkit from source. Additionally, someone has to edit the wiki.
Looks like webkit is now in libwebkitgtk-3.0-0. Try these:
sudo apt-get build-dep libwebkitgtk-3.0-0
apt-get source libwebkitgtk-3.0-0
cd webkit-*
dpkg-buildpackage
參看了這個鏈接:webkitgtk+在ubuntu12上的編譯