Download

新手求救tut 创建c++项目失败 不知道是什么原因= =

刚开始接触UE,想学一下C++开发的流程
然而开头就遇到这样的问题。。。
建工程就失败。。。
请大神们指教TUT
谢谢!

UE给出来的错误是这样的:


无法编译该项目。您想在Visual Studio中打开它吗?

Running D:/Program Files (x86)/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe Test1 Development Win64 -project="E:/UnrealEngine_Projects/Test1/Test1.uproject" -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE
 @progress push 5%
Parsing headers for Test1Editor
  Running UnrealHeaderTool "E:\UnrealEngine_Projects\Test1\Test1.uproject" "E:\UnrealEngine_Projects\Test1\Intermediate\Build\Win64\Test1Editor\Development\Test1Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for Test1Editor in 5.2025188 seconds
 @progress pop
Performing 7 actions (2 in parallel)
[2/7] Resource PCLaunch.rc
PCH.Test1.h.cpp
[3/7] Resource ModuleVersionResource.rc.inl
Test1.generated.cpp
Test1GameMode.cpp
E:\UnrealEngine_Projects\Test1\Intermediate\Build\Win64\UE4Editor\Inc\Test1\Test1.generated.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header
E:\UnrealEngine_Projects\Test1\Source\Test1\Test1GameMode.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header
Test1.cpp
E:\UnrealEngine_Projects\Test1\Source\Test1\Test1.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header
ERROR: UBT ERROR: Failed to produce item: E:\UnrealEngine_Projects\Test1\Binaries\Win64\UE4Editor-Test1.dll
Total build time: 56.43 seconds



可能是VS2015 update3的锅,如果你没有装update3就不要看链接了。
https://answers.unrealengine.com/questions/435600/build-failed-with-vs-2015-update-3.html

同样的问题,使用的是vs2013

同样遇到了这个问题,求解决

在最近的一期 Twitch 里面的更新信息说好像已经在做 VS2015 UPdate3 的问题的修复了,大家可以关注一下最近的更新。

升级到12.5后还有这个问题吗?

12.5里应该已经集成了VS2015 Update 的修复,或者你可以自己集成这个commit: https://github.com/EpicGames/UnrealEngine/commit/f011bacaaf292ebdc8f33fdeb78bb14d30eaa6bc