WSL:QT 应用程序无法启动

Chr*_*bek 2 x-server xming windows-10 windows-subsystem-for-linux windows-10-v1903

我已经通过 Windows 10 v1903 上的 WSL 在 Ubuntu (18.04) 上编译了一个简单的 QT Quick 应用程序(使用Ruby-Qml,但我认为这并不重要)并在使用Xming启动时出现以下错误。

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-xxxx'
failed to get the current screen resources
WARNING: Application calling GLX 1.3 function "glXCreatePbuffer" when GLX 1.3 is not supported!  This is an application bug!
QGLXContext: Failed to create dummy context
Run Code Online (Sandbox Code Playgroud)

任何想法如何解决这个问题?

Chr*_*bek 6

对于仍在使用 Windows 10 v1903 的用户: