[Qtwebengine] 回复: How do I run web engine on a sever without a display?
Nemo
377307289 at qq.com
Tue Dec 8 06:58:37 CET 2015
Do not call show() member function of widgets, the application will become a console application.
------------------ 原始邮件 ------------------
发件人: "Kevin Truong";<knt261 at gmail.com>;
发送时间: 2015年12月8日(星期二) 中午11:47
收件人: "qtwebengine"<qtwebengine at qt-project.org>;
主题: [Qtwebengine] How do I run web engine on a sever without a display?
I have a server running linux with no active display. When I try to run a program that calls qt web engine, I get this error:
QXcbConnection: Could not connect to display
The only way I can get it to run is by installing xvfb (X virtual frame buffer), and then running:
xvfb-run -s "-screen 0 640x480x16" ./myProgram
However, xvfb introduces additional complexity when it comes to debugging (such as if an xvfb server hangs, all subsequent request will silently hang as well), and I would like to know if there is a way I can get around to not use it.
I know we can run WebKit completely headless because I can use the same linux server with no active display to run phantomjs just fine, and it doesn't produce any display errors. So I was wondering, is there a way I can run qt web engine completely headless as well?
Best,
Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qtwebengine/attachments/20151208/41e1803c/attachment.html>
More information about the QtWebEngine
mailing list