Can't build for Meta Quest 2, EngineSharedPCH.h file not found


I’m trying to build a VR project to be installed on the Meta Quest 2 and failed after a full day trying to configure the editor and all the software needed.

Everything appears to be correct, except when I try to build the project for the device inside the Unreal Engine 5.2 editor, after which it fails giving the error:

LogPlayLevel: Error: UAT: D:/Users/ME/Documents/Unreal Projects/MYPROJECT/Intermediate/Build/Android/a/MYPROJECT/Development/Engine/SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.h(216,10): fatal error: ‘Runtime/Engine/Public/EngineSharedPCH.h’ file not found

File “build.cs” already has line PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; and I can’t set VS Community 2022 to not use precomplied headers because VS won’t show properties tab C/C++ for the project even if C++ source files are already there or I create new source files from VS nor UE.

Am I missing something else?

Apparently, installing the engine in the main C:\ drive solved the problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.