Closed lancejpollard closed 3 months ago
I also get this error on Slackware Linux 15.0:
$ make
g++ -O2 -std=c++11 -DLINUX -fPIC -W -Wall -Wextra -pedantic -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-maybe-uninitialized -Wno-invalid-offsetof -DCAP_GLEW=0 -DCAP_PNG=0 -c hyper.cpp -o hyper.o
In file included from sysconfig.h:414,
from hyper.h:19,
from hyper.cpp:23:
/usr/include/SDL/SDL_gfxPrimitives.h:38:10: fatal error: SDL.h: No such file or directory
38 | #include <SDL.h>
| ^~~~~~~
compilation terminated.
make: *** [Makefile:150: hyper.o] Error 1
Edit: I migrated to slackware-current
yesterday. Now I can circumvent this error by running make mymake && ./mymake -sdl2
.
This is actually covered in the README:
On macOS with Homebrew:
brew install sdl sdl_ttf sdl_gfx sdl_mixer glew
macOS users might also have to edit /usr/local/include/SDL/SDL_gfxPrimitives.h at line 38 to use quote include.
change /usr/local
to your brew prefix
I installed all the brew dependencies. I just tried to reinstall sdl, and am getting this:
Running
make
I get this error, and a ton of warnings (I am on the latest Mac OS).