[Dev] Installation de SDL2

[Dev] Installation de SDL2.
1) Répertoire de travail :

[~] ➔ mkdir -p JEUX/SDL2
[~] ➔ cd JEUX/SDL2/
[~/JEUX/SDL2] ➔

I) Installation de SDL2 :
1) Téléchargement du code source :

[~/JEUX/SDL2] ➔ wget https://www.libsdl.org/release/SDL2-2.0.3.tar.gz
[~/JEUX/SDL2] ➔ tar xvfz SDL2-2.0.3.tar.gz
[~/JEUX/SDL2] ➔ cd SDL2-2.0.3

2) Configuration :

[~/JEUX/SDL2/SDL2-2.0.3] ➔ ./configure --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl

3) Compilation et installation :

[~/JEUX/SDL2/SDL2-2.0.3] ➔ make && sudo make install
[~/JEUX/SDL2/SDL2-2.0.3] ➔ sudo /sbin/ldconfig
[~/JEUX/SDL2/SDL2-2.0.3] ➔ cd ..
[~/JEUX/SDL2] ➔

II) Installation de SDL2 TTF :
1) Téléchargement du code source :

[~/JEUX/SDL2] ➔ wget http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.12.tar.gz
[~/JEUX/SDL2] ➔ tar xvfz SDL2_ttf-2.0.12.tar.gz
[~/JEUX/SDL2] ➔ cd SDL2_ttf-2.0.12/
[~/JEUX/SDL2/SDL2_ttf-2.0.12] ➔

2) Configuration, compilation et installation :

[~/JEUX/SDL2/SDL2_ttf-2.0.12] ➔ ./configure && make && sudo make install
[~/JEUX/SDL2/SDL2_ttf-2.0.12] ➔ sudo /sbin/ldconfig
[~/JEUX/SDL2/SDL2_ttf-2.0.12] ➔ cd ..

III) Installation de SDL2 Image :
1) Téléchargement du code source :

[~/JEUX/SDL2] ➔ wget http://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz
[~/JEUX/SDL2] ➔ tar xvfz SDL2_image-2.0.0.tar.gz
[~/JEUX/SDL2] ➔ cd SDL2_image-2.0.0/
[~/JEUX/SDL2/SDL2_image-2.0.0] ➔

2) Configuration, compilation et installation :

[~/JEUX/SDL2/SDL2_image-2.0.0] ➔ ./configure && make && sudo make install
[~/JEUX/SDL2/SDL2_image-2.0.0] ➔ sudo /sbin/ldconfig
[~/JEUX/SDL2/SDL2_image-2.0.0] ➔ cd ..

IV ) Installation de SPMEG2 :
1) Téléchargement du code source :

[~/JEUX/SDL2] ➔ wget http://www.libsdl.org/projects/smpeg/release/smpeg2-2.0.0.tar.gz
[~/JEUX/SDL2] ➔ tar xvfz smpeg2-2.0.0.tar.gz
[~/JEUX/SDL2] ➔ cd smpeg2-2.0.0

2) Configuration, compilation et installation :

[~/JEUX/SDL2/smpeg2-2.0.0] ➔ ./configure && make && sudo make install
[~/JEUX/SDL2/smpeg2-2.0.0] ➔ sudo /sbin/ldconfig
[~/JEUX/SDL2/smpeg2-2.0.0] ➔ cd ..

V) Installation de SDL2 Mixer :
1) Téléchargement du code source :

[~/JEUX/SDL2] ➔ wget http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.0.tar.gz
[~/JEUX/SDL2] ➔ tar xvfz SDL2_mixer-2.0.0.tar.gz
[~/JEUX/SDL2] ➔ cd SDL2_mixer-2.0.0/

2) Configuration, compilation et installation :

[~/JEUX/SDL2/SDL2_mixer-2.0.0] ➔ ./configure && make && sudo make install
[~/JEUX/SDL2/SDL2_mixer-2.0.0] ➔ sudo /sbin/ldconfig
[~/JEUX/SDL2/SDL2_mixer-2.0.0] ➔ cd ..

VI) Lien :
https://solarianprogrammer.com/2015/01/22/raspberry-pi-raspbian-getting-started-sdl-2/

Comments are closed, but trackbacks and pingbacks are open.