Skip to content
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

@ OpenHMD.cpp : comment out OHMD_BUTTON_COUNT #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elmbeech
Copy link

hi @lubosz and @TheOnlyJoey,

Last June 20th, 2017 TheOnlyJoey (form OpenHMD) submitted a bunch of changes.
Unfortunately cause the introduced OHMD_BUTTON_COUNT lines the build process to crash.
I use the latest openhmd library version 0.2.0-3 that I was able to install with debian 10 buster.
My friend tested on mac osx installing openhmd with brew and was running into the same error.
I was not yet able to test installation on a window, but I am quit sure the same error will happen.

This is the error I get:

/***
OpenHMD.cpp: In member function ‘void OpenHMD::printDeviceInfo()’:
OpenHMD.cpp:68:24: error: ‘OHMD_BUTTON_COUNT’ was not declared in this scope
ohmd_device_geti(hmd, OHMD_BUTTON_COUNT, bcount);
^~~~~~~~~~~~~~~~~
OpenHMD.cpp:68:24: note: suggested alternative: ‘OHMD_ROTATION_QUAT’
ohmd_device_geti(hmd, OHMD_BUTTON_COUNT, bcount);
^~~~~~~~~~~~~~~~~
OHMD_ROTATION_QUAT
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
***/

When this three lines are commented out, python-rift (or python-openhmd) can be build and installed,
though I do not completely understand if the commenting out of this three lines causes any other harm.
Maybe TheOnlyJoey has a better fix then just commenting it out.
Anyhow please help to fix this problem.

I really much appreciate the pioneer work you guys did to get VR into the blender game engine.
Thanks a bunch, Bue

@elmbeech
Copy link
Author

elmbeech commented Apr 29, 2018

Today I built openhmd straight form the https://github.com/OpenHMD/OpenHMD git repository.
Same error occurs. So I don't think that the openhmd library provided by the debian distro is broken.
I looks to me simply like a bug, introduced about a year ago...

Commented out this 3 lines I get openhmd compiled.
I can connect the DK1. I get stereo view. However, I have no head tracking.
No Idea if this is caused by the DK1, the openhmd library, the python-openhmd library or how I handle blender.
I tried out your example test file and your HoVR blender file:

Any help would be appreciated. but I understand as well that this project is maybe dead for you, cause already old. But hey, it was supposed to be the future ; ). You can not just abandon the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant