Qt4 wkhtmltopdf似乎需要声子需要QCoreApplication::applicationName;为什么?

Qt4 wkhtmltopdf似乎需要声子需要QCoreApplication::applicationName;为什么?,qt4,screenshot,wkhtmltopdf,phonon,Qt4,Screenshot,Wkhtmltopdf,Phonon,我正在使用wkhtmltoimage,一切都进行得很顺利,直到我要求它对twitter进行截图,我发现了一个奇怪的错误: Loading page (1/2) WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface Cannot connect to server socket err = No such f

我正在使用wkhtmltoimage,一切都进行得很顺利,直到我要求它对twitter进行截图,我发现了一个奇怪的错误:

Loading page (1/2)
WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface 
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Rendering (2/2)                                                   
Done
以下是我使用的命令:

xvfb-run wkhtmltoimage --format png --quality 100 http://twitter.com/jnbdz twitter2.png
我正在使用Ubuntu11、Apache2/PHP5和Qt4

当我试图获取谷歌或其他网站的截图时,我并没有遇到这个错误

当它工作时,我只得到以下信息:

你知道是什么导致了这个错误吗

更新

在尝试拍摄yahoo.com的屏幕截图时,我遇到了一个不同的错误:

xvfb-run wkhtmltoimage --format png --quality 100 http://yahoo.com/ yahoo1.png


Loading page (1/2)
Error: Failed loading page http://yahoo.com/ (sometimes it will work just to ignore this error with --load-error-handling ignore)
Error: Failed loading page http://yahoo.com/ (sometimes it will work just to ignore this error with --load-error-handling ignore)
好的,那么,按顺序:

1/wkhtmltoimage使用Webkit,出于多种原因,Webkit可能正在加载声子。例如,为了呈现多媒体Web内容。不过这并不重要

2/某些与音频相关的声子功能需要设置应用程序名称。您可能不需要这些功能来呈现网页,所以不要担心这个警告

3/声子尝试然后无法连接到Jack音频服务器,可能是因为它扫描可用的音频输出系统。你不需要音频,所以你也可以忽略这些错误

4/据我所知,Twitter大量使用JavaScript进行渲染。我不知道wkhtmltoimage附带JavaScript解释器。因此,渲染问题几乎可以得到保证

您必须了解wkhtmltoimage中使用的方法有些原始,不太可靠。它在许多情况下都会失败,首先是在处理动态内容时

不过,您可能会更幸运地使用手机版

至于雅虎的错误,它们似乎是连接错误,与上述任何一项都无关