Site internet :
https://github.com/cataclysmbnteam/Cataclysm-BN/
Documentation :
https://github.com/cataclysmbnteam/Cataclysm-BN/blob/main/doc/src/content/docs/en/dev/guides/building/makefile.md
util01@station66:~$ sudo apt install -y ccache libsdl2-ttf-dev astyle
util01@station66:~$ mkdir -p JEUX/ROGUELIKE
util01@station66:~$ cd JEUX/ROGUELIKE/
util01@station66:~/JEUX/ROGUELIKE$
util01@station40:~/JEUX/ROGUELIKE$ wget https://github.com/cataclysmbnteam/Cataclysm-BN/archive/refs/tags/v0.6.0.tar.gz
util01@station66:~/JEUX/ROGUELIKEN$ tar xvfz v0.6.0.tar.gz
util01@station66:~/JEUX/ROGUELIKE$ cd Cataclysm-BN-0.6.0/
util01@station66:~/JEUX/ROGUELIKE/Cataclysm-BN-0.6.0$
util01@station66:~/JEUX/ROGUELIKE/Cataclysm-BN-0.6.0$ make -j4 TILES=1 SOUND=1 RELEASE=1 USE_HOME_DIR=1 CCACHE=1 LUA=1
Erreur n°1 :
/usr/local/include/SDL2/SDL_rect.h: In function ‘SDL_bool SDL_FRectEquals(const SDL_FRect*, const SDL_FRect*)’:
/usr/local/include/SDL2/SDL_rect.h:269:41: error: ‘SDL_FLT_EPSILON’ was not declared in this scope; did you mean ‘FLT_EPSILON’?
269 | return SDL_FRectEqualsEpsilon(a, b, SDL_FLT_EPSILON);
| ^~~~~~~~~~~~~~~
| FLT_EPSILON
Solution n°1 :
Ouvrir :
/usr/local/include/SDL2/SDL_rect.h
Chercher :
return SDL_FRectEqualsEpsilon(a, b, SDL_FLT_EPSILON);
Remplacer par :
return SDL_FRectEqualsEpsilon(a, b, FLT_EPSILON);
util01@station66:~/JEUX/ROGUELIKE/Cataclysm-BN-0.6.0$ ./cataclysm-launcher