【问题标题】:Unable to build c++ application using nw-gyp build. Error: error MSB6006: "CL.exe" exited with code -1073741515无法使用 nw-gyp build 构建 c++ 应用程序。错误:错误 MSB6006:“CL.exe”退出,代码为 -1073741515
【发布时间】:2015-11-21 08:16:35
【问题描述】:

我尝试通过以下链接在 Windows 8.1 x64 上设置 nw-gyp:

nw-gyp installation guide

为此我安装了:

  • Python v2.7
  • Node v4.2.2(在环境变量中也设置了它的路径)
  • npm v2.14.7
  • node-webkit v0.12.3
  • Microsoft Visual Studio C++ 2012 for Windows Desktop Express version From Here

在此之后,我使用以下命令安装了 nw-gyp。

  • npm install -g nw-gyp

现在我尝试运行这里提供的演示应用程序nw-gyp Example

现在我使用命令配置应用程序:

  • nw-gyp 配置 --target=0.12.3

0.12.3 是我的 node webkit 版本。配置成功,我可以得到构建文件夹。但是当我尝试使用命令构建插件时进一步

  • nw-gyp 构建

我收到以下错误

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.targets(146,5): error MSB6006: "CL.exe" exited with code -1073741515. [E:\PacificCX\testSecond\build\binding.vcxproj]

这是完整的日志:

E:\PacificCX\testSecond>nw-gyp build
gyp info it worked if it ends with ok
gyp info using nw-gyp@0.12.4
gyp info using node@4.2.2 | win32 | x64
(node) child_process: options.customFds option is deprecated. Use options.stdio
instead.
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(29
7,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry.
  TargetFrameworkVersion or PlatformToolset may be set to an invalid version nu
mber. [E:\PacificCX\testSecond\build\binding.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x
64.targets(146,5): error MSB6006: "CL.exe" exited with code -1073741515. [E:\Pa
cificCX\testSecond\build\binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\kamaldeep.singh\AppData\Roam
ing\npm\node_modules\nw-gyp\lib\build.js:267:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\kamaldeep.sin
gh\\AppData\\Roaming\\npm\\node_modules\\nw-gyp\\bin\\nw-gyp.js" "build"
gyp ERR! cwd E:\PacificCX\testSecond
gyp ERR! node -v v4.2.2
gyp ERR! nw-gyp -v v0.12.4
gyp ERR! not ok

请有人帮我解决这个问题。提前致谢。

这是我的完整示例程序的链接。 Download Sample

【问题讨论】:

    标签: node-webkit


    【解决方案1】:

    通过更新 Visual Studio 2012 解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2018-10-15
      • 1970-01-01
      • 2014-12-15
      • 1970-01-01
      • 1970-01-01
      • 2018-03-26
      • 1970-01-01
      • 2015-01-10
      • 2012-03-01
      相关资源
      最近更新 更多