lua-protobuf 新手入门篇-第一章.编译lua-protobuf支持库(Windows插件-Win10编译)

第一章.编译lua-protobuf支持库(Windows插件-Win10编译)
第二章.Unity & lua-protobuf 环境配置
第三章.二进制proto读取功能,与,lua-protobuf注意事项简介说明
第四章.编译lua-protobuf支持库(Android插件-Win10编译)
第五章.编译lua-protobuf支持库(Android插件-Mac10.13.6编译)
第六章.编译lua-protobuf支持库(IOS插件-Mac10.13.6编译)
介绍
本篇,会用VS2019 64位+proto3版本讲解
目前lua-protobuf版本,支持proto2和proto3版本.

一,使用工具
1,VS2019,Unity 2019.3.5f1 (64-bit)

二,下载链接
1,xLua下载:https://github.com/Tencent/xLua
2,xLua集成第三方库下载:https://github.com/chexiongsheng/build_xlua_with_libs
3,lua-protobuf下载:https://github.com/starwing/lua-protobuf
4,cmake-3.18.2-win64-x64.msi 下载:https://cmake.org/download/

三,环境设置
1,环境变量Path里添加C:\Program Files\CMake\bin
CMD窗口输入 cmake --version 如果输出版本就算配置成功

2,解压xLua2.1.15.zip ,解压build_xlua_with_libs.zip ,解压lua-protobuf.zip

3,D:\xLua2.1.15\Assets 路经下 Plugins 目录,与,XLua 目录,复子到 ,
自己新建的UNITY工程D:\lua_proto\Assets\ 目录里

4,D:\lua-protobuf 下的文件和目录,全部复子后,覆盖到,
D:\build_xlua_with_libs\build\lua-protobuf

5,D:\xLua2.1.15\build 下的除<CMakeLists.txt>,<make_android_lua53.bat><make_win64_lua53.bat><cmake目录>之外的文件和目录,全部复子后,覆盖到,
D:\build_xlua_with_libs\build

四,编译lua-protobuf
1,D:\build_xlua_with_libs\build\make_win64_lua53.bat
第二行
cmake -G “Visual Studio 15 2017 Win64” …
修改为
cmake -G “Visual Studio 16 2019” -A “x64” …

注:
其它平台用以下命令编译
cmake -G “Visual Studio 16 2019” -A “Win32” …
cmake -G “Visual Studio 16 2019” -A “x64” …
cmake -G “Visual Studio 16 2019” -A “ARM” …
cmake -G “Visual Studio 16 2019” -A “ARM64” …

2,编译lua-protobuf
双击 make_win64_lua53.bat 文件

注:编译失败时,D:\build_xlua_with_libs\build\ ,这个目录下,删除build64目录后,在次双击 make_win64_lua53.bat 文件

3,执行上述批处理命令后,D:\build_xlua_with_libs\build\plugin_lua53\Plugins\x86_64 下的xlua.dll一个文件,复子后,覆盖替换自己新建的UNITY工程D:\lua_proto\Assets\Plugins\x86_64目录中的xlua.dll

编译lua-protobuf完

第一章.编译lua-protobuf支持库(Windows插件-Win10编译)
第二章.Unity & lua-protobuf 环境配置
第三章.二进制proto读取功能,与,lua-protobuf注意事项简介说明
第四章.编译lua-protobuf支持库(Android插件-Win10编译)
第五章.编译lua-protobuf支持库(Android插件-Mac10.13.6编译)
第六章.编译lua-protobuf支持库(IOS插件-Mac10.13.6编译)

  • 5
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

asasj57

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值