开发者

Lua .NET How to use the standard and third party libraries

开发者 https://www.devze.com 2022-12-24 13:29 出处:网络
I am using Lua inside C# WinForms application for GUI automation testing. I want to use the logging library http://www.keplerproject.org/lualogging/

I am using Lua inside C# WinForms application for GUI automation testing. I want to use the logging library http://www.keplerproject.org/lualogging/

But I don开发者_如何学JAVA't know where to copy those logging library files and other standard lua files so that I can use the standard lua logging within the lua scripts.

I see something like LUA_PATH but still I don't understand how to make the lua packing strcuture without installing it.


Did you tried to use LuaRocks. Most libraries (including lualogging) are in the repositories, and the install is straightforward : luarocks install lualogging.

About the environment variables, you have to define two : LUA_PATH and LUA_CPATH. If i'm correct, LUA_PATH is for the Lua libraries (i.e. mylib.lua), and LUA_CPATH is for the compiled binding to a native library (e.g. lsqlite3.so for the Sqlite binding).

Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消