打开UnrealEngine时出错

时间:2017-12-06 15:24:32

标签: c++ visual-studio unreal-engine4

我是UnrealEngine的新手,但之前我曾与Unity合作过。我试图创建一个新的虚幻引擎文件但我每次尝试时都会收到此错误(基本上无法编译):

    The project could not be compiled. Would you like to open it in Visual Studio?

    Running C:/Program Files/Epic Games/UE_4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe test Development Win64 -project="C:/Users/abdel/Desktop/gamemaking/Unreal/BuildingEscape/test/test.uproject" -rocket -editorrecompile -progress -noubtmakefiles -2015
@progress push 5%
Parsing headers for testEditor
  Running UnrealHeaderTool "C:/Users/abdel/Desktop/gamemaking/Unreal/BuildingEscape/test/test.uproject" "C:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Intermediate\Build\Win64\testEditor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed
Reflection code generated for testEditor in 7.1584488 seconds
@progress pop
Performing 8 actions (2 in parallel)
[2/8] Resource PCLaunch.rc
PCH.test.h.cpp
[3/8] Resource ModuleVersionResource.rc.inl
testGameMode.cpp
test.generated.cpp
C:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Intermediate\Build\Win64\UE4Editor\Inc\test\test.generated.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled headerC:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Source\test\testGameMode.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header

testCharacter.cpp
C:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Source\test\testCharacter.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header
test.cpp
C:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Source\test\test.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users\abdel\Desktop\gamemaking\Unreal\BuildingEscape\test\Binaries\Win64\UE4Editor-test.dll
Total build time: 26.15 seconds

我下载了visual studio,当我尝试在Visual Studio中打开它时,出现构建错误。

请帮助:)

1 个答案:

答案 0 :(得分:-1)

请看一下 https://docs.unrealengine.com/latest/INT/Programming/Development/VisualStudioSetup/ 并检查您使用的是正确的Visual Studio版本。

另外,您是否有理由使用虚幻引擎4.10而不是最新版本,即使您刚刚开始使用UE,我认为您之前没有任何项目?