文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>linux 网页快照 CutyCapt

linux 网页快照 CutyCapt

时间:2010-12-11  来源:liushan

下面是安装过程,其中遇到很多问题,请用yum install 把相应的包安装上,这里不介绍了

1.先装qmake ,下载地址如下:

(64位)
wget http://dl.atrpms.net/el5-x86_64/atrpms/testing/qt44-4.4.3-10_4.el5.x86_64.rpm
wget http://dl.atrpms.net/el5-x86_64/atrpms/testing/qt44-x11-4.4.3-10_4.el5.x86_64.rpm
wget http://dl.atrpms.net/el5-x86_64/atrpms/testing/qt44-devel-4.4.3-10_4.el5.x86_64.rpm

(32位)
wget http://ftp.riken.go.jp/Linux/atrpms/el5-i386/atrpms/testing/qt44-4.4.3-10_4.el5.i386.rpm
wget http://ftp.riken.go.jp/Linux/atrpms/el5-i386/atrpms/testing/qt44-x11-4.4.3-10_4.el5.i386.rpm
wget http://ftp.riken.go.jp/Linux/atrpms/el5-i386/atrpms/testing/qt44-devel-4.4.3-10_4.el5.i386.rpm

装个qmake 的依赖:

yum install libXi-devel
yum install libXinerama-devel

安装好后安装qmake

rpm -ivh qt44-4.4.3-10*
rpm -ivh qt44-x11-4.4.3-10*

(CentOS这步会报少依赖,用yum 安装上)
rpm -e qt-devel --nodeps --allmatches
rpm -ivh qt44-devel-4.4.3-10*

修改 /etc/profile,最后并:source /etc/profile

(64位为如下:)

export QTDIR=/usr/lib64/qt44
export QTLIB=/usr/lib64/qt44/lib
export QTINC=/usr/lib64/qt44/include
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export PATH=$QTDIR/bin:$PATH

(32位如下:)

export QTDIR=/usr/lib/qt44
export QTLIB=/usr/lib/qt44/lib
export QTINC=/usr/lib/qt44/include
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export PATH=$QTDIR/bin:$PATH

安装 CutyCapt

svn co https://cutycapt.svn.sourceforge.net/svnroot/cutycapt
cd ./cutycapt/CutyCapt
qmake

(没安装qt44-devel这步通不过~~)
make

下载个x-server

wget http://www.flexthinker.com/wp-content/uploads/2009/11/xvfb-run.sh.txt

mv ./xvfb-run.sh.txt ./xvfb-run.sh

chmod u+x ./xvfb-run.sh

安装中文包:

yum install fonts-chinese

使用:

./xvfb-run.sh --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=http://www.163.com --out=163.jpg

备注:24不要超过24

 

 

 

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载