topameng/tolua_runtime

tolua_runtime中添加第三方库问题

Closed this issue · 0 comments

  1. Mac平台下tolua_runtime中添加snapshot.c第三方库,重新编译了,在build中有对应的.o文件

  2. 把生成的tolua.bundle放到Plugins中

  3. 在LuaDLL.cs中添加
    [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
    public static extern int luaopen_snapshot(IntPtr L);

  4. 在LuaClient.cs的OpenLibs中添加
    luaState.OpenLibs(LuaDLL.luaopen_snapshot);

  5. 运行Examples中运行19_cjson示例,

  6. 直接报错:EntryPointNotFoundException: luaopen_snapshot

这样添加第三方库,还去缺少哪些步骤?

---好吧-----还要重启unity客户端。