目前我打算通過這個網站的教程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