Hello guys, could anyone of you help me with a compile problem? I’m trying to compile UE4 from source and I’m getting this error in build time.
1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
1>Performing 35 actions (4 in parallel)
1>Module.Core.9_of_9.cpp
1>Module.DesktopPlatform.cpp
1>Module.Core.8_of_9.cpp
1>Module.ShaderFormatD3D.cpp
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: ‘identifier’ was unexpected here
1>Module.ShaderFormatOpenGL.cpp
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: ‘identifier’ was unexpected here
1>Module.MetalShaderFormat.cpp
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: ‘identifier’ was unexpected here
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: ‘identifier’ was unexpected here
1>Module.ShaderCompileWorker.cpp
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: ‘identifier’ was unexpected here
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: ‘identifier’ was unexpected here
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: ‘identifier’ was unexpected here
1>ERROR : UBT error : Failed to produce item: E:\GitHub-Clones\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCompileWorker\Development\ShaderCompileWorker-Core.lib
1>Total build time: 44.26 seconds (Local executor: 0.00 seconds)
1>E:\Visual Studi 2017\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command “…..\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.
1>Done building project “ShaderCompileWorker.vcxproj” – FAILED.
2>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
2>Creating makefile for UE4Editor (no existing makefile)
2>Performing full C++ include scan (no include cache file)
2>Building UnrealHeaderTool…
2>Performing 10 actions (4 in parallel)
2>Module.Core.8_of_9.cpp
2>Module.Core.9_of_9.cpp
2>Module.UnrealHeaderTool.cpp
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: ‘identifier’ was unexpected here
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: ‘identifier’ was unexpected here
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: ‘identifier’ was unexpected here
2>ERROR : UBT error : Failed to produce item: E:\GitHub-Clones\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib
2>Total build time: 10.34 seconds (Local executor: 0.00 seconds)
2>EXEC : error : UnrealHeaderTool failed for target ‘UE4Editor’ (platform: Win64, module info: E:\GitHub-Clones\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest, exit code: OtherCompilationError (5)).
2>E:\Visual Studi 2017\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command “…..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project “UE4.vcxproj” – FAILED.
========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========
Any idea how can I fix this?