Doesn't run on OSX
See original GitHub issueFirstly, 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)
loadpath = os.path.dirname(__file__) + '/' + _openvr_lib_name
openvr = cdll.LoadLibrary(loadpath)
Working on next set of errors… 😃
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:12 (3 by maintainers)
Top Results From Across the Web
If you can't open an app on Mac - Apple Support
If you aren't an administrator of your Mac, the administrator may be preventing you from using the app. · You may be trying...
Read more >MacBook won't turn on? Here's how to fix it - Macworld
If it's not responsive because it's stuck on a grey, blue or white screen, just hold down the Mac's power button for several...
Read more >Mac Won't Boot or Start? How to Fix Issues With a Mac Not ...
1. Check If the Mac Has Power · 2. Run a Power Cycle · 3. Boot Into Safe Mode · 4. Reset SMC...
Read more >Mac Not Turning On? Take These 8 Steps to Fix It - MacKeeper
Mac Not Turning On? Take These 8 Steps to Fix It · 1. Ensure your Mac has power · 2. Check your Mac's...
Read more >How to Fix a Mac Application That's Not Starting - Lifewire
Reasons a Mac Application Won't Start · There's a chance a file became corrupt because of a system crash. · The app may...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
__init__.py
to make it load the libopenvr_api_32.dylib library on 64-bit Darwin. I didn’t run into any of the other issues SoyletGraham mentions. Perhaps those have been fixed in more recent changes.Regardless, if you simply copy the Darwin check:
into the 64-bit “else:” clause in
__init__.py
, it works for me. I can open a pull request if it would be helpful.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.