如何使用srlua制作可执行的Lua脚本?

我的主要目标是将我的lua文件转换成可执行文件或字节码,最好两者都可以。 我正在尝试使用srlua,但在自述文件中告诉我要执行以下操作: "For Windows, you need to create srlua.exe and glue.exe first. Then for each Lua program that you want to turn into a stand-alone program, do glue srlua.exe prog.lua prog.exe Of course, you can use any name instead of prog.exe." 当我尝试使用codebluck编译它以获取(srlua.exe)时,我得到了这个:enter image description here 这是什么意思? glue srlua.exe prog.lua prog.exe 我应该在哪里输入它。 提前致谢。

点赞
用户2781343
用户2781343

将下面翻译成中文并且保留原本的 markdown 格式

在你的 shell 中输入以下命令。一旦你拥有了 srlua 的二进制文件,则可以将 "prog.lua" 与 "srlua.exe" 组合起来形成 "prog.exe"。当然,你还需要粘合剂。你可以在此处获取 Lua 5.1 的 srlua 二进制文件和粘合剂二进制文件。http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#srlua

2013-10-19 20:46:57