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

OHMD_BUTTON_COUNT not declared

Open johnbentcope opened this issue 5 years ago • 0 comments

I'm attempting to build this on Ubuntu 20.04, and I'm running into an issue:

OpenHMD.cpp: In member function ‘void OpenHMD::printDeviceInfo()’:
OpenHMD.cpp:68:24: error: ‘OHMD_BUTTON_COUNT’ was not declared in this scope; did you mean ‘OHMD_CONTROL_COUNT’?
   68 |  ohmd_device_geti(hmd, OHMD_BUTTON_COUNT, bcount);
      |                        ^~~~~~~~~~~~~~~~~
      |                        OHMD_CONTROL_COUNT
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I was able to build it by swapping that OHMD_CONTROL_COUNT in for OHMD_BUTTON_COUNT, but will this cause issues down the line?

johnbentcope avatar Jun 10 '20 22:06 johnbentcope