业余写个moba手游系列之——服务器部署到Centos

编程入门 行业动态 更新时间:2024-10-09 16:25:40

业余写个moba手游系列之——<a href=https://www.elefans.com/category/jswz/34/1771423.html style=服务器部署到Centos"/>

业余写个moba手游系列之——服务器部署到Centos

之前这个LuaServer都是跑在windows上的,也就是游戏没有实际发布到现网环境下玩过,这次重构改造前准备折腾下,先把原始版本服务器在Centos上部署好跑起来,这要是都没成功在linux公网环境下部署一次,感觉缺少点成就感不是。
虽然在老版本基础上进行编译部署,但是发现,这不同平台的编译,真是道阻且长啊,一堆坑有没有。
说明下,我这台服务器是阿里云服务器,系统centos7.3

坑1:

这个服务器需要一个LuaPbIntf.a的库支持,giuhub链接地址生成规则也参考了github上的说明,在windows上一切ok,但是premake生成的makefile挪到centos怎么就根本编译不过了呢??
编译报错信息:

In file included from ../third_party/lua-intf/LuaIntf/LuaIntf.h:47:0,
from ../src/LuaPbIntf.cpp:4:
../third_party/lua-intf/LuaIntf/src/CppBindModule.cpp:122:57: error: ‘meta’ was not declared in this scopeLUA_INLINE CppBindModuleBase::CppBindModuleBase(LuaRef& meta, const char* name)^    
../third_party/lua-intf/LuaIntf/src/CppBindModule.cpp:122:63: error: expected primary-expression before ‘const’LU

更多推荐

业余写个moba手游系列之——服务器部署到Centos

本文发布于:2024-03-09 12:37:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1724985.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   系列之   moba   Centos

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!