Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
ISC License
385 stars 74 forks source link

Question. Using Release without Luarocks #84

Closed dmoa closed 3 years ago

dmoa commented 4 years ago

When downloading the release, is there any way I can use it "fresh out the box" without luarocks?

Cheers.

Tangent128 commented 4 years ago

It's been a while since I've done maintenance on this, but the Cmake build should still work; see https://github.com/Tangent128/luasdl2/blob/master/INSTALL.md

If neither luarocks nor cmake are an option, there aren't any other automated options included, but if you want to roll a makefile or build script you can find the lists of source files for each module in https://github.com/Tangent128/luasdl2/blob/master/lua-sdl2-scm-3.rockspec (note the PlusCommon helper that adds some common files to each module)

markand commented 3 years ago

There are no prebuilt binaries because it's too complicated to generate especially given the numerous platforms there are and Lua version there are. Using the CMake or luarocks spec to build is quite easy though.