# TestGame **Repository Path**: griffon2/test-game-t ## Basic Information - **Project Name**: TestGame - **Description**: 测试游戏,自己使用的 - **Primary Language**: C++ - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-01 - **Last Updated**: 2022-10-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TestGame #### 介绍 从libco开始创建服务器 #### 软件架构 软件架构说明 #### 安装教程 1. protobuf下载编译 参考文档 https://blog.csdn.net/mijichui2153/article/details/100005876 参考文档 https://blog.csdn.net/cc1949/article/details/105655377 https://github.com/protocolbuffers/protobuf/releases 下载最新版本,比如protobuf-cpp-3.9.2.zip 然后依次执行编译安装 ./configure make #时间有点长 make check #时间有点长 sudo make install 新建/etc/ld.so.conf.d/libprotobuf.conf (vim /etc/ld.so.conf.d/libprotobuf.conf ),内容如下: /usr/local/lib 然后,需要执行命令 sudo ldconfig Windows下载protoc-3.9.2-win64.zip就可以生成C#代码 Unity把protobuf-csharp-3.9.2.zip里的Google.Protobuf源代码复制到项目里直接用 2. 编译运行服务器 CentOS下载项目,VSCode打开Server文件夹,安装CMake插件,点底部Build按钮 点左上角绿色三角形“启动Server”运行