Hello,
I am struggling to install a working environment in lua on windows.
Currently, I chose to install msys2/mingw64 system because it includes lua 5.4 and
because of the development tool chain which should make easy to install lua packages
through luarocks.
Alas, luarocks (provided by mingw64) does not seem to be working, it fails with strange errors.
I installed luarocks from the original site. I do not have previous errors, but it is difficult to configure, here is mine :
I am not sure of the LUALIB and LUA_LIBDIR variables : liblua.dll.a is
in D:\xxx\Documents\utils\msys64\mingw64\lib, not bin, but in bin there is
lua54.dll
If I set LUA_LIBDIR to D:\xxx\Documents\utils\msys64\mingw64\lib, luarocks outputs
an error saying that it does not find the path (!?)
Are my settings correct ?
Thanks in advance for your help
Regards
I am struggling to install a working environment in lua on windows.
Currently, I chose to install msys2/mingw64 system because it includes lua 5.4 and
because of the development tool chain which should make easy to install lua packages
through luarocks.
Alas, luarocks (provided by mingw64) does not seem to be working, it fails with strange errors.
I installed luarocks from the original site. I do not have previous errors, but it is difficult to configure, here is mine :
Code:
rocks_trees = {
home..[[/luarocks]],
{ name = [[user]],
root = home..[[/luarocks]],
},
{ name = [[system]],
root = [[d:\xxx\Documents\utils\luarocks-3.7.0\systree]],
},
}
variables = {
MSVCRT = 'm', -- make MinGW use MSVCRT.DLL as runtime
LUALIB = 'liblua.dll.a',
LUA_DIR = [[D:\xxx\Documents\utils\msys64\mingw64]],
LUA_BINDIR = [[D:\xxx\Documents\utils\msys64\mingw64\bin]],
LUA_INCDIR = [[D:\xxx\Documents\utils\msys64\mingw64\include]],
LUA_LIBDIR = [[D:\xxx\Documents\utils\msys64\mingw64\bin]],
CC = [[D:\xxx\Documents\utils\msys64\mingw64\bin\gcc.exe]],
MAKE = [[D:\xxx\Documents\utils\msys64\mingw64\bin\djvumake.exe]],
RC = [[D:\xxx\Documents\utils\msys64\mingw64\bin\windres.exe]],
LD = [[D:\xxx\Documents\utils\msys64\mingw64\bin\gcc.exe]],
AR = [[D:\xxx\Documents\utils\msys64\mingw64\bin\ar.exe]],
RANLIB = [[D:\xxx\Documents\utils\msys64\mingw64\bin\ranlib.exe]],
}
I am not sure of the LUALIB and LUA_LIBDIR variables : liblua.dll.a is
in D:\xxx\Documents\utils\msys64\mingw64\lib, not bin, but in bin there is
lua54.dll
If I set LUA_LIBDIR to D:\xxx\Documents\utils\msys64\mingw64\lib, luarocks outputs
an error saying that it does not find the path (!?)
Are my settings correct ?
Thanks in advance for your help
Regards