Skip to content

How to use mlua to compile 32-bit lua modules on the Windows 10 platform? Do you have any examples? #484

Answered by Queen-Studio
Queen-Studio asked this question in Q&A
Discussion options

You must be logged in to vote

Now the DLL can be compiled
Modification:

  1. Modify the content in the config as follows
    [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"
  2. Change the compilation command to:
    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

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by khvzak
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #483 on November 13, 2024 14:37.