CMake не может найти MSBuild.exe - PullRequest
0 голосов
/ 09 февраля 2020

Я пытаюсь собрать библиотеку Assimp с помощью cmake (для учебных пособий по OpenGL), но я не могу собрать необходимые файлы с помощью CMake.

CMakeOutput.txt заканчивается: " Система: Windows - 10.0.18362 - AMD64 "

, а CMake GUI дает мне следующее:

CMAKE_CONFIGURATION_TYPES: Debug; Release; MinSizeRel ; RelWithDebInfo

         CMake Error at CMakeLists.txt:38 (PROJECT):
  Failed to run MSBuild command:

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

  to get the value of VCTargetsPath:

    Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework

    Copyright (C) Microsoft Corporation. All rights reserved.



    Build started 2/9/2020 12:30:21 PM.

    Project "E:\Softwares\assimp-4.1.0\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj" on node 1 (default targets).

    PrepareForBuild:

      Creating directory "x64\Debug\".

      Creating directory "x64\Debug\VCTargetsPath.tlog\".

    InitializeBuildStatus:

      Creating "x64\Debug\VCTargetsPath.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

    PostBuildEvent:

      echo VCTargetsPath=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\

      :VCEnd

      'C:\Users\Sparkie' is not recognized as an internal or external command,

      operable program or batch file.

    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: The command "echo VCTargetsPath=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\ [E:\Softwares\assimp-4.1.0\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj]

    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :VCEnd" exited with code 1. [E:\Softwares\assimp-4.1.0\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj]

    Done Building Project "E:\Softwares\assimp-4.1.0\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj" (default targets) -- FAILED.



    Build FAILED.



    "E:\Softwares\assimp-4.1.0\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj" (default target) (1) ->

    (PostBuildEvent target) -> 

      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: The command "echo VCTargetsPath=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\ [E:\Softwares\assimp-4.1.0\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj]

    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :VCEnd" exited with code 1. [E:\Softwares\assimp-4.1.0\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj]



        0 Warning(s)

        1 Error(s)



    Time Elapsed 00:00:00.22



  Exit code: 1



Configuring incomplete, errors occurred!
See also "E:/Softwares/assimp-4.1.0/build/CMakeFiles/CMakeOutput.log".

Я уже несколько недель пытаюсь найти решение этой проблемы, но, похоже, ничего не работает. Любая помощь приветствуется.

...