Distribution : Raspbian Jessie with desktop Image : 2017-07-05-raspbian-jessie.zip Adresse de téléchargement : http://vx2-downloads.raspberrypi.org/raspbian/images/raspbian-2017-07-05/2017-07-05-raspbian-jessie.zip
Ouvrir :
/etc/apt/sources.list
Chercher :
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
Remplacer par :
deb http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian jessie main contrib non-free rpi
pi@localhost:~ $ sudo apt-get update
pi@localhost:~ $ sudo apt-get upgrade
pi@localhost:~ $ sudo apt-get install vim mc screen links
pi@localhost:~/JEUX/QUAKE2 $ sudo apt-get install build-essential libgl1-mesa-dev libsdl2-dev libogg-dev libvorbis-dev libopenal-dev zlib1g-dev
pi@localhost:~/JEUX/QUAKE2 $ sudo apt-get install libsdl1.2-dev git
pi@localhost:~ $ sudo raspi-config
- [7 Advanced Options]
- [A6 GL Driver]
- [G1 GL (Full KMS) OpenGL desktop driver with full KMS]
- [<ok>]
- [<ok>]
- [7 Advanced Options]
- [A3 Memory Split]
- 128
- [<ok>]
- [<finish>]
- [<oui>]
pi@localhost:~ $ mkdir -p JEUX/QUAKE2
pi@localhost:~ $ cd JEUX/QUAKE2/
pi@localhost:~/JEUX/QUAKE2 $
pi@localhost:~/JEUX/QUAKE2 $ wget https://github.com/yquake2/yquake2/archive/opengl_es.zip
pi@localhost:~/JEUX/QUAKE2 $ unzip opengl_es.zip
pi@localhost:~/JEUX/QUAKE2 $ cd yquake2-opengl_es/
pi@localhost:~/JEUX/QUAKE2/yquake2-opengl_es $
Ouvrir :
Makefile
Chercher :
# Refuse all other platforms as a firewall against PEBKAC
# (You'll need some #ifdef for your unsupported plattform!)
ifeq ($(findstring $(ARCH), i386 x86_64 sparc64),)
$(error arch $(ARCH) is currently not supported)
endif
Remplacer par :
# Refuse all other platforms as a firewall against PEBKAC
# (You'll need some #ifdef for your unsupported plattform!)
ifeq ($(findstring $(ARCH), i386 x86_64 sparc64 armv7l),)
$(error arch $(ARCH) is currently not supported)
endif
pi@localhost:~/JEUX/QUAKE2/yquake2-opengl_es $ make
===> Building quake2
make release/quake2
make[1]: Entering directory '/home/pi/JEUX/QUAKE2/yquake2-opengl_es'
===> CC src/client/cl_cin.c
...
===> CC src/game/savegame/savegame.c
===> LD release/baseq2/game.so
make[1]: Leaving directory '/home/pi/JEUX/QUAKE2/yquake2-opengl_es'
pi@localhost:~/JEUX/QUAKE2/yquake2-opengl_es $
pi@localhost:~/JEUX/QUAKE2/yquake2-opengl_es $ cd ..
pi@localhost:~/JEUX/QUAKE2 $ mkdir demo
pi@localhost:~/JEUX/QUAKE2 $ cd demo/
pi@localhost:~/JEUX/QUAKE2/demo $ wget https://ayera.dl.sourceforge.net/project/dcquake/quake2/demo/q2-314-demo-x86.exe
pi@localhost:~/JEUX/QUAKE2/demo $ unzip q2-314-demo-x86.exe
pi@localhost:~/JEUX/QUAKE2/demo $ cp Install/Data/baseq2/ ../yquake2-opengl_es/release/ -r
pi@localhost:~/JEUX/QUAKE2/demo $ cd ../yquake2-opengl_es/
pi@localhost:~/JEUX/QUAKE2/yquake2-opengl_es $ cd release/
pi@localhost:~/JEUX/QUAKE2/yquake2-opengl_es/release $
Ouvrir :
/home/pi/JEUX/QUAKE2/yquake2-opengl_es/release/yq2.cfg
Ajouter :
set s_initsound 0
set r_shadows 0
set gl_shadows 0
set gl_dynamic 0
pi@localhost:~/JEUX/QUAKE2/yquake2-opengl_es/release $ ./quake2
https://www.raspberrypi.org/forums/viewtopic.php?f=78&t=180667#p1194521 https://miniordi.hacktech.dev/quake-2/