ubuntu下编译webkit

泪湿孤枕 提交于 2019-12-07 17:36:17

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),一个开发人员的家,来诉说自己的故事。


易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!