小编Eas*_*ing的帖子

SDL_Init失败,出现'SDL_Error:无法连接到Mir Server'

我目前正在浏览这个关于SDL的网站教程:
(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.有谁知道解决这个问题?

c++ sdl sdl-2 windows-subsystem-for-linux

2
推荐指数
1
解决办法
2104
查看次数

标签 统计

c++ ×1

sdl ×1

sdl-2 ×1

windows-subsystem-for-linux ×1