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

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

你可能感兴趣的:(Yocto,Yocto,项目,Linux,内核开发手册,临时问题解决,linux)