# Cannot install go-sdl2 "Fatal Error: SDL2/SDL.h, no such file or directory"

**URL:** <https://forum.golangbridge.org/t/cannot-install-go-sdl2-fatal-error-sdl2-sdl-h-no-such-file-or-directory/25367>\
**Category:** Getting Help\
**Created:** [November 14, 2021, 11:16am UTC](https://forum.golangbridge.org/t/cannot-install-go-sdl2-fatal-error-sdl2-sdl-h-no-such-file-or-directory/25367 "2021-11-14T11:16:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabe](https://forum.golangbridge.org/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gabe](https://forum.golangbridge.org/u/gabe)\
**Post date:** [November 14, 2021, 11:16am UTC](https://forum.golangbridge.org/t/cannot-install-go-sdl2-fatal-error-sdl2-sdl-h-no-such-file-or-directory/25367/1 "2021-11-14T11:16:17Z")

</div>

Hello Everyone

Im trying to install the “SDL-GO”-Package for Go. I managed to get SDL Installed itself with this tutorial on how to install it on Windows:

[![](https://img.youtube.com/vi/OXSMx45kayw/maxresdefault.jpg "Games With Go EP 06 - SDL2 Setup") ](https://www.youtube.com/watch?v=OXSMx45kayw)

But I unfortunately still cannot SDL2-GO from go get [github.com/veandco/go-sdl2/sdl](http://github.com/veandco/go-sdl2/sdl) , I always get this error message:

```auto
In file included from go\pkg\mod\github.com\veandco\go-sdl2@v.0.4.10\sdl\audio.go:4:./sdl_wrapper.h:2:11: fatal error: SDL2/SDL.h No such file or directory
2 | #include <SDL2/SDL.h>
                    ^ ~~~~~~~~~~
compilation terminated.

```

The only thread I was able to find online about this error is that I should try to install the 32-bit Version of Go. But I wanted to ask you guys if there is anything else I have missed? I want to use the 64-Bit Version for Windows if Possible. I am pretty new to Go, so it is possible that I missed something fairly obvious^^.

Thank you for your help.

Cheers,

Gabe

---

<div class="post-metadata">

**Author:** ![system](https://forum.golangbridge.org/uploads/default/original/2X/5/5ad234f7c3dbc68b6cc72d338ce4f2973d9fd81c.png) [@system](https://forum.golangbridge.org/u/system)\
**Post date:** [February 12, 2022, 11:16am UTC](https://forum.golangbridge.org/t/cannot-install-go-sdl2-fatal-error-sdl2-sdl-h-no-such-file-or-directory/25367/2 "2022-02-12T11:16:41Z")

</div>

Closed on February 12, 2022, 11:16am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
