VS2017下搭建libuv环境

1、下载libuv:https://github.com/libuv/libuv
2、下载gyp:https://github.com/turbulenz/gyp并解压缩到libuv/build/gyp目录下
3、下载Python 2.x:https://www.python.org/downloads/windows/并安装,同时在环境变量中设置

PYTHON=C:\Python27\python.exe

注意:不支持Python 3.x
4、安装gyp:cmd进入libuv/build/gyp下,执行

%PYTHON% setup.py install

5、安装libuv:运行

vcbuild.bat vs2017

生成uv.sln

Comments are closed.