qtwebkit(QtWebKit-2.2.0.tar.gz)
http://trac.webkit.org/wiki/BuildingQtOnLinux
一、编译(opensuse)
1、下载源
zypper ar http://mirrors.163.com/openSUSE/distribution/11.4/repo/non-oss/ non-oss;
zypper ar http://mirrors.163.com/openSUSE/distribution/11.4/repo/oss oss;
zypper ar http://mirrors.163.com/openSUSE/update/11.4/ update ;
#遇到错误:
#Retrieving package OpenOffice_org-icon-themes-3.0.0.6-1.2.noarch (1/592), 17.4
#M (27.4 M unpacked)
#Failed to mount cd:///?devices=/dev/hdc on : Mounting media failed
#需要禁止掉dvd安装源:
#zypper ls ;zypper mr --disable 6(dvd对应的id)
#sqlite-devel : http://rpmfind.net/linux/rpm2html/search.php?query=sqlite3-devel
2、链接使用gold(否则会出现内存耗光的错误)
下载gold http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.gz
./configure --prefix=/usr/local/gold/
make;make install;
mv /usr/bin/ld /usr/bin/ld.orig
ln -fs /usr/local/gold/bin/ld.gold /usr/bin/ld
zypper in libqt4-devel gperf bison libicu-devel sqlite-devel libQtWebKit-devel;
./Tools/Scripts/build-webkit --qt --no-video --debug > /root/build.log 2>&1 &
运行(图形模式下)
./Tools/Scripts/run-launcher --qt --debug