虚幻引擎4 "project coult not be compiled"

Unreal Engine 4 "project coult not be compiled"

本文关键字:not be compiled coult project 引擎      更新时间:2023-10-16

我最近下载了UE4,无法打开C 类。当我创建项目时,它显示了:

Running C:/Program Files (x86)/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject6 Development Win64 -project="C:/Users/Daniel/Documents/Unreal Projects/MyProject6/MyProject6.uproject" -rocket -editorrecompile -progress -noubtmakefiles -2015
@progress push 5%
Parsing headers for MyProject6Editor
  Running UnrealHeaderTool "C:/Users/Daniel/Documents/Unreal Projects/MyProject6/MyProject6.uproject" "C:UsersDanielDocumentsUnreal ProjectsMyProject6IntermediateBuildWin64MyProject6EditorDevelopmentUnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed
Reflection code generated for MyProject6Editor in 11,6497437 seconds
@progress pop
Performing 7 actions (4 in parallel)
[2/7] Resource PCLaunch.rc
[3/7] Resource ModuleVersionResource.rc.inl
PCH.MyProject6.h.cpp
MyProject6.cpp
MyProject6GameMode.cpp
MyProject6.generated.cpp
C:UsersDanielDocumentsUnreal ProjectsMyProject6SourceMyProject6MyProject6GameMode.cpp: error C4599: '/IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE': command line argument number 228 does not match precompiled headerC:UsersDanielDocumentsUnreal ProjectsMyProject6SourceMyProject6MyProject6.cpp: error C4599: '/IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE': command line argument number 228 does not match precompiled header
C:UsersDanielDocumentsUnreal ProjectsMyProject6IntermediateBuildWin64UE4EditorIncMyProject6MyProject6.generated.cpp: error C4599: '/IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE': command line argument number 228 does not match precompiled header
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:UsersDanielDocumentsUnreal ProjectsMyProject6BinariesWin64UE4Editor-MyProject6.dll
Total build time: 100,66 seconds

有什么想法出了什么问题?感谢您的帮助。

您的游戏模式sourceFile包括以某种方式不正确的标头。我看到了对第228行的引用,但我不确定这是在您的游戏模式下还是在包含的标题中。

相关文章: