在终端窗口依次执行以下命令,安装 sdl2:
sudo apt-get install libsdl2-2.0
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-mixer-dev
sudo apt-get install libsdl2-image-dev
sudo apt-get install libsdl2-ttf-dev
sudo apt-get install libsdl2-gfx-dev
作者:right_33cb
链接:https://www.jianshu.com/p/17ff0f40ec08
来源:简书