Windows下使用node-gyp

来源:互联网 发布:jsp网上图书系统源码 编辑:程序博客网 时间:2024/06/14 23:26

最近做了个app,要有mac版本和windows版本,mac上已经测试通过了,然后在windows上调试(新装的虚拟机),因为使用了deasync,运行失败了,为了重新build,要使用node-gyp,然后各种build失败。
刚开始提示没有python,安装了python2.7之后,提示error MSB3411之类的错误,然后安装了windows sdk, windows server, vs2008。然后又提示fatal error C1083: Cannot open include file: ‘stdint.h’: ,好吧居然找不到stdint.h文件,一查,vs2008太老了,没有这个文件,天啊,你知道vs2008多大么,然后卸载2008,安装vs2013,然后运行node-gyp rebuild,成功了。。。。
顺便提一下,发现windows使用adb也挺坑的,安装之后链接手机,adb devices什么都检测不到,最后不得已安装了豌豆荚,虽然好了,但还是觉得挺坑的。

原创粉丝点击