Tencent / xLua

xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.
Other
9.42k stars 2.46k forks source link

集成第三方库,在webgl平台要怎么处理? #1137

Closed wyjxp closed 7 months ago

wyjxp commented 7 months ago

目前集成了rapidjson和protobuf,也对应生成了各个平台,但是不知道webgl平台要怎么处理,看了很久文档也没有找到处理方案。 打包webgl平台,详细报错为: Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js: undefined symbol: luaopen_rapidjson (referenced by top-level compiled C/C++ code) Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js: undefined symbol: luaopen_pb (referenced by top-level compiled C/C++ code)

wyjxp commented 7 months ago

发现作者有个仓库已经集成了一些常用的第三方库,包括我要的这两个,所以直接搞定了! https://github.com/chexiongsheng/build_xlua_with_libs