2017-05-25 411 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.

相關問題