I'm trying to install this on macOS and I'm getting a compilation error... and I don't know enough about C to debug myself. I have tried installing from luarocks, installing the dev version off of git and with cmake and all 3 methods result in the same error:
/Users/user/lua-sdl/luasdl2/src/window.c:950:10: error: assigning to 'int' from incompatible type 'void'
if ((ut = lua_getuservalue(L, 1)) == LUA_TUSERDATA) {
^ ~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
make[2]: *** [CMakeFiles/SDL.dir/src/window.c.o] Error 1
make[1]: *** [CMakeFiles/SDL.dir/all] Error 2
make: *** [all] Error 2
I'm trying to install this on macOS and I'm getting a compilation error... and I don't know enough about C to debug myself. I have tried installing from luarocks, installing the dev version off of git and with cmake and all 3 methods result in the same error: