LuaRocks is package manager for lua. Defold not need it. But you can use local Lua and LuaRocks to solve some tasks.
For example i use it for map parsing from tiled.
Installing LuaRocks in window pc is a HELL.
I try different ways of installing it. And find guide that worked for me.
Few days ago i try to install it on new pc and find that guide is not available.
So i make a copy of that guide with some small changes.
No)
I try intall it:
1)from luarocks site. Luarocks with embedded lua in one package but have problems(
2)also I try python wrapper(do not remember it name) that download and install lua and luarocks.
3)Some packages with lua, and luarocks from other websites.
If it needs to compile, then yes you need to run it in an environment that has that support.
E.g. I start the “x86 Native Tools Command Prompt for VS 2022”, which is installed when I install the Visual Studio Community. This command prompt sets up the paths etc in order to run “cl.exe”. Then I run:
$ luarocks.exe install --local luafilesystem
But honestly, I wonder why luarocks doesn’t provide prebuilt binaries, since that’s what I’d expect from a package manager…