n2n1 发表于 2022-5-28 16:29:56

传奇世界手游编译教程传世手游android/ios编译教程

本项目客戶端是基于cocos2d-x v3.9+lua版本开发的 后台开发: PHP服务端开发: C++ cocos相关历史版本下载地址:https://github.com/fusijie/Cocos-Resourcehttps://github.com/cocos2d/cocos2d-x/releases
客户端编译脚本目录:client/build客户端工程编译目录:client/frameworks/runtime-src客户端C++源文件:client/frameworks/runtime-src/Classes客户端美术素材目录:client/kuniu/res客户端lua脚本目录:client/kuniu/src客户端地图文件目录:client/kuniu/res/mapnew服务端脚本文件:server/publishserver/sbin/scripts服务端数据库文件:erver/dbx Android打包:Android打包工程支持android studio,也支持Eclipse!在client/frameworks/runtime-src目录内自由选择!建议使用Eclipse,工程内已经有现成的脚本,原项目组就是用的Eclipse编译Android!NDK默认用android-ndk-r10c,如果出现版本不兼容请使用低版本如:r9d,千万不要使用高版本的NDK!打开以下bat文件,修改里面相关路径等,依次运行即可!1. build_c++.bat2. build_patch.bat3. build_apk.bat iOS打包:ios直接使用xcode打开client/frameworks/runtime-src/proj.ios_mac/cqsj.xcodeproj工程文件进行编译,记得一定要提前下载好cocos2dx库文件并导入!编译的过程如果出现库文件报错,请按照下列方法解决:xcode 10 'string' file not found C++头文件缺失问题将对应文件拷贝到Xcode10对应目录下真机:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++
模拟器:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/c++Xcode9 C++头文件github链接:https://github.com/DeCori/Xcode9-cpp1. 编译的时候如果出现unexpected service error: The Xcode build system has crashed. Please close and reopen your workspace. 请按照以下步骤进行修复: 2. 删除DerivedData3. 设置:File -> Workspace Settings -> Build System -> Legacy Build Sysem3. 关闭xcode重新打开 服务器部署说明:先编译libevent库,然后编译WorldEngine、WorldFrameserver/world/build再编译CenterServer、DirServer、GameGateway、ListenServer、NameServer、SessionServer。/MirWorldServerSrc/server/server/build最后运行脚本:server/sbin
源码下载地址:https://n2n1.cn/tag-1415.htm
页: [1]
查看完整版本: 传奇世界手游编译教程传世手游android/ios编译教程