thejoshwolfe / legend-of-swarkland

Turn-based action fantasy puzzle game inspired by NetHack and Crypt of the Necrodancer
http://wolfesoftware.com/legend-of-swarkland/
Other
91 stars 5 forks source link

unable to build #44

Closed andrewrk closed 7 years ago

andrewrk commented 7 years ago
[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.

andrewrk commented 7 years ago

oh, on nixos all I had to do was install pkg-config.