Rust Programming By Example
上QQ阅读APP看书,第一时间看更新

Installing SDL2 on Linux

Depending on your package management tool, run the following to install SDL2 on Linux:

apt package mananger:

$ sudo apt-get install libsdl2-dev

dnf package manager:

$ sudo dnf install SDL2-devel

yum package manager:

$ yum install SDL2-devel

Once done, your SDL2 installation is ready!