Samir
First I tried "make PLATFORM=x86" with Mingw-w64 8.1.0 SEH you taught me, but on my PC it failed with massive error log output.
▸ Building Lua 5.4.5 VM ■■■■■■■■■■■■■■■■■■■
▸ Building LuaRT core framework ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■C:/apps/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/apps/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/libm.a when searching for -lm
~~~~~~~~~~ MANY LINES OMITTED ~~~~~~~~~~
C:/apps/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcrt
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:183: lua54.dll] Error 1
make: *** [Makefile:22: core/.] Error 2
Next I tried making the changes you described and "make PLATFORM=x86", but it failed with shorter error logs.
[Login to see the link]
▸ Building Lua 5.4.5 VM ■■■■■■■■■■■■■■■■■■■
▸ Building LuaRT core framework dlltool: Can't open def file: SensApi.def
make[1]: *** [Makefile:146: libsensapi.a] Error 1
make: *** [Makefile:22: core/.] Error 2
I have not explored where the root cause lies, but I only wanted to get the 32bit version of the executables ASAP, so I tried a simple solution to achieve that goal. 🙂
I personally prefer MinGW than VC++, because VC++ is not open source and so it makes me fear that it might abandon us and leave us today or tomorrow. But certainly, VC++ toolchain could offer convenience.
cos00kun
Thank you‼ I always hope I can provide as many "I got it!"s as possible. 😊