I’m trying to compile on linux following the instructions here https://github.com/CleverRaven/Cataclysm-DDA/blob/master/COMPILING.md#linux-native-sdl-builds. It compiles fine if I do it without tiles, but when I try make TILES=1 it throws errors.
Package SDL2_image was not found in the pkg-config search path.
Perhaps you should add the directory containing SDL2_image.pc' to the PKG_CONFIG_PATH environment variable No package 'SDL2_image' found Package SDL2_ttf was not found in the pkg-config search path. Perhaps you should add the directory containing
SDL2_ttf.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘SDL2_ttf’ found
g++ -DGIT_VERSION -DTILES -DLOCALIZE -ffast-math -Og -Wall -Wextra -D_GLIBCXX_DEBUG -g -fsigned-char -std=c++11 -MMD -MP -I/usr/include/SDL2 -D_REENTRANT -c src/animation.cpp -o obj/tiles/animation.o
In file included from src/animation.cpp:10:0:
src/cata_tiles.h:6:21: fatal error: SDL_ttf.h: No such file or directory
compilation terminated.
Makefile:703: recipe for target ‘obj/tiles/animation.o’ failed
make: *** [obj/tiles/animation.o] Error 1
I’ve installed all the referenced libraries in the instructions, and went and looked at my usr/include/SDL2 folder but dont see SDL_tff.h in there. I downloaded it from the online repo and tried putting in the SDL_tff.h file to that directory, which didnt work, so I’m assuming that theres a more complicated process for adding this.
Any suggestions for how to fix this and what I’m doing wrong?