Maintenance - We're currently working on things and you might experience some issues. Should be wrapped up soon!

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

10
SteamVR on Linux is still broken. How about native OSVR support?
Post Body

So I've bought a HDK2 for use on Linux and as you may know, the SteamVR support for Linux is just bad right now.

First, I had some problems with the packaged Qt:

ViveRenderer::Initialize() - VR_IsHmdPresent() returned false
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled

Thread 1 "janusvr" received signal SIGSEGV, Segmentation fault.
0x00007ffff35935c8 in QOpenGLContext::format() const () from /opt/janusvr/libs/libQt5Gui.so.5
(gdb) bt
#0  0x00007ffff35935c8 in QOpenGLContext::format() const () from /opt/janusvr/libs/libQt5Gui.so.5
#1  0x00007ffff3593731 in QOpenGLContext::isOpenGLES() const () from /opt/janusvr/libs/libQt5Gui.so.5
#2  0x00007ffff3594ca9 in QOpenGLContext::versionFunctions(QOpenGLVersionProfile const&) const () from /opt/janusvr/libs/libQt5Gui.so.5
#3  0x0000000000444aef in ?? ()
#4  0x000000000042eccf in ?? ()
#5  0x0000000000422437 in main ()

after removing libs/libQt5* I there was this problem:

libGL: dlopen /usr/lib/xorg/modules/dri/radeonsi_dri.so failed (/opt/janusvr/libs/libstdc  .so.6: version `GLIBCXX_3.4.22' not found (required by /usr/lib/libLLVM-4.0svn.so))

You really shouldn't have to package libstdc .so.6. Every linux system you care about supporting already has a copy of that library and unless you're using a libstdc from a time when c 11 was experimental and used those experimental features (I heard that is the only way it could cause trouble), it should be perfectly backwards compatible. And people on the exotic linux systems who don't have it most likely already know how to install it.

So after removing libstdc .so.6 too janusvr -render vive seems to mostly work. SteamVR loads the OSVR stuff, it opens a fullscreen window, but it's "transparent" and doesn't display anything. Also no sound. And after a couple of seconds it segfaults:

Core was generated by `./janusvr -render vive'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fd13b0b8860 in ?? ()
[Current thread is 1 (LWP 10984)]
(gdb) bt
#0  0x00007fd13b0b8860 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fd1392a3f50

apparently the stack is corrupted.

Tl;dr: SteamVR on Linux doesn't work well. Have you considered native OSVR support?

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
12,255
Link Karma
1,066
Comment Karma
11,189
Profile updated: 5 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 years ago