兴化网站建设价格,什么是seo和sem有什么区别,做王境泽gif的网站,东莞松山湖华为招聘信息使用下载编译好的gn和ninja报错
先下载了gn的源码[gn.googlesource.com/gn]#xff0c;然后编译报错#xff0c;就直接下载了了编译号的gn和Ninja#xff0c;然后写了Helloworld应用的BUILD.gn#xff0c;然后将gn\examples\simple_build\build拷贝至当前目录…使用下载编译好的gn和ninja报错
先下载了gn的源码[gn.googlesource.com/gn]然后编译报错就直接下载了了编译号的gn和Ninja然后写了Helloworld应用的BUILD.gn然后将gn\examples\simple_build\build拷贝至当前目录结果Ninja编译报错看起来是g没有找到奇怪明明已经下载的是ninja-win到D:\Program Files。
windows尝试编译GN
直接CMD然后编译报错如下然后启动x64 Native Tools Command Prompt for VS 2022同样的步骤不再报错CreateProcess failed: The system cannot find the file specified.“但是会报另外的错误gn\src\gn\escape.h(1): error C2220: the following warning is treated as an error”
解决C2220问题
去ninja的源码Issue中搜索然后将上面的gn\build\gen.py中的cflags.append(‘/WX’)注释掉然后重新编译成功得到gn.exe
windows尝试编译GN
按照github上的wiki先用cmd窗口编译失败然后管理员权限打开Developer Command Pormpt for VS编译成功。
参考文档
https://gn.googlesource.com/gn/#getting-a-binary Ninja构建系统入门