UE 4.26.2 cannot build for Oculus Quest 2 : OculusVR Plugin files and directory missing

Hello all, Daniel here, first time asking a question. Building a package for Quest 2 has been very problematic, but after days of trying different configurations, NDK’s, and tutorials I was finally able to “push” the project to the headset. The problem was it was black screening with the three loading dots and wouldn’t actually run in the headset.

Went through the UE4.25 → and on documentation and the Oculus development documentation again, and still black screen when I try to directly launch (Launch dropdown → Device ). I then found this video here : Quest 2 Settings You Should Use (Fix Level Open/Stream Crash And More) in UE4 - YouTube
and tried with these settings and using the Project Launcher, only to now get stumped on these errors from the Project Launcher (Settings are Android_ASTC, Development, By the Book ):

I checked and there is no runtime directory, I have no idea if that’s a temp directory made on build or if it’s straight up missing with all the subsequent files.

I also have no idea where to find / locate the OpenGLDrvPrivate.h and SceneCaptureComponent2D.h files, whether or not they’re supposed to be in the lost directory folders or anywhere else. (also don’t know why an OpenGL derived file is being called when I change it to use Vulkan? )

I was contemplating making a new test project and seeing if the files would properly propagate, then just move them over, but I am pulling on strings at this point. Any help would be great!

SOLVED : If any other Oculus beginner is running into this problem and sees this, here is what to do.

  1. Go to your VR projects directory and find the plugins folder

  2. enter the folder and delete the OculusVR Plugin ( If the OculusVR plugin is the only plugin in the folder, you can delete the whole folder, I had other plugins locally so I just deleted the local Oculus ones )

  3. Restart Unreal, open the project and make sure the OculusVR plugin is still enabled

  4. Try packaging again ( should hopefully work now! )

I had the plugin in the project folder, but that causes these errors to appear because UE will look locally first. Once removed it goes to find the plugin at some root location, along with where the “missing” folders / files are!

1 Like