虚幻引擎4致命错误C1083

Unreal Engine 4 fatal error C1083

本文关键字:致命错误 C1083 引擎      更新时间:2023-10-16

我尝试生成一个新的UE4项目(C /第三人称),但我总是会收到以下错误

The project could not be compiled. Would you like to open it in Visual Studio?
Running C:/Program Files/Epic Games/UE_4.17/Engine/Binaries/DotNET/UnrealBuildTool.exe AnotherWorld Development Win64 -project="C:/Users/Paul/Documents/Unreal Projects/AnotherWorld/AnotherWorld.uproject" -editorrecompile -progress -NoHotReloadFromIDE
Creating makefile for AnotherWorld (no existing makefile)
Performing full C++ include scan (no include cache file)
@progress push 5%
Parsing headers for AnotherWorldEditor
Running UnrealHeaderTool "C:UsersPaulDocumentsUnreal  ProjectsAnotherWorldAnotherWorld.uproject" "C:UsersPaulDocumentsUnreal ProjectsAnotherWorldIntermediateBuildWin64AnotherWorldEditorDevelopmentAnotherWorldEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for AnotherWorldEditor in 18,9575823 seconds
@progress pop
Performing 11 actions (2 in parallel)
[2/11] Resource ModuleVersionResource.rc.inl
[3/11] Resource PCLaunch.rc
SharedPCH.Engine.cpp
C:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.11.25503INCLUDEcstddef(5): fatal error C1083: file (Include) could not be opened: "stddef.h": No such file or directory
ERROR: UBT ERROR: Failed to produce item: C:UsersPaulDocumentsUnreal  ProjectsAnotherWorldBinariesWin64UE4Editor-AnotherWorld.dll
Total build time: 42,13 seconds (Local executor: 0,00 seconds)

如何解决此错误?

我知道这是一个古老的问题,但是我想我会为任何偶然遇到的人提供答案。

您可能会遇到与我遇到的相同问题,也就是说,我缺少UCRT SDK。当您从Visual Studio安装程序中修改VS安装时,请确保安装Windows Universal CRT SDK以及您使用的Windows SDK版本。就我而言,我只有Windows 8.1 SDK组件,并且正在收到相同的错误。

安装了Windows Universal CRT SDK后,请尝试使用相同的设置进行新项目。您的旧项目不会为我认为的问题构建是解决方案属性不包括新UCRT的问题。