1οΈβ£ I have tried it. And it still output similar error.
βΈ Building Lua 5.4.5 VM
βΈ Building LuaRT core framework Makefile:145: recipe for target 'libsensapi.a' failed
make[1]: *** [libsensapi.a] Error 1
Makefile:21: recipe for target 'core/.' failed
make: *** [core/.] Error 2
2οΈβ£ Next I installed MinGW-W64-binaries and tried. It caused yet another error.
https://github.com/niXman/mingw-builds-binaries/releases/tag/12.2.0-rt_v10-rev2
ββββββββββββββββββββ Building LuaRT 1.4.0 for x64 ββββββββββββββββββββ
βΈ Building Lua 5.4.5 VM β β β β β β β β β β β β β β β β β β β
βΈ Building LuaRT core framework β β β β β β β β β β β β β β β β β β β β β sys\File.c: In function 'File_getbuffered':
sys\File.c:582:44: error: 'FILE' {aka 'struct _iobuf'} has no member named '_flag'
582 | return lua_self(L, 1, File)->stream->_flag & 0x100 ? _IOFBF : _IONBF;
| ^~
sys\File.c:583:1: warning: control reaches end of non-void function [-Wreturn-type]
583 | }
| ^
make[1]: *** [Makefile:140: sys\File.o] Error 1
make: *** [Makefile:22: core/.] Error 2
I have tried many things but have not been able to solve the error.
βΆοΈ I am beginning to think that maybe this is caused by the MinGW-W64 I installed is UCRT ver. and not MSVCRT ver. I would like to see if that hunch is correct, but now my time is up...π’