2017-05-25 406 views
0

目前我打算通过这个网站的教程SDL:使用bash在Windows 10为平台
http://lazyfoo.net/tutorials/SDL/01_hello_SDL/linux/index.php),SDL_Init失败“SDL_Error:无法连接到MIR服务器”

。我已经安装使用
apt-get install libsdl2-dev
SDL的包,并能够使用g++ 01_hello_SDL.cpp -w -lSDL2 -o 01_hello_SDL编译课的源代码(http://lazyfoo.net/tutorials/SDL/01_hello_SDL/01_hello_SDL.zip

但是,当我使用./01_hello_SDL运行可执行文件时,程序打印出SDL could not initialize! SDL_Error: Failed to connect to the Mir Server。有没有人知道这个问题的解决办法?

+0

可能重复:https://stackoverflow.com/q/25468976/440558 –

+0

想这些解决方案了。没有。 – EastSideCoding

回答

2

Windows Subsystem for Linux

This subsystem cannot run all Linux software such as some using a graphical user interface (GUI) or those in need of unimplemented Linux kernel services.[7] It is, however, possible to mitigate this by running graphical X Window System applications with an external X server such as VcXsrv or Xming.

See also.

相关问题