Skip to content

How to set up the HTTP server

kytoo edited this page Jan 31, 2019 · 7 revisions

Get the Sources:

git clone https://github.com/ketoo/NoahGameFrame.git

or

svn checkout https://github.com/ketoo/NoahGameFrame

Dependencies

  • libevent 2.0.22
  • easylogging++ 9.80
  • mysql++ 3.2.2
  • google protobuf 3.6
  • redis-cpp-client
  • Theron 6.00.01

IF YOU CAN NOT BUILD THE DEPENDENCIES THEN PLEASE RUN THE CMDS BELOW TO SET UP THE ENVIRONMENT:

  • sudo apt-get g++
  • sudo apt-get cmake
  • sudo apt-get install automake
  • sudo apt-get install zip unzip

Supported Compilers

  • GCC >= 4.8 (Tested in Ubuntu 15.04)
  • MSVC >= VS2015 (Tested in Win7/10)

Build and Install

MSVC >= 2015

  1. Git pull all source
  2. Open the solution: NoahFrame.sln, build FileProcessTool project
  3. Run GenerateConfigXML.bat to generate configuration files
  4. Open the solution: NoahFrame.sln
  5. Build the solution(if u build failed, please build again(not rebuild))
  6. Run the binary file by _Out/rund.bat

CMake(Linux) ---- please use administrator(or sudo) to do these:

  1. Git pull all source
  2. Install cmake[>= 3.1] please choose options for installing: Add CMake to the system PATH for all users and restart your computer
  3. Install VS2015 or gcc[>= 4.8]
  4. Run Dependencies/build_dep.sh
  5. Run install4cmake.bat or install4cmake.sh to build NF
  6. Run the binary file by _Out/rund.bat or _Out/rund.sh