-
Notifications
You must be signed in to change notification settings - Fork 40
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
Doesn't run on OSX #34
Comments
Thanks for investigating this. I haven't got steamvr working on a Mac, so I cannot debug this myself at the moment. |
I've gotten pyopenvr to load and work perfectly (at least with a single VR tracker) on OS X with just a single change in Regardless, if you simply copy the Darwin check: elif platform.system() == 'Darwin':
_openvr_lib_name = "libopenvr_api_32.dylib" into the 64-bit "else:" clause in |
I can confirm this worked for me also. All seems well with that 1 line change. |
Another report of success for the change to init.py. Please make the change to the package! |
I also confirm that adding the two lines suggested by liffiton in Nov 16, 2017 comment allows pyopenvr to work on Mac OS 10.14 (Mojave). I've attached the patch file that adds those two lines that I use with my VR app (ChimeraX) (attached as a zip file since GitHub will not accept attachments with .patch suffix). |
Hand-controller button press events all return button id 0 instead of correctly identifying which button is pressed. This is the same problem as on Linux described in issue #35. The patch that fixed the Linux issue only applies the fix if sys.platform() == 'Linux'. Applying the same fix for Mac makes the buttons work in VR. Here is my patch of openvr/init.py that makes the buttons work on Mac and also makes in find the libopenvr_api_32.dylib on 64-bit macOS. Even with this patch SteamVR is not working correctly on macOS 10.14 (mojave) from a MacBook Pro laptop (2016 13 inch, Intel graphics only) (13,2) with an external GPU (AMD Radeon Vega 56 in Sonnet enclosure). The VR images display but flicker severely (5-30 frames/sec) using the ChimeraX VR molecular display application I work on, and the right eye image is not correct. It is not clear if these are problems in SteamVR on Mojave, in ChimeraX or in pyopenvr. Most likely they are bugs in SteamVR on Mojave. |
Patch in previous comment is wrong -- would break openvr on Windows. Here is the correct patch that only alters behavior on Linux and Darwin. |
@tomgoddard @SoylentGraham @liffiton @paulreimer @ianesten |
I'm afraid I'm no longer working on that project, and I don't have the equipment to test any more. Sorry. |
I tested pyopenvr 1.2.1002 on macOS 10.14 (Mojave) using ChimeraX and Vive Pro and it worked correctly, started and hand controller buttons working. I did not try it on Windows or Linux.
|
@tomgoddard Awesome! Thank you. I'm inclined then to close this issue soon. |
Yeah, I'm also no longer using this either. I just wanted to make sure I made records of stuff I found in case other people had the same problem. |
Firstly, it bails out with
Libraries not available for this platform: Darwin
, as the lib is not setup.The "32 bit" dylib from openvr, is actually a universal library, so has x86 and x64 images. (you can test this using
lipo -info libopenvr_api_32.dylib
), so init.py needs updating.Secondly, you need to specify the full path for LoadLibrary on osx or it won't find the library with
dlopen()
(updating the PATH means nothing)Working on next set of errors... :)
The text was updated successfully, but these errors were encountered: