[Minetest] Compilation de Minetest version stable. 1/ Ajouter le dépôt de source code : Ouvrir :
/etc/apt/sources.list
Chercher :
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
Remplacer par :
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
Action :
pi@raspberrypi:~/JEUX/MINETEST $ sudo apt-get update
2/ Répertoire de travail :
pi@raspberrypi:~ $ mkdir -p JEUX/MINETEST
pi@raspberrypi:~ $ cd JEUX/MINETEST/
pi@raspberrypi:~/JEUX/MINETEST $
3/ Installation des paquets de développement :
pi@raspberrypi:~/JEUX/MINETEST $ sudo apt-get build-dep minetest
pi@raspberrypi:~/JEUX/MINETEST $ sudo apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev
4/ Téléchargement du code source stable :
pi@raspberrypi:~/JEUX/MINETEST $ git clone https://github.com/minetest/minetest.git
pi@raspberrypi:~/JEUX/MINETEST $ cd minetest/
pi@raspberrypi:~/JEUX/MINETEST/minetest $ git checkout -b remotes/origin/stable-0.4
Basculement sur la nouvelle branche 'remotes/origin/stable-0.4'
5/ Compilation de Minetest :
pi@raspberrypi:~/JEUX/MINETEST/minetest $ cmake . -DRUN_IN_PLACE=TRUE -DENABLE_GLES =TRUE
pi@raspberrypi:~/JEUX/MINETEST/minetest $ make -j4
6/ Téléchargement de 'minetest_game' :
pi@raspberrypi:~/JEUX/MINETEST/minetest $ cd ..
pi@raspberrypi:~/JEUX/MINETEST $ git clone https://github.com/minetest/minetest_game.git
7/ Installation de 'minetest_game' :
pi@raspberrypi:~/JEUX/MINETEST $ cd minetest/games/
pi@raspberrypi:~/JEUX/MINETEST/minetest/games $ ln -s ../../minetest_game/
pi@raspberrypi:~/JEUX/MINETEST/minetest/games $ cd ..
8/ Lancement de Minetest :
pi@raspberrypi:~/JEUX/MINETEST/minetest $ cd bin/
pi@raspberrypi:~/JEUX/MINETEST/minetest/bin $ ./minetest
9/ Capture d'écran :
10) Lien :
https://github.com/minetest/minetest/tree/stable-0.4