【问题标题】:Unreal Engine 4 Basic C++ Code Project giving compile error虚幻引擎 4 基本 C++ 代码项目给出编译错误
【发布时间】:2019-09-01 04:59:51
【问题描述】:

我在加载“基本 C++ 代码项目”时遇到了这个问题,并且由于缺乏信息而完全没有成功。

错误如下:

Running E:/Program Files/Epic Games/UE_4.22/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="D:/[My-User]/Documents/Code/[Project Root Dir]/[Project]/[Project].uproject" -TargetType=Editor -Progress -NoHotReloadFromIDE
 Creating makefile for [Project]Editor (no existing makefile)
 @progress push 5%
 Parsing headers for [Project]Editor
   Running UnrealHeaderTool "D:\[My-User]\Documents\Code\[Project Root Dir]\[Project]\[Project].uproject" "D:\[My-User]\Documents\Code\[Project Root Dir]\[Project]\Intermediate\Build\Win64\[Project]Editor\Development\[Project]Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
 Reflection code generated for [Project]Editor in 8.2032876 seconds
 @progress pop
 Using Visual Studio 2017 14.16.27023 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
 ERROR: System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
           at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
           at UnrealBuildTool.XGE.ExecuteTaskFile(String TaskFilePath, DataReceivedEventHandler OutputEventHandler, Int32 ActionCount) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Executors\XGE.cs:line 493

如果有与此问题相关的更多信息,我很乐意提供。

【问题讨论】:

  • 是否有任何其他信息可以识别无法找到的文件?看起来它可能是一个可执行文件,那么您是否安装了 Visual Studio 2017?
  • 不小心删除了以下评论:我同时安装了 17 和 19。我知道的关于该文件的所有信息都在错误中,但我相当确定它与 SDK 有关。

标签: c++ unreal-engine4


【解决方案1】:

您的 Visual Studio 安装可能有问题。检查您的 Visual Studio 安装程序并确保勾选Game development with C++ 工作负载。我通常还会在各个组件列表下安装 .NET Framework 4.6.2 SDK 和目标包。

在您的情况下,它似乎正在寻找 Visual Studio 2017,因此请先尝试使用 2017 的上述步骤。

【讨论】:

  • 这没有帮助。使用 VS2017 进行测试。我怀疑 19 会有什么不同
【解决方案2】:

我的电脑关机后也遇到了类似的问题

备份所有内容后,我删除了除源、内容和配置之外的所有文件夹,而不是使用 .uproject 生成的虚拟工作室文件

问题解决了:)

【讨论】:

  • 您能否提供一些参考资料来支持您的回答,例如来自可信来源的链接?
【解决方案3】:

我发现了这个问题。由于某种原因,它不喜欢使用 UE 4.22.3... 谢谢大家的帮助!

【讨论】:

    猜你喜欢
    • 2018-02-18
    • 1970-01-01
    • 2021-08-24
    • 1970-01-01
    • 2020-09-25
    • 1970-01-01
    • 2020-08-11
    • 2018-08-13
    • 1970-01-01
    相关资源
    最近更新 更多