我正在尝试将多个网址转换成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
原文地址:https://www.jb51.cc/html/229808.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。