在Ubuntu上配置SDL2的方法有以下几种:
sudo apt-get update
sudo apt-get install libsdl2-2.0-0 libsdl2-dev
./configure
make
sudo make install
sudo add-apt-repository ppa:zoogie/sdl2-snapshots
sudo apt-get update
sudo apt-get install libsdl2-2.0-0 libsdl2-dev
无论选择哪种方法,安装完成后就可以在Ubuntu上使用SDL2开发和运行程序了。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>