[nix-shell:~/dev/legend-of-swarkland]$ make
make: pkg-config: Command not found
g++ -c -std=c++14 -o build/native/swarkland.o -MMD -MP -MF build/native/swarkland.o.d -Ibuild/native/ -fsanitize=address -fno-omit-frame-pointer -fno-exceptions -fno-rtti -Ibuild/native -Isrc -g -Wall -Wextra -Werror src/swarkland.cpp
In file included from src/text.hpp:6:0,
from src/thing.hpp:11,
from src/swarkland.hpp:7,
from src/serial.hpp:4,
from src/swarkland.cpp:1:
src/sdl_graphics.hpp:6:17: fatal error: SDL.h: No such file or directory
compilation terminated.
make: *** [Makefile:53: build/native/swarkland.o] Error 1
It's doing #include <SDL.h> but to find it it needs to do #include <SDL2/SDL.h>.
Also I don't think you can depend on pkg-config existing everywhere. This is why I use cmake even tho it sux.
It's doing
#include <SDL.h>
but to find it it needs to do#include <SDL2/SDL.h>
.Also I don't think you can depend on pkg-config existing everywhere. This is why I use cmake even tho it sux.