執行步驟
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.即可 結果圖

|
新聞熱點
疑難解答