简体   繁体   English

虚幻引擎 4 基本 C++ 代码项目给出编译错误

[英]Unreal Engine 4 Basic C++ Code Project giving compile error

I have been having this a problem when loading up a "Basic C++ Code Project" and have had absolutely no success due to lack of information.我在加载“基本 C++ 代码项目”时遇到了这个问题,并且由于缺乏信息而完全没有成功。

The error is as follows:错误如下:

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

If there is any more information relating to this problem I am happy to provide it.如果有关于这个问题的更多信息,我很乐意提供。

There could be something wrong with your installation of visual studio.你安装的visual studio可能有问题。 Check your Visual Studio installer and ensure that the Game development with C++ workload is ticked.检查您的 Visual Studio 安装程序并确保勾选了使用 C++工作负载的游戏开发 I typically also install the .NET Framework 4.6.2 SDK and targeting pack under the individual components list.我通常还会在各个组件列表下安装.NET Framework 4.6.2 SDK 和目标包。

In your case it seems to be looking for Visual Studio 2017, so try the steps above with 2017 first.在您的情况下,它似乎在寻找 Visual Studio 2017,因此请先尝试使用 2017 执行上述步骤。

I had similar problem after my pc shutdown电脑关机后我遇到了类似的问题

after backing up everything I removed all folders except source, content and config than generated virtual studio files using .uproject备份所有内容后,我删除了除源、内容和配置之外的所有文件夹,而不是使用 .uproject 生成的虚拟工作室文件

problem solved :)问题解决了 :)

I figured out the issue.我想通了这个问题。 It didn't like using UE 4.22.3 for some reason... Thanks for the help guys!出于某种原因,它不喜欢使用 UE 4.22.3...感谢大家的帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM