wkhtmltopdf打补丁?

我正在尝试将多个网址转换成PDF.但是,当我编译wkhtmltopdf或运行apt-get install wkhtmltopdf并尝试,它说:

Error: This version of wkhtmltopdf is build against an unpatched version of QT,and does not support more then one input document.

如果我使用静态版本,我得到Segmentation故障错误.

如何针对QT的补丁版本来构建wkhtmltopdf,还有除了逐个转换并重新统一的其他解决方案?

我的操作系统是Ubuntu 12.04 64位.谢谢.

解决方法

首先查看来源
git clone git://gitorIoUs.org/~antialize/qt/antializes-qt.git wkhtmltopdf-qt
 cd wkhtmltopdf-qt
 git checkout 4.8.4
 QTDIR=. ./bin/syncqt

Qt必须配置,通过查看输出可以找到一组好的qt配置选项

cat ../wkhtmltopdf/static_qt_conf_base ../wkhtmltopdf/static_qt_conf_linux | sed -re 's/#.*//'
cd wkhtmltopdf-qt
./configure -nomake tools,examples,demos,docs,translations -opensource -prefix "../wkqt"

和Qt编译和安装(这将需要一段时间)

make -j3 && make install
cd ..

您现在必须在wkhtmltopdf文件夹中运行qmake.

cd wkhtmltopdf
../wkqt/bin/qmake

Archived Google Code link.

相关文章

vue阻止冒泡事件 阻止点击事件的执行 <div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些