New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lua:x64-mingw-dynamic] vcpkg-built lua.exe doesn't work #14667
Comments
|
@vadi2, I can't repro this issue with vs2017 on windows. |
I get the same results @PhoebeHui but using the 64-bit binary:
|
|
Hm, weird. I wouldn't know what the issue is then off the top of my head. |
|
It looks you copied the lua files to C:\Users\username\Desktop\lua, right? do you copy the lua.dll as well? |
|
@vadi2, does this still be a problem for you? |
|
My Lua in How did you get it to work in |
|
The above is the Lua 5.4.1 port that's in vcpkg. When I build my own 5.1.5 port, |
|
@vadi2, thanks for the information! It might relate to mingw, I can't repro this issue with x64-windows triplet which built with vs2019 on win10. Anyone who could help take a look? |
|
Are you certain? In the build setup where it does work, I install VCPKG_ROOT/vcpkg install lua:x64-mingw-dynamic. That should use mingw, right? |
|
Since you configure with triplet x64-mingw-dynamic, it should use mingw. It's weird, since when install the tools, it will install the lua.exe and lua.dll from vcpkg\buildtrees\lua\x64-mingw-dynamic-rel\ to ./vcpkg/package diretory, after everything checked, vcpkg will copy them from package directory to vcpkg\installed\x64-mingw-dynamic\tools\lua, that means the lua.exe file are same in both paths. However, one works, one doesn't, I suspect it might relate to the dependency, could you double confirm if the lua.dll copy to the installed directory as well? |
|
I appreciate your continued assistance in this lua.dll is not copied to the installed directory, and that was the problem like you've hinted. That is not done neither by my 5.1.5 port nor the vcpkg-native 5.4.1 port, as visible in this screenshot #14667 (comment). Perhaps it's not copied because there's only support for msvc and clang copying dll's, but not mingw: #14525 I wonder why does the vcpkg 5.4.1 port populate the As a hacky workaround, I copied lua.dll into the same folder as lua.exe and that did work! So I guess with the vcpkg-native 5.4.1 port, the only issue is: I'm OK with closing this issue as there's one tracking the source of the problem already. |
|
Glad you got the issue solved! Since we already have issue #14525 to track, close this issue now. |

Describe the bug
Running
lua.exe(REPL) that's built by vcpkg produces no output.Environment
To Reproduce
Steps to reproduce the behavior:
lua.exeExpected behavior
Something along the lines of, adjusting for the Lua version:
Additional information
luac.exe(compiler) works fine.The text was updated successfully, but these errors were encountered: