veandco / go-sdl2

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

Potentially missing "SDL2/SDL_mixer.h" header file #492

Closed MightyPancake closed 2 years ago

MightyPancake commented 2 years ago

I tried to install the binding for sdl_mixer with the command that is advised in the README.md. Unfortunately, it looks like the "SDL_mixer.h" header file is missing from the GitHub directory! I get the error below while trying to install the binding:

# github.com/veandco/go-sdl2/mix
In file included from C:\Users\fikr1\go\pkg\mod\github.com\veandco\go-sdl2@v0.4.10\mix\midi.go:6:
./sdl_mixer_wrapper.h:2:11: fatal error: SDL2/SDL_mixer.h: No such file or directory
  #include <SDL2/SDL_mixer.h>
           ^~~~~~~~~~~~~~~~~~

Is there something that I do wrong or is this just a little error on the GitHub side?

P.S. I have the sdl_mixer lib installed in my MinGW folder, just like all the rest. The sdl_image for example worked flawlessly!

MightyPancake commented 2 years ago

Turns out I downloaded the wrong lib from SDL. My bad, please delete this issue. Sorry to waste your time 😅