我尝试生成一个新的UE4项目(C++/Third Person),但总是得到以下错误
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)如何修复此错误?
发布于 2018-03-18 14:32:23
我知道这是一个老生常谈的问题,但我想我会把我的答案抛给任何偶然发现它的人。
您可能会遇到与我相同的问题,也就是说,当您从Visual Studio安装程序修改VS安装时,请确保您将Windows Universal CRT SDK与您正在使用的Windows SDK的任何版本一起安装missing the UCRT SDK.。在我的例子中,我只有Windows8.1SDK组件,并且收到了同样的错误。
安装了Windows Universal CRT SDK后,请尝试使用相同的设置创建一个新项目。您的旧项目将不会构建,因为我认为解决方案属性存在问题,不包括新的ucrt include路径。
https://stackoverflow.com/questions/46265317
复制相似问题