Running Oculus DK2 with UE4 natively on Linux

I aim to develop games natively on Linux using UE4. I have compiled the latest stable version of UE4 from github, and I am able to create and play levels in a desktop window. However, when I try to test my levels with the Oculus, UE4 does not recognize the Rift. The Oculus plugin is enabled, but when I go full screen the Rift displays copy of the desktop window and does not display in stereo mode. I have been unable to make much progress recently, so any help, perhaps from someone who is running UE4 with the Oculus on Linux, would be appreciated. Thanks!

Personally, I’m not aware of anyone running DK2 in Linux UE4Editor and, to be honest, the thought of trying it myself did not cross my mind.

We (Linux Community) are still very much in the development and debugging stages of the Linux UE4Editor that focusing on 3rd party libraries/plugins at this point would not make sense as the Editor is still not production ready.

There could also be missing code specific to Rift support in Linux (UE4Editor or otherwise), that Epic did not address either, which might be a reason why you are not getting the results you expect.

Just to follow up on this, I did some preliminary work on adding OVR support to Linux and it’s in my 3dluvr/4.7-linux-ovr branch. You can test that if you like and I will probably send a PR to epic to be included in their master.

Did this PR ever get merged in?

Nope. You can look here for which operating system it’s enabled:

https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Plugins/Runtime/OculusRift/OculusRift.uplugin

Right now it still says "WhitelistPlatforms" : [ "Win64", "Win32", "Mac" ]

The last official statement from Oculus I could find was from June 2014 “we are working on adding Mac and Linux support”. https://forums.oculus.com/viewtopic.php?f=60&t=9757

Maybe the people who were active in the community fork can say something to the communication with Epic, but we people on the outside have seen zero information about VR on linux.

Oculus paused development of their SDK for Linux and Mac back in May (Powering the Rift | Meta Quest Blog) so the point is moot now.