在Windows 10 x64计算机上从源安装re2

时间:2019-07-29 13:50:28

标签: windows build re2

当我在Windows 10计算机上使用cmake从源代码安装google re2时,出现以下错误。

我正在使用具有管理员权限的Visual Studio 2017开发人员命令提示符进行构建。

 C:\re2\lib>cmake ..
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362.
CMake Error at CMakeLists.txt:12 (project):
  Failed to run MSBuild command:

    C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe

  to get the value of VCTargetsPath:

    Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 29-07-2019 19:19:43.
    Project "C:\re2\lib\CMakeFiles\3.10.2\VCTargetsPath.vcxproj" on node 1 (default targets).
    InitializeBuildStatus:
      Creating "Debug\VCTargetsPath.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
    PostBuildEvent:
      echo VCTargetsPath=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\
      :VCEnd
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error MSB3073: The command "echo VCTargetsPath=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\ [C:\re2\lib\CMakeFiles\3.10.2\VCTargetsPath.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error MSB3073: :VCEnd" exited with code -1073741819. [C:\re2\lib\CMakeFiles\3.10.2\VCTargetsPath.vcxproj]
    Done Building Project "C:\re2\lib\CMakeFiles\3.10.2\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\re2\lib\CMakeFiles\3.10.2\VCTargetsPath.vcxproj" (default target) (1) ->
    (PostBuildEvent target) ->
      C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error MSB3073: The command "echo VCTargetsPath=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\ [C:\re2\lib\CMakeFiles\3.10.2\VCTargetsPath.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error MSB3073: :VCEnd" exited with code -1073741819. [C:\re2\lib\CMakeFiles\3.10.2\VCTargetsPath.vcxproj]

        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.34


  Exit code: 1



-- Configuring incomplete, errors occurred!
See also "C:/re2/lib/CMakeFiles/CMakeOutput.log".

0 个答案:

没有答案