构建用于部署的库

发布于 2025-01-15 17:00:19 字数 313 浏览 1 评论 0原文

所以我正在为使用 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 dlls 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

垂暮老矣 2025-01-22 17:00:19

LuaRocks会直接下载dll,无需编译即可使用dll
Lua外部库易于使用。只需需要正确的路径。

LuaRocks would download the dll directly, you can use the dll without building.
Lua external library is easy for using. Just require the correct path.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文