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

**URL:** <https://forums.unrealengine.com/t/building-4-13-googlevr-branch-from-source-fails-on-vulkanrhi-compile/371797>\
**Category:** XR Development\
**Tags:** vulkan, Daydream, build, unreal-engine, bug-report, question\
**Created:** [September 27, 2016, 7:54pm UTC](https://forums.unrealengine.com/t/building-4-13-googlevr-branch-from-source-fails-on-vulkanrhi-compile/371797 "2016-09-27T19:54:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0500cf20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0500cf20](https://forums.unrealengine.com/u/anonymous_user_0500cf20)\
**Post date:** [September 27, 2016, 7:54pm UTC](https://forums.unrealengine.com/t/building-4-13-googlevr-branch-from-source-fails-on-vulkanrhi-compile/371797/1 "2016-09-27T19:54:41Z")

</div>

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](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_ .

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0500cf20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0500cf20](https://forums.unrealengine.com/u/anonymous_user_0500cf20)\
**Post date:** [September 30, 2016, 8:34pm UTC](https://forums.unrealengine.com/t/building-4-13-googlevr-branch-from-source-fails-on-vulkanrhi-compile/371797/2 "2016-09-30T20:34:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SergunK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SergunK](https://forums.unrealengine.com/u/SergunK)\
**Post date:** [October 26, 2016, 11:17pm UTC](https://forums.unrealengine.com/t/building-4-13-googlevr-branch-from-source-fails-on-vulkanrhi-compile/371797/3 "2016-10-26T23:17:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Monu29](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Monu29](https://forums.unrealengine.com/u/Monu29)\
**Post date:** [November 6, 2016, 9:43am UTC](https://forums.unrealengine.com/t/building-4-13-googlevr-branch-from-source-fails-on-vulkanrhi-compile/371797/4 "2016-11-06T09:43:01Z")

</div>

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;
```
