home.social

#luarocks — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #luarocks, aggregated by home.social.

  1. Today, I extracted my #Lua port of the Rough.js library into a standalone module and published it on #luarocks

    It is a small graphics library that lets you draw lines, polygons and curves in a sketchy, hand-drawn-like, style.

    I formerly used it in some of my 3rd-party packages for the #SILE typesetting system, but now having it as its own independent module might be interesting for other Lua developers, outside the SILE ecosystem.

    github.com/Omikhleia/rough-lua

  2. #LuaRocks question - how can I use it with #LuaJIT?

    $ luarocks --lua-version=5.1 install --local opencl
    Installing luarocks.org/opencl-1.2.0-1.sr

    Warning: variable CFLAGS was not passed in build_variables
    make[1]: Entering directory '/tmp/luarocks_opencl-1.2.0-1/lua-opencl/test'
    /usr/bin/lua5.1 platform.lua
    /usr/bin/lua5.1: ...opencl-1.2.0-1/lua-opencl/test/../opencl/C.lua:7: module 'ffi' not found

    Do I need to reconfigure/reinstall luarocks, or can I make it work with both LuaJIT and Lua 5.1/5.4?