【发布时间】:2017-01-16 15:33:00
【问题描述】:
我想通过 LuaRocks 安装库以访问 dll 中的函数。不幸的是我没有找到二进制文件,所以我认为我需要在我的计算机上编译一个 ffi 库。经过长时间的谷歌搜索,我找到了 Alien 库,所以我想通过命令luarocks install alien 安装它。然后我收到一条消息:
Installing https://luarocks.org/alien-0.7.1-2.src.rock
Error: Could not find library file for FFI
No file ffi.lib in c:/external/lib
No file ffi.dll in c:/external/lib
No file libffi.dll in c:/external/lib
You may have to install FFI in your system and/or pass FFI_DIR or FFI_LIBDIR to
the luarocks command.
Example: luarocks install alien FFI_DIR=/usr/local
而且它没有安装库。我会知道我做错了什么,我的问题是如何安装这个库/获取一些 ffi lib dll 二进制文件。
【问题讨论】:
标签: lua