-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnityXR plugin is not supported on Linux #3
Comments
Are you trying to build to linux or use the linux editor? I'm not sure if Unity XR itself has linux support yet. |
Same for MacOS |
We're working through linux support with unity now. You can try to compile on your own if you like though. |
Thanks, I'll evaluate the master branch today. You said you're working with Unity on that, does that means the Linux support has issues? What works and what doesn't work? The runtime folder doesn't including Linux in the included platforms. Is it normal that this file wasn't updated? "includePlatforms": [
"Editor",
"WSA",
"WindowsStandalone32",
"WindowsStandalone64",
"LinuxStandalone64"
], |
Looks like that should be fixed for builds, but the editor doesn't seem to be loading the libXRSDKOpenVR.so at all. I believe 'Editor' should cover linux while in editor. Just tried making that fix just in case but still getting the same issue. Editor says DllNotFoundException: XRSDKOpenVR. |
Are there any updates here? Anyone have any luck loading XRSDKOpenVR in the linux editor or a build? |
I also need help with this issue! Have there been any updates? |
@zite, I also continuously get this error when trying to load the sample scene. I am trying to develop an application very quickly. Has anybody fixed this issue yet, and is it viable to use this plug-in? Or should I try to find this older plugin people are talking about, and use that one instead? |
Also ran into the "DllNotFoundException: XRSDKOpenVR" issue. Tried the usual mono debugging I can remember to no avail, but can't remember what gotchas Unity adds, and have no idea what extra complexities it adds being a package. |
Not sure if I'm on the right path (pun intended), but I think this is a relative path issue due to how libXRSDKOpenVR.so is linked. If I make a minimal .cs file that loads SetUserDefinedSettings() from libXRSDKOpenVR.so it works just fine. However, when I copied the .cs and .so to a different folder to make a more minimal replication, I started getting a Anyway, so my theory is that this probably works just fine on whatever machine it was developed on, but was maybe never tested as an installed package. Somehow the packaged version doesn't have working paths or something? This might be a giant red herring, but I'll keep digging. EDIT:
I guess I should try launching my other project using the legacy OpenVR stuff to check. It was working a couple days ago anyway. Unity 2019.4.28f1 LTS + SteamVR 1.18.7 running on PopOS 20.04 LTS EDIT 2: |
Thanks to everyone who is looking into this! I am having the same problem with Unity 2021.1.14f1. I worked around the DllNotFoundException problem by creating lib/x64/ in my project and linking to the libopenvr_api.so file there, since the libXRSDKOpenVR.so dlopen problem is due to it not finding this dependency. But it still did not display in VR. No errors in the console, but I saw this error in the log: So I moved Vulkan above OpenGLCore in the Rendering settings and restarted the editor. This resulted in a SIGSEGV every time I tried to play the scene:
I'm giving up for now. :-( |
Mine loaded in VR on Kubuntu after symlinking (Kubuntu, Unity 2022.1b, SteamVR 2.7.3, OpenVR XR 1.1.4; Player was set to Vulkan as the primary graphics API on Linux and Windows) |
Quick update: I also am coming up with the following error in the console: Nothing shows up in my headset and nothing is being tracked. Hope they fix it soon as the side-project I am doing has been grinded to a halt for now. (I hope I've mentioned this to the right people as it is confusing which OpenXR implementation I'm using right now... ^^") Tested on:
I also want to quickly preface that I did also try OpenVR from the Asset Store to get around this problem, but that was spuing errors like no tomorrow! |
Okay, I know this time I'm using the correct OpenXR thing with this one as I downloaded the experimental 1.1.5 directly fom GitHub. Got the following error when I tried to fire up my game for a quick test: Since I'm a total noob at this, I don't know if this is because I set something wrong in the project, but I'm leaving this here just in case that isn't the case. Tested using the same as before with the exception of using "OpenVR Unity XR Package 1.1.5" than other other OpenXR plugin from yesterday. |
I ran into an issue of the package not being able to locate and load the action.json file due to the UserDefinedSettings actionManifestPath containing both back and forward slashes on Ubuntu 22.04.1 (jammy). Setup:
Pull request #126 has a fix for the issue that I tested locally. Below is an excerpt of the Unity Player.log from a test run on Ubuntu showing the original issue that the pull request resolves:
|
Hello,
The previous plugin worked on Linux, the new UnityXR one doesn't.
The text was updated successfully, but these errors were encountered: