veeableful
veeableful
Hi @vtf6259, could you show me how you build the code that generated the error?
Thanks @vtf6259! Would it compile if you remove usage of `ttf` from the code? Perhaps put only `sdl.Delay(16)` in the `main()` function. Oh and how did you install SDL2 and...
Oh that wouldn't install SDL2 and SDL2_ttf. They are separate, required packages that go-sdl2 depends on. I'm not sure if the following will work on Windows 11 but perhaps you...
Hi @dsoechting, would you be able to provide a minimal example project that reproduces the issue? I was able to use Go 1.21 on my Linux and macOS with go-sdl2...
Hi @Yagisanatode, you could try putting it before the command. For example, `CGO_ENABLED=1 go build`.
Hi @jkassis, it looks like it can't find the SDL2 header file (which should be `SDL.h` under `/usr/include/SDL2` directory). If it's on Ubuntu, has `libsdl2-dev` been installed?
Hi @jkassis, could you try without the `static` tag and see if it works? We have our special Go files for static tag so they might have interfered.
Hi @jkassis, perhaps you need to cross-compile SDL2 for other OS and architecture as well as it seems like it compiled fine on `linux/amd64`. At least, I don't see the...
Hi @SolarLune, thanks for reporting the issue! I will check if I can reproduce this and fix it. Really cool to see an actual application that uses go-sdl2!
Hi @SolarLune, would it be possible for you to test the building for darwin/arm64 in the latest `v0.4.x` branch? I have added static compilation support for darwin/arm64. It seems to...