GithubHelp home page GithubHelp logo

nizvoo / skynet-mingw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dpull/skynet-mingw

0.0 3.0 0.0 84 KB

对skynet无任何改动的windows版

Home Page: http://www.dpull.com/blog/skynet_mingw/

Makefile 18.16% Lua 11.57% Objective-C 0.13% C 55.85% C++ 13.41% Shell 0.88%

skynet-mingw's Introduction

关于skynet-mingw Build status

skynet-mingwskynet的windows平台的实现。其主要特点是:

  1. skynet 以submodule链接,方便升级,确保不改
  2. 仅扩展了700行代码,方便维护。
  3. 自动更新skynet,自动构建,自动化测试,确保质量。

编译

不想自行编译的朋友可访问 自动构建平台获取最新的构建版本

  1. 安装 MinGW
  2. 安装 gcc g++
  3. 安装 pthread (dev)
  4. 运行 MinGW\msys\1.0\msys.bat
  5. 运行 prepare.sh
  6. 运行 make

常见问题

  1. 建议使用 MinGW\msys\1.0\msys.bat 进行编译
  2. 错误: gcc: Command not found, 解决: 修改 msys\1.0\etc\fstab 中的 /mingw 路径
  3. 当提示缺少类似dlfcn.h文件时,建议看看头文件搜索路径是否有问题,举个例子perl(Strawberry Perl)中有gcc程序,同时它注册了系统环境变量

测试

./skynet.exe examples/config    # Launch first skynet node  (Gate server) and a skynet-master (see config for standalone option)
./3rd/lua/lua examples/client.lua   # Launch a client, and try to input hello.

存在的问题,console服务不可用(无法对stdin进行select), 会提示如下出错信息,暂时没有解决方案。

stack traceback:
        [C]: in function 'assert'
        ./lualib/socket.lua:361: in function 'socket.lock'
        ./service/console.lua:15: in upvalue 'func'
        ./lualib/skynet.lua:452: in upvalue 'f'
        ./lualib/skynet.lua:105: in function <./lualib/skynet.lua:104>

相关文档

开发笔记

skynet-mingw's People

Contributors

dpull avatar michaeloujie avatar

Watchers

James Cloos avatar Cheungyung NGAI avatar  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.