I have some problems using LuaInterface on Mono, Ubuntu. I have followed instructions here, but when I try to compile and run program in Mono, I got following error:
Program:
using System;
using LuaInterface;
public class TestLua {
public static void Main(string[] args) {
Lua lua= new Lua(); // will open all the standard Lua libraries
}
}
Error:
Unhandled Exception: System.DllNotFoundException: luanet.so
at (wrapper managed-to-native) LuaInterface.LuaDLL:lua_pushstdcallcfunction (intptr,LuaInterface.LuaCSFunction)
at LuaInterface.ObjectTranslator.createBaseClassMetatable (IntPtr luaState) [0x00000] in <filename unknown>:0
at LuaInterface.ObjectTranslator..ctor (LuaInterface.Lua interpreter, IntPtr luaState) [0x00000] in <filename unknown>:0
at LuaInterface.Lua..ctor () [0x00000] in <filename unknown>:0
at TestLua.Main (System.String[] args) [0x00000] in /home/zbynek/Plocha/csharp/Game/Lua/LuaProject/Program.cs:7
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: luanet.so
at (wrapper managed-to-native) LuaInterface.LuaDLL:lua_pushstdcallcfunction (intptr,LuaInterface.LuaCSFunction)
at LuaInterface.ObjectTranslator.createBaseClassMetatable (IntPtr luaState) [0x00000] in <filename unknown>:0
at LuaInterface.ObjectTranslator..ctor (LuaInterface.Lua interpreter, IntPtr luaState) [0x00000] in <filename unknown>:0
at LuaInterface.Lua..ctor () [0x00000] in <filename unknown>:0
at TestLua.Main (System.String[] args) [0x00000] in /home/zbynek/Plocha/csharp/Game/Lua/LuaProject/Program.cs:7
Which is a strange error. I could understand, if .dll file could not be find, but .so?
Does anyone has an idea, how to fix this?
Thanks Zbynek