背景:
阅读新闻
Ubuntu下编译GTK版WebKit
[日期:2012-09-12] 来源:Linux社区 作者:scholar_ii [字体:]
1)系统
Linux Ubuntu 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
2)参考https://help.ubuntu.com/community/WebKit
WebKit requires a newer version of libsoup than provided by the official Ubuntu repositories. Add the PPA for WebKit Team repository to get access to the right version:
sudo add-apt-repository ppa:webkit-team sudo apt-get updateWebKit 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 codeTo acquire the WebKit source code issue the following command in your terminal:
svn checkout ~/src/WebKitBe patient, this step will take some time.
Compile the codeChange the directory in your terminal to the newly created ~/src/WebKit directory with the following command:
cd ~/src/WebKitNow 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=/usrIf 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:
makeTo install run:
sudo make install3)遇到的問題
checking whether to do a debug build... no checking whether to enable optimized builds... yes checking whether to enable WebGL support... yes checking whether to enable accelerated compositing support... no checking GL/gl.h usability... no checking GL/gl.h presence... no checking for GL/gl.h... no configure: error: OpenGL header not found解决方案:按webkit的官方文章从新安装相关依赖库
$ sudo apt-get install autoconf \ automake \ autotools-dev \ bison \ flex \ gail-3.0 \ gawk \ gnome-common \ autopoint \ gperf \ ruby \ gtk-doc-tools \ libenchant-dev \ libgail-dev \ libgail-3-dev \ libgeoclue-dev \ libgirepository1.0-dev \ libgtk-3-dev \ libgstreamer-plugins-base0.10-dev \ libgudev-1.0-dev \ libicu-dev \ libgl1-mesa-glx \ libgl1-mesa-dev \ libjpeg62-dev \ libpango1.0-dev \ libpng12-dev \ libsqlite3-dev \ libtool \ libxslt-dev \ libxt-dev \ libxtst-dev \ libgnutls-dev
相关资讯 WebKit
本文评论 查看全部评论 (0)
尊重网上道德,遵守中华人民共和国的各项有关法律法规 承担一切因您的行为而直接或间接导致的民事或刑事法律责任 本站管理人员有权保留或删除其管辖留言中的任意内容 本站有权在网站内转载或引用您的评论 参与本评论即表明您已经阅读并接受上述条款
评论声明
最新资讯