haskell-game/sdl2-image

Building and installing on Windows

nxths opened this issue · 4 comments

nxths commented

These bindings won't build + install on Windows currently due to a bug involving GHC, Windows, and Template Haskell. I made a Windows branch with a crude workaround if anyone else is trying to do this.

It's probably a good idea to expand the templates as you've done, to get rid of the template-haskell dependency. If issues like these continue to crop up, I'll do so as well. Hopefully the Windows issue you've experienced has since been fixed.

nxths commented

https://ghc.haskell.org/trac/ghc/ticket/3242 was fixed in GHC 8.0.1 (or maybe the version earlier I forget) so the bindings build + install without issue on Windows now, thanks!

Awesome! Thanks for letting me know.

It seems like with the appropriate two defines, the build goes through, but any example I tried that depended on this library did not produce a window at all and immediately exits (c.f. jxv/dino-rush#1)