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
web

  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
sql

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

No package 'enchant' found微信

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

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
ide

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

No package 'enchant' foundthis

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),一個開發人員的家,來訴說本身的故事。

相關文章
相關標籤/搜索