[libhid-discuss] OS X build

Charles Lepple clepple at ghz.cc
Wed Jan 14 00:10:28 UTC 2015


On Jan 13, 2015, at 1:11 PM, Edgar Fuß <support at math.uni-bonn.de> wrote:

> src/Makefile uses -lIOKit, which doesn’t work on recent versions of OS X. It should be using -framework IOKit instead.
> On a related note, I don’t understand why it quotes CoreFoundation (on the same line).

To be honest, it should be using the output of `libusb-config --libs` instead (which implicitly addresses both of those points).

But once you do that, you are still fighting the OS X USB HID drivers. At one point, it was possible to install a "codeless KEXT" to prevent the kernel HID drivers from binding to the USB device, but I am not sure if that is still an option. At the very least, it probably requires a developer certificate.

You may want to check out the HIDAPI project instead - if I recall correctly, it uses the native HID interface on OS X (probably on Windows as well).

-- 
- Charles Lepple
http://ghz.cc/charles/





More information about the libhid-discuss mailing list