简体   繁体   English

虚幻引擎4致命错误C1083

[英]Unreal Engine 4 fatal error C1083

I've tried to generate a new UE4 Project (C++/Third Person) but I always get the following error 我试图生成一个新的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:\Users\Paul\Documents\Unreal  Projects\AnotherWorld\AnotherWorld.uproject" "C:\Users\Paul\Documents\Unreal Projects\AnotherWorld\Intermediate\Build\Win64\AnotherWorldEditor\Development\AnotherWorldEditor.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 Studio\2017\Community\VC\Tools\MSVC\14.11.25503\INCLUDE\cstddef(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:\Users\Paul\Documents\Unreal  Projects\AnotherWorld\Binaries\Win64\UE4Editor-AnotherWorld.dll
Total build time: 42,13 seconds (Local executor: 0,00 seconds)

How can I fix this error? 如何解决此错误?

I know this is an old question, but I thought I'd toss in my answer for anyone who stumbles across it. 我知道这是一个古老的问题,但是我认为我会向那些偶然发现该问题的人抛出疑问。

You might be experiencing the same issue I had, that is, I was missing the UCRT SDK. 您可能遇到了同样的问题,也就是说,我缺少UCRT SDK。 When you are Modifying your VS install from the Visual Studio Installer, be sure you install the Windows Universal CRT SDK along with which ever version of Windows SDK you are using. 从Visual Studio安装程序修改VS安装时,请确保安装Windows Universal CRT SDK以及所使用的Windows SDK版本。 In my case, I only had Windows 8.1 SDK component and was receiving the same error. 就我而言,我只有Windows 8.1 SDK组件,并且收到相同的错误。

Once you have the Windows Universal CRT SDK installed, try making a new project with the same settings. 安装Windows Universal CRT SDK后,请尝试使用相同的设置制作一个新项目。 Your old projects will not build for what I assume is a problem with the solution properties not including the new ucrt include path. 您的旧项目将无法构建,因为我认为解决方案属性不包含新的ucrt包含路径会导致问题。

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

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