安装libsdl2-dev
在 ysyx 的教程中这一页要求安装libsdl2-dev
https://ysyx.oscc.cc/docs/ics-pa/0.3.html#updating-apt-package-information
中间可能出现
愿意可能是ubuntu20.04的版本问题
这时候需要编译SDL2库
sudo apt-get install libxext-dev
git clone https://github.com/libsdl-org/SDL.git -b SDL2
cd SDL
mkdir build
cd build
../configure
make
sudo make install
剩下的图像包libsdl2-image-dev,音频包libsdl2-mixer-dev,文字开发包libsdl2-ttf-dev
均可以在
https://github.com/libsdl-org
中找到Branch为SDL2的分支clone后,同上进行编译即可,由于ysyx未作要求,就不予安装
补充链接
作者:odjvnrij 创建时间:2024-09-19 15:05
最后编辑:odjvnrij 更新时间:2024-11-01 21:09
最后编辑:odjvnrij 更新时间:2024-11-01 21:09