How to use mlua to compile 32-bit lua modules on the Windows 10 platform? Do you have any examples? #484
-
Excuse me, sir!
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I tried uninstalling 64-bit Git, then installing 32-bit Git, and compiling again, but it still worked like this. I have VS2019 and VS2022 installed on my computer. It's also useless. |
Beta Was this translation helpful? Give feedback.
-
Now the DLL can be compiled
|
Beta Was this translation helpful? Give feedback.
-
Yeah! |
Beta Was this translation helpful? Give feedback.
Now the DLL can be compiled
Modification:
[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
linker = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\Hostx86\x86\link.exe"
LUA_INC=F:/rust_lua_src/lua51-x86/include LUA_LIB=F:/rust_lua_src/lua51-x86 LUA_LIB_NAME=lua5.1 cargo build --target=i686-pc-windows-msvc --features lua51