I need to do an engine rebuild so that I can disable audio muting when the VR preview window becomes defocussed (would be great to have that exposed as an editor preference ). I cloned the 4.16 branch from github, followed all the normal steps, but have run into 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
Iāve successfully build many engine versions before, but this is a completely new error to me and is a bit beyond me. Iām guessing that this must be something particular to my setup but am at a loss of things to try to resolve it. Does anyone have any words of advice they could share?
Since 4.16 is a preview, you could be running into a bug Epic didnāt catch. I can see that the file in question was changed 13 days ago. Try working with 4.15.2 and see if you get the same issue. In general, itās not quite safe to do real development with a preview version.
Actually, I see that SetPipelineState() used to just be declared but now itās implemented in the header, with a template statement in front of it. That may be causing the problem. Looks like the change was done via this PR: .com/EpicGames/UnrealEngine/pull/3512. You may want to talk to the devs involved in that. You may be able to help them if something isnāt right with their changes.
As a complete aside, I discovered after the fact that I could change this without recompiling the engine by setting this variable in Config/DefaultEngine.ini:
[Audio]
UnfocusedVolumeMultiplier=1.0
Ah wellā¦ at least the effort seems to have uncovered a bug. Time well spent.
Yes I did. Iām looking into it now. We have other people on our QA team who havenāt reported any issues like this so Iām collaborating with them about it.
Interesting. The version that Iāve been building with is
Microsoft Visual Studio Community 2017
Version 15.2 (26430.4) Release
VisualStudio.15.Release/15.2.0+26430.4
Microsoft .NET Framework
Version 4.7.02046
Not quite the same, but close. Are you saying that the problem occurs with the latest updates?
From what weāve seen it only seems to affect Visual Studio Community 2017 from Version 15.1 (mine specifically is the 26403.7 release). VSC2017 without an update is unaffected.
I just ran into the same problem and as previously posted, removing FD3D12StateCacheBase:: from the file D3D12StateCachePrivate.h fixed the problem for me as well. Iām compiling the latest 4.16 source from GIT and using Visual Studio Community 2017 (Version 15.2 26430.15).
Hey, youāll need to post the output log from Visual Studio for anyone to have a chance at helping you. Otherwise no-one can see what the error actually is.