tolua_runtime中添加第三方库问题
Closed this issue · 0 comments
darrengame commented
-
Mac平台下tolua_runtime中添加snapshot.c第三方库,重新编译了,在build中有对应的.o文件
-
把生成的tolua.bundle放到Plugins中
-
在LuaDLL.cs中添加
[DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
public static extern int luaopen_snapshot(IntPtr L); -
在LuaClient.cs的OpenLibs中添加
luaState.OpenLibs(LuaDLL.luaopen_snapshot); -
运行Examples中运行19_cjson示例,
-
直接报错:EntryPointNotFoundException: luaopen_snapshot
这样添加第三方库,还去缺少哪些步骤?
---好吧-----还要重启unity客户端。