qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin “xcb“

  • Post author:
  • Post category:其他

qt远程调试报错

 

10:40:26: Starting /opt/qttest1/bin/qttest1...
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, vnc, xcb.

10:40:26: Remote process crashed.

解决方案

设置环境变量

export DISPLAY=:0


版权声明:本文为qq_15269787原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。