我是关于SDL的'm currently going through this website's教程:
(http://lazyfoo.net/tutorials/SDL/01_hello_SDL/linux/index.php),
在Windows 10上使用Bash作为平台 . 我已经安装了SDL包apt-get install libsdl2-dev
并能够编译课程源代码(http://lazyfoo.net/tutorials/SDL/01_hello_SDL/01_hello_SDL.zip)
使用 g++ 01_hello_SDL.cpp -w -lSDL2 -o 01_hello_SDL
.
但是,当我使用 ./01_hello_SDL
运行可执行文件时,程序打印出 SDL could not initialize! SDL_Error: Failed to connect to the Mir Server
. 有谁知道解决这个问题?
1 回答
Windows Subsystem for Linux:
See also.