执行步骤
1).下载Windows版本的pthread。目前最新版本是:pthreads-w32-2-8-0-release.exe。主页地址:http://sourceware.org/pthreads-win32/。
2).双击pthreads-w32-2-8-0-release.exe,会出现解压对话框,”browse”选择指定目录,”extract”解压,”done”完成。
即可。
按照https://github.com/dpull/skynet-mingw中的步骤来就行。需要注意的是,工程中skynet文件夹要下载下来,他链接到别的git工程的。直接下载zip,此文件夹是没下载的。 然后把skynet-mingw 工程拷贝到C:/MinGW/msys/1.0/home/Administrator/ 也就是mingw 所处的环境。 然后执行步骤安装 MinGW安装 gcc g++安装 pthread (dev)运行 MinGW/msys/1.0/msys.bat运行 PRepare.sh运行 make再执行步骤
./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.即可 结果图
新闻热点
疑难解答