-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Tutorial: CompileNF
kytooooo edited this page Jun 7, 2021
·
21 revisions
- sudo apt-get install g++
- sudo apt-get install cmake
- sudo apt-get install automake
- sudo apt-get install zip unzip
- GCC >= 7 (Tested in Ubuntu 16.04)
- MSVC >= VS2019 (Tested in Win10)
- Git pull the source code: git clone https://github.com/ketoo/NoahGameFrame.git
- Run the script file named build_dep.bat where located /Dependencies ((墙内上网的同学请点击:墙内下载依赖库.bat))
- Build the solution, if the build failed
- with "protoc" related issue, please execute the NFComm\NFMessageDefine\cpp.bat and try again
- with other ".lib" can not found issues, please build again(not rebuild all))
- Run the binary file by _Out/rund.bat
- Git pull all source: git clone https://github.com/ketoo/NoahGameFrame.git
- Run install4cmake.sh to build NF (or run cd /Dependencies ./build_dep.sh then run buildServer.sh)
- Run the binary file by _Out/rund.sh
- rebuild NF all(download and compile all dependence libraries):install4cmake.sh
- only build NF(we don't download and compile any dependence library): buildServer.sh
- Some machine require run script like below: bash ./install4cmake.sh bash ./buildServer.sh
- GenerateConfigXML.bat or GenerateConfigXML.sh
- sudo apt-get install g++
- sudo apt-get install cmake
- sudo apt-get install automake
- sudo apt-get install zip unzip
- GCC >= 7 (Tested in Ubuntu 16.04)
- MSVC >= VS2019 (Tested in Win10)
- Git the source code
- 运行脚本 墙内下载依赖库.bat
- Build the solution, if the build failed
- with "protoc" related issue, please execute the NFComm\NFMessageDefine\cpp.bat and try again
- with other ".lib" can not found issues, please build again(not rebuild all))
- Run the binary file by _Out/rund.bat
- Git pull all source PS: Some machine require run script like below: bash ./install4cmake.sh
- Run the binary file by _Out/rund.sh
- 墙内下载依赖库.bat 此脚本只针对大陆不方便上github的同学使用,只有windows
- 全部重新编译NF(包含重新下载和编译依赖库):install4cmake.sh
- 只编译NF源码(不下载依赖库也不编译依赖库): buildServer.sh
- 一些机器的环境要求像这样运行脚本: bash ./install4cmake.sh bash ./buildServer.sh
- GenerateConfigXML.bat or GenerateConfigXML.sh