ubuntu编译webkit

2022-12-27 15:48:56 浏览数 (1)

下载安装包:http://webkitgtk.org/ 使用下面命令压缩包

代码语言:javascript复制
tar xvJf

安装依赖库:

代码语言:javascript复制
apt-get install autoconf automake autotools-dev bison flex gperf glib-networking gtk-doc-tools libenchant-dev libgail-dev libgeoclue-dev libglib2.0-dev libgstreamer-plugins-base0.10-dev libgtk2.0-dev  libicu-dev libjpeg62-dev libpango1.0-dev libpng12-dev libsoup2.4-dev libsqlite3-dev libtool libxslt1-dev libxt-dev

试试Configure一下

代码语言:javascript复制
./configure

可能还不够,提示找不到 libwebp,找一下吧:

代码语言:javascript复制
apt-cache search  libwebp
libwebp-dev - Lossy compression of digital photographic images.
libwebp5 - Lossy compression of digital photographic images.
libwebpdemux1 - Lossy compression of digital photographic images.
libwebpmux1 - Lossy compression of digital photographic images.
python-webm - Python interface to the Google WebM video/image codec.

安装第一个即可

代码语言:javascript复制
apt-get install libwebp-dev

找不到GStreamer

WebKit r169462,地址: http://nightly.webkit.org/ 下载到~/src下 然后解压

代码语言:javascript复制
tar jxvf WebKit-r169462.tar.bz2

安装依赖包

代码语言:javascript复制
./Tools/gtk/install-dependencies

GStreamer

代码语言:javascript复制
apt-get install gstreamer0.10-*
apt-get install libgstreamer*

开始编译

如果提示没有编译工具就用这个安装,一次到位!

代码语言:javascript复制
apt-get install build-essential

  测试系统 ubuntu12.04

0 人点赞