Error building 4.16 branch from source - Oculus lib

Reporting this as a bug as per this post - https://answers.unrealengine.com/questions/600362/error-building-416-branch-from-source.html

Building the 4.16 branch from source on Windows 10 using Visual Studio 2017 is raising this error:

2>d:\workspace\unrealengine\engine\source\runtime\d3d12rhi\private\D3D12StateCachePrivate.h(716): error C4596: 'SetPipelineState': illegal qualified name in member declaration
 2>d:\workspace\unrealengine\engine\source\runtime\d3d12rhi\private\D3D12StateCachePrivate.h(716): error C4596: 'SetPipelineState': illegal qualified name in member declaration
 2>ERROR : UBT error : Failed to produce item: D:\workspace\UnrealEngine\Engine\Plugins\Runtime\OculusRift\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-OculusRift.lib

Full Visual Studio output log attached.

link text

Hello ,

I’ll be happy to look into this for you. I’m assuming (from looking at the other post) that this didn’t end up reproducing when you tried to compile in 4.15.2? I’ll be testing this and I’ll get back to you if I have more questions or when I enter a report.

Thanks Matthew. Yes, I can confirm that I cannot reproduce this error when compiling the 4.15 branch from source.

Thank you for that information. I was able to reproduce this locally and I’m currently looking into what could be causing this. If all else fails, I’ll place a bug report in for it.

We should try to keep all of this information in one place and it looks like your other post is getting more traffic. As such, I’m going to close this one and move the other one to bug reports. Please refer to that post for further assistance.