veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.18k stars 219 forks source link

go get github.com/veandco/go-sdl2/{img, mix} fails #429

Closed CarterScadden closed 4 years ago

CarterScadden commented 4 years ago

When running in bash getting this error. In file included from go/src/github.com/veandco/go-sdl2/img/sdl_image.go:5:0:

./sdl_image_wrapper.h:5:11: fatal error: SDL_image.h: No such file or directory
  #include <SDL_image.h>
                ^~~~~~~~~~~~~
In file included from go/src/github.com/veandco/go-sdl2/mix/midi.go:6:0:
./sdl_mixer_wrapper.h:4:11: fatal error: SDL_mixer.h: No such file or directory
  #include <SDL_mixer.h>
           ^~~~~~~~~~~~~
veeableful commented 4 years ago

Hi @CarterScadden, what platform are you on? Did you install the native libraries for SDL_image and SDL_Mixer?

CarterScadden commented 4 years ago

Yes sorry, I've resolved the issue didn't realize I needed to install those libraries from else where. Thank you