Open piotao opened 1 year ago
Hi @piotao, we rely on pkg-config --cflags sdl2
to find the SDL2 include directory. I wonder if MX Linux doesn't provide it or SDL2's pkgconfig directory is not in PKG_CONFIG_PATH
environment variable?
Shouldn't this be pkg-config --cflags SDL2_gfx
in that case?
SDL2_framerate.h
comes with SDL2_gfx
so that's the package that should be checked for that header.
Hi @hfiguiere, thank you for the suggestion. I have updated the pkg-config
to use sdl2_gfx
in the v0.4.39
tag.
System: MX Linux 21 SDL2 installed and files in /usr/include/SDL2 exists (see attached file with ls -R - zipped)
Steps to reproduce in $HOME/go/src/esdeel directory:
Error: esdeel$ go build .
github.com/veandco/go-sdl2/gfx
In file included from ../../pkg/mod/github.com/veandco/go-sdl2@v0.4.34/gfx/sdl_gfx.go:5: ./sdl_gfx_wrapper.h:8:11: fatal error: SDL2_framerate.h: No such file or directory 8 | #include
| ^
~~~~~ compilation terminated.HOW I FIXED THAT:
include "/usr/include/SDL2/SDL2_framerate.h"
etc.
files.zip