目前我打算通过这个网站的教程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
。有没有人知道这个问题的解决办法?
可能重复:https://stackoverflow.com/q/25468976/440558 –
想这些解决方案了。没有。 – EastSideCoding