bakercp / ofxHID

An openFrameworks addon for direct HID access to USB devices.
5 stars 0 forks source link

'hidapi/hidapi.h' file not found #1

Open JeremyKeenan opened 4 years ago

JeremyKeenan commented 4 years ago

Hello,

I get this error on Mac OS X 10.13.6:

'hidapi/hidapi.h' file not found

I have installed the hidapi library via homebrew.

pkg-config --cflags hidapi

returns: -I/usr/local/Cellar/hidapi/0.9.0/include/hidapi

How can I resolve this?

bakercp commented 4 years ago

It isn't currently configured to use brew, though you probably could. The intended (though not documented, sorry) is to call this, which will build libhid using apothecary.

https://github.com/bakercp/ofxHID/blob/master/scripts/build.sh

JeremyKeenan commented 4 years ago

Ah, right thank you, I will try that - I actually got it compile using this addon:

https://github.com/magiclab/ofxHIDapi

It recognises all the controllers attached. I'm still trying to actually get HID to print to the console using the example (just posted about this in the OF forum)

JeremyKeenan commented 4 years ago

I actually get this error when running build.sh: