SDL2-2.0.4出现Could not initialize SDL : No available video device

Ubutu12.04在安装SDL2-2.0.4后SDL_Init初始化SDL_INIT_VIDEO时出现Could not initialize SDL : No available video device错误,但是在SDL-1.2.15版本却是正常的,解决办法:

    sudo apt-get build-dep xscreensaver
    sudo apt-get source xscreensaver -b

原文链接

http://askubuntu.com/questions/443053/could-not-initialize-sdl-no-available-video-device-dont-move

你可能感兴趣的:(linux)