Giter VIP home page Giter VIP logo

lightyear's Introduction

编译步骤

prerequisites

  • Install Visual Studio Community 2019
  • Build C++ Boost
    1. 下载最新的boost到
    2. 打开Visual Studio Command Prompt
    3. 进入解压后的目录
    4. 运行 bootstrap.bat
    5. b2 --with-system --with-date_time --with-regex --with-thread --with-program_options --with-locale --build-type=complete

Getting Lightyear code

git clone https://github.com/ZhuBicen/Lightyear.git

生成 Visual Studio Solution files

  • Ensure python 2.7 is in %PATH%
  • Download gyp from git clone https://chromium.googlesource.com/external/gyp
  • Add %GYP_TOP% to %PATH%
  • Change directory to client
  • Run gyp client.gyp --depth . to generate Visual Studio Solution Files

WebRTC native code

编译protobuf

Change RuntimeLibray option

编译cef

编译Messenger

  • NOTE: To create release mode binary, Messenger/res/skin.zip should be recreated.
  • Make sure git is in the $PATH, to get the git revision when building binary.

数据库设置

  1. 安装MySQL
  2. TBD

服务器端编译

  1. 安装最新的golang编译器

  2. 设置相应的GOPATH,比如 d:\gopath;D:\Code\Lightyear\proto\gopath

  3. 安装mercurial,在.hgrc中配置hostfingerprints如果出现连接错误,

  4. [hostfingerprints] code.google.com = 83:ed:f0:fc:00:76:6f:2c:84:62:1e:3f:e2:cf:e4:60:92:c6:4d:5c

  5. 在git bash中执行如下命令,以安装google protobuffer: go get code.google.com/p/goprotobuf/{proto,protoc-gen-go}

  6. cd Lightyear\server

  7. go build

  8. run server.exe

NOTE: 聊天信息保存在lightyear.chatmessage表中

更新状态图

  1. Online version is here

  2. Install Graphviz

  3. Install PlantUML

  4. Install PlantUMLQeditor

  5. 使用QEditor编辑 Messenger/sc/StateChart.txt

使用命令行?

others


  1. Chrome release link
  2. WebRTC branch

lightyear's People

Watchers

bzhu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.