Installation de Quakeforge.
1) Installation des paquets de configuration de compilation :
pi@raspberrypi:~/JEUX/QUAKE1 $ sudo apt-get install automake autoconf libtool flex
2) Installation de SDL :
pi@raspberrypi:~/JEUX/QUAKE1 $ sudo apt-get install libsdl1.2-dev libsdl-sound1.2-dev libsdl-net1.2-dev libsdl-image1.2-dev libsdl-image1.2 libsdl-gfx1.2-dev libsdl-console-dev libsmpeg-dev imagemagick
3) Répertoire de travail :
pi@raspberrypi:~ $ mkdir -p JEUX/QUAKE1 pi@raspberrypi:~ $ cd JEUX/QUAKE1/
4) Installation de M4 :
pi@raspberrypi:~/JEUX/QUAKE1 $ wget ftp://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.gz pi@raspberrypi:~/JEUX/QUAKE1 $ tar xvfz m4-1.4.16.tar.gz pi@raspberrypi:~/JEUX/QUAKE1/m4-1.4.16 $ ./configure pi@raspberrypi:~/JEUX/QUAKE1/m4-1.4.16 $ make
Erreur :
make[3]: Entering directory '/home/pi/JEUX/QUAKE1/m4-1.4.16/lib' gcc -std=gnu99 -I. -g -O2 -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c In file included from clean-temp.h:22:0, from clean-temp.c:23: ./stdio.h:477:1: error: 'gets' undeclared here (not in a function) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ^ Makefile:1399: recipe for target 'clean-temp.o' failed
Solution :
Ouvrir :
lib/stdio.h
Chercher et supprimer :
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
pi@raspberrypi:~/JEUX/QUAKE1/m4-1.4.16 $ sudo make install pi@raspberrypi:~/JEUX/QUAKE1/m4-1.4.16 $ cd .. pi@raspberrypi:~/JEUX/QUAKE1 $
5) Installation de Bison :
pi@raspberrypi:~/JEUX/QUAKE1 $ wget http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.gz pi@raspberrypi:~/JEUX/QUAKE1 $ tar xvfz bison-3.0.4.tar.gz pi@raspberrypi:~/JEUX/QUAKE1 $ cd bison-3.0.4/ pi@raspberrypi:~/JEUX/QUAKE1/bison-3.0.4 $ ./configure && make && sudo make install && sudo /sbin/ldconfig pi@raspberrypi:~/JEUX/QUAKE1/bison-3.0.4 $ cd ..
6) Installation de Quakeforge :
pi@raspberrypi:~/JEUX/QUAKE1 $ git clone git://git.code.sf.net/p/quake/quakeforge pi@raspberrypi:~/JEUX/QUAKE1 $ cd quakeforge/ pi@raspberrypi:~/JEUX/QUAKE1/quakeforge $ ./bootstrap pi@raspberrypi:~/JEUX/QUAKE1/quakeforge $ ./configure --disable-alsa --disable-oss --disable-Werror pi@raspberrypi:~/JEUX/QUAKE1/quakeforge $ make pi@raspberrypi:~/JEUX/QUAKE1/quakeforge $ sudo make install pi@raspberrypi:~/JEUX/QUAKE1/quakeforge $ sudo /sbin/ldconfig pi@raspberrypi:~/JEUX/QUAKE1/quakeforge $ cd
7) Installation des ressources :
pi@raspberrypi:~ $ mkdir -p .quakeforge/id1 pi@raspberrypi:~ $ ln -s .quakeforge/ quakeforge pi@raspberrypi:~ $ cd .quakeforge/id1/ pi@raspberrypi:~/.quakeforge/id1 $
Copier les ressources *.pak dans ~/.quakeforge/id1/
pi@raspberrypi:~/.quakeforge/id1 $ ls -l *.pak -rwxr----- 1 pi pi 18276119 mai 8 12:17 pak0.pak -rwxr----- 1 pi pi 34257856 mai 8 12:16 pak1.pak pi@raspberrypi:~/.quakeforge/id1 $ cd
8) Lancement de Quakeforge :
pi@raspberrypi:~ $ nq-sdl +set vid_render sw +set vid_width 640 +set vid_height 480
Comments are closed, but trackbacks and pingbacks are open.