python-openhmd icon indicating copy to clipboard operation
python-openhmd copied to clipboard

@ OpenHMD.cpp : comment out OHMD_BUTTON_COUNT

Open elmbeech opened this issue 6 years ago • 1 comments

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 avatar Apr 22 '18 08:04 elmbeech

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:

  • https://docs.google.com/file/d/0B0bLtNyAhxgoZlgycFN4NHRNLTQ/edit
  • https://github.com/lubosz/HoVR .

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.

elmbeech avatar Apr 29 '18 05:04 elmbeech