Install SDL2
from https://www.libsdl.org/download-2.0.php
Download the latest source from the SDL website.
unzip SDL2-2.0.20.zip

Extract the archive and cd to the folder that got extracted. Configure the installation using
./configure
Compile the source using the make command
make all
Finally, install the package using the make command
make install
if no make
apt install make
from https://wiki.libsdl.org/Installation
git clone https://github.com/libsdl-org/SDL
cd SDL
mkdir build
cd build
../configure
make
sudo make install
留言
張貼留言