@ OpenHMD.cpp : comment out OHMD_BUTTON_COUNT #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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