Building 4.13-googlevr branch from source fails on VulkanRHI compile.

Trying to build the engine with the newly released Google Daydream integrations found in this branch of GoogleVR’s UE4 fork:
https://github.com/googlevr-unreal/UnrealEngine/tree/4.13-googlevr

Tried the full process 3 times now (cloning repo from scratch, running setup.bat, runing buildprogramfiles.bat, then building in VS2015).

Build process always ends on this error:

4>ERROR : UBT error : Failed to
produce item:
D:\UnrealEngine_DaydreamVR\UnrealEngine\Engine\Binaries\Win64\UE4Editor-VulkanRHI.dll
4> Total build time: 1712.62 seconds
4>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,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.
========== Build: 3 succeeded, 1 failed, 0 up-to-date, 0 skipped

Sometimes VS provides this additional error info:

2>d:\unrealengine_daydreamvr\unrealengine\engine\source\runtime\vulkanrhi\private\VulkanRHIPrivate.h(33):
fatal error C1083: Cannot open include
file: ‘vulkan/vulkan.h’: No such file
or directory 2>ERROR : UBT error :
Failed to produce item:
D:\UnrealEngine_DaydreamVR\UnrealEngine\Engine\Binaries\Win64\UE4Editor-VulkanRHI.dll

Is there something extra I’m missing here…i.e. Vulkan files that aren’t included in the repo or something? I DO see the VulkanRHI source and header files in the Engine > Source > Runtime folder, AND vulkan.h in Engine > Source > ThirdParty > Vulkan > Windows > Include > vulkan .

Still getting failures with this (though slightly changed error messages) when trying to build Unreal directly from the EpicGames GitHub repo.

Now I get this, which seems to be related to variable type restrictions ( DWORD ). Maybe I’m making some n00b mistake here, but I was able to succesfully compile the engine regularly before trying to do so with recent Daydream VR / Vulkan features.

1>------ Build started: Project:
ShaderCompileWorker, Configuration:
Development_Program x64 ------ 1>
Target is up to date 2>------ Build
started: Project: UE4, Configuration:
Development_Editor x64 ------ 2>
Performing 2 actions (9 in parallel)
2> Module.VulkanRHI.cpp
2>D:\VulkanSDK\1.0.26.0\Include\vulkan/vulkan.h(4084):
error C2872: ‘DWORD’: ambiguous symbol
2> C:\Program Files (x86)\Windows
Kits\8.1\include\shared\minwindef.h(156):
note: could be ‘unsigned long DWORD’
2> d:\unreal
4.13.1\unrealengine\engine\source\runtime\core\public\Misc/DisableOldUETypes.h(34):
note: or
‘DoNotUseOldUE4Type::DWORD’ 2>ERROR :
UBT error : Failed to produce item:
D:\Unreal
4.13.1\UnrealEngine\Engine\Binaries\Win64\UE4Editor-VulkanRHI.dll
2> Total build time: 230.19 seconds
2>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,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.
========== Build: 1 succeeded, 1 failed, 2 up-to-date, 0 skipped

I am getting same errors, when to build unreal engine 4.13.2 with visual studio 2015. I have same config with you, I have installed vulkansdk 1.0.26.0…

I try nearly every vulkansdk and mess with system variables but I couldn’t identify the problem.

I am using LunarG Vulkan SDK v1.0.30.0 and fixed this issue by editing line #4100 in “vulkan.h” like this:

//DWORD                        dwAccess;
 unsigned long                 dwAccess;