X服务器连接错误-“ Windows 10 + WSL”

错误代码

当我尝试在wsl上使用vs代码运行教程代码时,出现以下错误我的意思是,我在Windows 10上使用vs代码,但是我的所有构建系统都在wsl ubuntu上。为了简要说明,我想在屏幕上显示3d图像。

ERROR: In /build/vtk6-VHOYAG/vtk6-6.3.0+dfsg1/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 1475
vtkXOpenGLRenderWindow (0x7fffca1a12a0): bad X server connection. DISPLAY=Aborted (core dumped) 

我不熟悉linux系统,但我认为我需要允许渲染。您知道如何显示图像吗?

错误代码

已解决:如果要在wls上运行图形程序,则需要在Windows 10上运行的X服务器。可以使用Xming从wsl 2获取输出

但是现在我有一个新问题

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

wsl windows 10 上的 npm 更新错误

Windows 10 WSL bash别名

Windows 10 Home和WSL上的Docker错误

连接到Wifi网络时Windows 10 Wifi设置错误的DNS服务器

在Windows 10 WSL上访问AWS凭证:错误:在TCPConnectWrap.afterConnect上连接ECONNREFUSED 169.254.169.254:80

在Win10上安装WSL(Linux的Windows子系统)上的错误0x80070091

Windows 10上的WSL / Bash:创建UNIX用户失败,返回错误代码10

Windows 10自动从VPN服务器断开连接

Windows 10无法连接到PPTP VPN服务器

如何使Windows 10 Terminal启动WSL?

如何从Windows 10设置`WSL`密码?

Windows 10 WSL-Maven配置

Windows 10 WSL上的Kali Linux

Windows 10上的Ubuntu:Docker vs WSL

Windows 10 Ubuntu WSL 随机冻结

空闲 SSH 连接在 ubuntu 20.04 WSL (Windows10) 中被重置

我在Windows 10上运行mysqld,如何从WSL连接到其端口

从 Windows 10 主机连接 WSL2 Ubuntu 中安装的 PostgreSQL 时遇到问题

在Windows 10上启用了WSL,但未启用的Linux.exe错误

运行Synergy时出现此错误:“连接被拒绝”(带有Windows 10客户端的macOS服务器)

无法在Windows 10上使用MAMP连接到'localhost'(10061)(2003)上的MySQL服务器错误phpmyadmin

Windows 10 WSL执行npm安装后,辅助硬盘驱动器消失了

WSL Windows 10中ubuntu中的kubectl代理

在 Windows 10 上拒绝 Clion 和 cmd ssh WSL

减少WSL安装的大小(在Windows 10上为Ubuntu 18)

如何从Windows 10 WSL访问linux / Ubuntu文件?

无法在Windows 10 WSL中更改root密码

/ dev / random在Windows 10(WSL)的Ubuntu中极慢

如何让 Ubuntu 20.04 在 Windows 10 WSL 2 上运行?