我使用wkhtmltoimage,一切都进行得很顺利,直到我要求它做的Twitter截图,我得到这个奇怪的错误:wkhtmltopdf似乎需要Phonon需要QCoreApplication :: applicationName;为什么?
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
我我正在使用Ubuntu 11,Apache2/PHP5和Qt4。
当我试图获取Google或其他网站的屏幕截图时,我没有收到此错误。
当它工作,我只得到这样的:http://dl.dropbox.com/u/20599297/twitter3.png
任何想法可能会导致这个错误?
UPDATE
我正在试图做的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)