【问题标题】:Error when opening UnrealEngine打开虚幻引擎时出错
【发布时间】:2017-12-06 15:24:32
【问题描述】:

我是 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 中打开它时,出现构建错误。

请帮忙:)

【问题讨论】:

  • 你的vs版本是什么? UE4.10在我心中只支持vs2015和2013。

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


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2018-08-13
    • 1970-01-01
    • 2018-09-01
    • 2016-08-11
    • 2015-04-16
    • 2023-02-16
    • 2020-09-14
    • 2021-03-02
    • 2019-01-13
    相关资源
    最近更新 更多