ubuntu下编译webkit

1.下载webkit源码,由于ubuntu版本为10.04,所以下载的webkit版本也比较靠前。
2.解压到文件夹下,运行/WebKit-r58572/WebKitTools/Scripts/build-webkit --gtk
3.遇到错误:

  1).Warning: not running gtk-docize.
automake: cannot open < gtk-doc.make: No such file or directory
Failed to setup build environment using 'autotools'!
解决方法:sudo apt-get install gtk-doc-tools

  2).checking which Unicode backend to use... icu
checking for icu-config... no
configure: error: Cannot find icu-config. The ICU library is needed.
Failed to setup build environment using 'autotools'!
解决方法:sudo apt-get install libicu-dev

  3).checking for ENCHANT... configure: error: Package requirements (enchant >= 0.22) were not met:

No package 'enchant' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ENCHANT_CFLAGS
and ENCHANT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Failed to setup build environment using 'autotools'!
解决方法:sudo apt-get install libenchant-dev

  4).checking for ENCHANT... configure: error: Package requirements (enchant >= 0.22) were not met:

No package 'enchant' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ENCHANT_CFLAGS
and ENCHANT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Failed to setup build environment using 'autotools'!
解决方法:sudo apt-get install libsoup2.4-dev

  5).checking for library containing sqlite3_open16... no
configure: error: SQLite3 is required to enable Database support
Failed to setup build environment using 'autotools'!
解决方法:sudo apt-get install libsqlite3-dev

  6).checking for LIBXSLT... configure: error: Package requirements (libxslt >= 1.1.7) were not met:

No package 'libxslt' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXSLT_CFLAGS
and LIBXSLT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Failed to setup build environment using 'autotools'!
解决方法:sudo apt-get install libxslt-dev

  7).checking for GEOCLUE... configure: error: Package requirements (geoclue) were not met:

No package 'geoclue' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GEOCLUE_CFLAGS
and GEOCLUE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Failed to setup build environment using 'autotools'!
解决方法:sudo apt-get install libgeoclue-dev

  8).checking for GSTREAMER... configure: error: Package requirements (gstreamer-0.10 >= 0.10
                     gstreamer-app-0.10
                     gstreamer-base-0.10
                     gstreamer-pbutils-0.10
                     gstreamer-plugins-base-0.10 >= 0.10.25
                     gstreamer-video-0.10) were not met:

No package 'gstreamer-0.10' found
No package 'gstreamer-app-0.10' found
No package 'gstreamer-base-0.10' found
No package 'gstreamer-pbutils-0.10' found
No package 'gstreamer-plugins-base-0.10' found
No package 'gstreamer-video-0.10' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GSTREAMER_CFLAGS
and GSTREAMER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Failed to setup build environment using 'autotools'!
解决方法:sudo apt-get install libgstreamer*


编译完成后,会提示运行命令
===========================================================
 WebKit is now built (51m:57s). 
 To run GtkLauncher with this newly-built code, use the
 "WebKitTools/Scripts/run-launcher" script.
===========================================================

运行:
./WebKitTools/Scripts/run-launcher --gtk


技术人员都有自己的情怀,深陷其中而不被理解,欢迎关注个人微信公众平台:程序员互动联盟(coder_online),一个开发人员的家,来诉说自己的故事。


转载于:https://my.oschina.net/ghost045/blog/395443

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值