编译webkit for gtk port,简要记录。
./WebKit-r96832/Tools/Scripts/build-webkit --gtk
正常情况下会缺少各种库,没关系,一个一个解决。下面列举了我所遇到的一些问题:
sudo apt-get install libtool
sudo apt-get install gtk-doc-tools
错误:undefined macro XXX (不记得了~~)
解决:sudo apt-get install libgtkhtml* (全部安装)
错误:configure: error: JPEG library (libjpeg) not found
解决:sudo apt-get install libjpeg8-dev (当时我编译的时候libjpeg的最新版是8,你编译的时候要选择当前的最新版,下同!)
错误:Cannot find icu-config. The ICU library is needed.
解决:sudo apt-get install libicu-dev
错误:configure: error: Package requirements (gail-3.0 >= 3.0) were not met: No package 'gail-3.0' found
解决:sudo apt-get install libgail-3-dev
错误:configure: error: X Toolkit Intrinsics library (libXt) not found
解决:sudo apt-get install libxt-dev
错误:configure: error: Package requirements (libsoup-2.4 >= 2.33.6) were not met: No package 'libsoup-2.4' found
解决:sudo apt-get install libsoup2.4-dev
错误:configure: error: SQLite3 is required for the Database related features
解决:sudo apt-get install libsqlite3-dev
错误:configure: error: Package requirements (libxslt >= 1.1.7) were not met: No package 'libxslt' found
解决:sudo apt-get install libxslt-dev
错误:configure: error: Package requirements (geoclue) were not met: No package 'geoclue' found
解决:sudo apt-get install libgeoclue-dev
错误:configure: error: Package requirements (gstreamer-0.10 >= 0.10
gstreamer-app-0.10
gstreamer-base-0.10
gstreamer-interfaces-0.10
gstreamer-pbutils-0.10
gstreamer-plugins-base-0.10 >= 0.10.30
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-interfaces-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
解决:sudo apt-get install libgstreamer*
if the version of gst is old, please lower the required gst version
by Source/autotools/Versions.m4.
libudev dependence:
sudo apt-get install libgudev-1.0-0
harfbuzz need to patch:
Tools/gtk/patches/harfbuzz-icu-detection-fix.patch
Tools/efl/patches/harfbuzz-icu-detection-fix.patch
cd harfbuzz path
patch <
Tools/gtk/patches/harfbuzz-icu-detection-fix.patch
make install
libtool: link: `Source/WebCore/css/libWebCore_la-CSSSegmentedFontFace.lo' is not a valid libtool object
solution:
./WebKit-r96832/Tools/Scripts/build-webkit --gtk
正常情况下会缺少各种库,没关系,一个一个解决。下面列举了我所遇到的一些问题:
sudo apt-get install libtool
sudo apt-get install gtk-doc-tools
错误:undefined macro XXX (不记得了~~)
解决:sudo apt-get install libgtkhtml* (全部安装)
错误:configure: error: JPEG library (libjpeg) not found
解决:sudo apt-get install libjpeg8-dev (当时我编译的时候libjpeg的最新版是8,你编译的时候要选择当前的最新版,下同!)
错误:Cannot find icu-config. The ICU library is needed.
解决:sudo apt-get install libicu-dev
错误:configure: error: Package requirements (gail-3.0 >= 3.0) were not met: No package 'gail-3.0' found
解决:sudo apt-get install libgail-3-dev
错误:configure: error: X Toolkit Intrinsics library (libXt) not found
解决:sudo apt-get install libxt-dev
错误:configure: error: Package requirements (libsoup-2.4 >= 2.33.6) were not met: No package 'libsoup-2.4' found
解决:sudo apt-get install libsoup2.4-dev
错误:configure: error: SQLite3 is required for the Database related features
解决:sudo apt-get install libsqlite3-dev
错误:configure: error: Package requirements (libxslt >= 1.1.7) were not met: No package 'libxslt' found
解决:sudo apt-get install libxslt-dev
错误:configure: error: Package requirements (geoclue) were not met: No package 'geoclue' found
解决:sudo apt-get install libgeoclue-dev
错误:configure: error: Package requirements (gstreamer-0.10 >= 0.10
gstreamer-app-0.10
gstreamer-base-0.10
gstreamer-interfaces-0.10
gstreamer-pbutils-0.10
gstreamer-plugins-base-0.10 >= 0.10.30
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-interfaces-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
解决:sudo apt-get install libgstreamer*
Tools/gtk/patches/harfbuzz-icu-detection-fix.patch Tools/efl/patches/harfbuzz-icu-detection-fix.patch