Viewing 1 reply thread
  • Author
    Posts
    • #11226 Score: 0
      uauawi
      Participant

      环境:CMake 3.23.0, Visual Studio 2022
      错误详情:
      `
      D:\Home\Studio\Pilot>cmake -S engine/ -B build
      — Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
      CMake Error at CMakeLists.txt:3 (project):
      Failed to run MSBuild command:

      D:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe

      to get the value of VCTargetsPath:

      用于 .NET Framework 的 Microsoft (R) 生成引擎版本 17.1.0+ae57d105c
      版权所有(C) Microsoft Corporation。保留所有权利。

      生成启动时间为 2022/4/6 12:54:45。
      节点 1 上的项目“D:\Home\Studio\Pilot\build\CMakeFiles\3.23.0\VCTargetsPath.vcxproj”(默认目标)。
      InitializeBuildStatus:
      正在创建“x64\Debug\VCTargetsPath.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
      PostBuildEvent:
      echo VCTargetsPath=D:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\
      :VCEnd
      FinalizeBuildStatus:
      正在删除文件“x64\Debug\VCTargetsPath.tlog\unsuccessfulbuild”。
      正在对“x64\Debug\VCTargetsPath.tlog\VCTargetsPath.lastbuildstate”执行 Touch 任务。
      已完成生成项目“D:\Home\Studio\Pilot\build\CMakeFiles\3.23.0\VCTargetsPath.vcxproj”(默认目标)的操作。

      已成功生成。
      0 个警告
      0 个错误

      已用时间 00:00:00.66

      — Configuring incomplete, errors occurred!
      See also “D:/Home/Studio/Pilot/build/CMakeFiles/CMakeOutput.log”.

      D:\Home\Studio\Pilot>
      `
      CMakeFiles/CMakeOutput.log 中的信息是 The system is: Windows – 10.0.19042 – AMD64

      昨天用的是VS2019+cmake3.19,产生的错误是相同的。

    • #11228 Score: -1
      huanggaole
      Participant
      -1 pt

      同学请阅读文件夹下的readme.md文件运行目录下的build_windows.bat

      This post has received 1 vote down.
      • #11250 Score: 0
        uauawi
        Participant

        运行错误呢,bat第一个命令就是cmake -S engine/ -B build,出上面的错误

Viewing 1 reply thread
  • You must be logged in to reply to this topic.