构建用于部署的库
所以我正在为使用 Lua 的应用程序制作一个插件,我已经与主要开发人员交谈过,他们说如果我想使用外部库,例如 luafilesystem 或 luasocket 我需要将其构建到 dll
中。
我对C
没什么经验,更不用说构建dll
了。我也没有 LuaRocks 或类似的东西,但如果我只是下载了 LuaRocks 并将该库安装到我的个人环境中,并且我只使用它生成的内容(希望是 dll
?我不'不要将 Lua 用于其他任何事情,并且我不想在不知道这是可能的情况下在自己的环境中搞砸任何事情。
So I am working on making a plugin for an application that uses Lua, I've spoken with the main developers and they said that if I want to use an external library such as luafilesystem
or luasocket
that I would need to build it into a dll
.
I have little experience with C
let alone building dll
s for that matter. I also don't have LuaRocks or anything like that but if I just downloaded LuaRocks and installed the library using that to my personal environment, and I just use what it generates (hopefully a dll
? I don't use Lua for anything else and I don't want to mess anything up in my own environment without knowing first that it's possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
LuaRocks会直接下载
dll
,无需编译即可使用dll
。Lua外部库易于使用。只需
需要
正确的路径。LuaRocks would download the
dll
directly, you can use thedll
without building.Lua external library is easy for using. Just
require
the correct path.