Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
wkhtmltopdf补丁qt?_Qt_Ubuntu 12.04_Wkhtmltopdf - Fatal编程技术网

wkhtmltopdf补丁qt?

wkhtmltopdf补丁qt?,qt,ubuntu-12.04,wkhtmltopdf,Qt,Ubuntu 12.04,Wkhtmltopdf,我正在尝试将多个URL转换为PDF。但是,当我编译wkhtmltopdf或运行apt get install wkhtmltopdf并尝试时,它会显示: 错误:此版本的wkhtmltopdf是根据未修补版本的QT生成的,不支持多个输入文档 如果我使用静态版本,我会得到分段错误 我如何针对QT的补丁版本构建wkhtmltopdf,或者除了逐个转换和重新聚合之外,还有其他解决方案吗 我的操作系统是Ubuntu 12.04 64位。谢谢。首先查看源代码 git clone git://gitorio

我正在尝试将多个URL转换为PDF。但是,当我编译wkhtmltopdf或运行apt get install wkhtmltopdf并尝试时,它会显示:

错误:此版本的wkhtmltopdf是根据未修补版本的QT生成的,不支持多个输入文档

如果我使用静态版本,我会得到分段错误

我如何针对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,通过查看

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(这需要一段时间)

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

cd wkhtmltopdf
../wkqt/bin/qmake
.

去下载合适的版本。 它已经用QT修补过了

wkhtmltopdf --help
    or
wkhtmltopdf -V
应该显示

Description:
  Converts one or more HTML pages into a PDF document, using wkhtmltopdf patched qt.

从下载相应的debian(*.deb)软件包


Ubuntu新手?要安装,请双击下载的*.deb文件。

此链接可以回答问题,但最好在此处包含答案的基本部分,并提供链接供参考。如果链接页面更改,仅链接的答案可能会无效。我认为新版本将使用预编译的二进制文件工作,但不确定。不幸的是,“前沿”下载不是使用修补的qt构建的。(例如wkhtmltox-0.13.0-alpha-7b36694_msvc2013-win64)
Description:
  Converts one or more HTML pages into a PDF document, using wkhtmltopdf patched qt.