Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Error building 4.16 branch from source - can't build Oculus lib

Hi All,

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?

Building on Windows 10 using Visual Studio 2017,


Product Version: UE 4.16 Preview
more ▼

asked May 14 '17 at 09:37 PM in Bug Reports

avatar image

44 5 7 12

avatar image philboltt May 15 '17 at 10:10 PM

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:


Ah well... at least the effort seems to have uncovered a bug. Time well spent.

avatar image Jin_VE May 15 '17 at 10:26 PM

LOL. Been there...

avatar image aecastaneda Jul 08 '17 at 11:14 PM

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).

avatar image Talad Aug 01 '17 at 02:40 PM

The problem still persists in 4.16.3-release with VS 2017 Community 15.2 (26430.16). The suggested fix below works.

avatar image Ahmedkhalid_17 Jun 01 '19 at 05:33 AM
 Running C:/Program Files/Epic Games/UE_4.16/Engine/Binaries/DotNET/UnrealBuildTool.exe  -projectfiles -project="C:/Users/Ahmed/Documents/Unreal Projects/GameWorld/GameWorld.uproject" -game -rocket -progress -log="C:\Users\Ahmed\Documents\Unreal Projects\GameWorld/Saved/Logs/UnrealVersionSelector-2019.05.31-19.37.35.log"
 Discovering modules, targets and source code for project...
 Messages while compiling C:\Program Files\Epic Games\UE_4.16\Engine\Intermediate\Build\BuildRules\UE4Rules.dll:
 error CS0042: Unexpected error creating debug information file 'c:\Program Files\Epic Games\UE_4.16\Engine\Intermediate\Build\BuildRules\UE4Rules.PDB' -- 'c:\Program Files\Epic Games\UE_4.16\Engine\Intermediate\Build\BuildRules\UE4Rules.pdb: Access is denied.
 UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files

How to Fix that Issue Any Idea? I am using VS2017 with latest Update

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first


D3D12_STATE_CACHE_INLINE void FD3D12StateCacheBase::SetPipelineState(FD3D12PipelineState* PSO)


D3D12_STATE_CACHE_INLINE void SetPipelineState(FD3D12PipelineState* PSO)

i.e. remove "FD3D12StateCacheBase::" as it isn't needed and VS2017 throws an error for it.


more ▼

answered May 18 '17 at 09:28 AM

avatar image

171 2 8 11

avatar image philboltt May 23 '17 at 04:40 AM

Thanks Andrew! @Matthew Clark, did you see this?

avatar image Matthew J May 24 '17 at 08:48 PM

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.

avatar image theslickmeister May 25 '17 at 08:47 AM

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.

avatar image philboltt May 25 '17 at 09:00 AM

Interesting. The version that I've been building with is

 Microsoft Visual Studio Community 2017 
 Version 15.2 (26430.4) Release
 Microsoft .NET Framework
 Version 4.7.02046

Not quite the same, but close. Are you saying that the problem occurs with the latest updates?

avatar image theslickmeister May 25 '17 at 09:05 AM

Yeah, the error seems to have been introduced in the first update

avatar image wingedrobin May 25 '17 at 04:32 PM

I got the same issue, and the version of my VS Community 2017 is 15.2 (26430.6)

avatar image urinal-cake Jun 15 '17 at 12:56 AM

I had this issue on a build controller that only had Microsoft SDK 10, .NET 4.6.1 and Microsoft Build Tools installed.

avatar image krisgoku2 Oct 13 '17 at 04:14 PM

Has their been any solid reply to this issue?

avatar image wbDHaderer Aug 07 '17 at 09:51 AM

thanks mate!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users


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.

It might also be helpful to submit a bug so Epic can look into it before 4.16 is put into production. You can do that here: https://answers.unrealengine.com/spaces/11/bugs-and-crashes.html.

If you have this problem with 4.15.2 then we can try to dig deeper.

more ▼

answered May 14 '17 at 10:41 PM

avatar image

4.4k 32 79 42

avatar image Jin_VE May 14 '17 at 10:49 PM

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: https://github.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.

avatar image philboltt May 14 '17 at 11:28 PM

Thanks @Jin_VE, that's very helpful. Will try building 4.15.2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I've had this too, I did a completely clean Windows Installation before merging in the the 4.16 'release' changes if that helps.

more ▼

answered May 29 '17 at 02:54 PM

avatar image

820 60 97 140

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I've had the same issue, windows 10, visual studio community 2017 4.16.3, what in the world is going on here......?

more ▼

answered Oct 13 '17 at 04:10 PM

avatar image

96 5 8 11

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question