I just tried to compile and run this on OSX (10.11).
It successfully compiles with the libusb include changed from to <libusb-1.0/libusb.h> with libusb and portmidi installed via homebrew.
But trying to run it, libusb fails to claim to the device. It gives the following CLI Output:
Got MIDI output device!
Brilliant news! Found input device!
Got input device endpoint!
Failed to claim input device interface
As far as i can tell this has something to do with the system already having loaded the device. Running as root does not fix it. This seems to be a somewhat common issue and the only fix i see recommended is unloading certain kernel extensions. I checked to see if any extra kernel extensions where loaded when i plugged in the device with kextstat and couldnt see any, so i figured i couldnt safely unload any of them without messing with other devices.
So yeah, i dont know how to fix it, maybe someone else does.
I just tried to compile and run this on OSX (10.11).
It successfully compiles with the libusb include changed from to <libusb-1.0/libusb.h> with libusb and portmidi installed via homebrew.
But trying to run it, libusb fails to claim to the device. It gives the following CLI Output:
As far as i can tell this has something to do with the system already having loaded the device. Running as root does not fix it. This seems to be a somewhat common issue and the only fix i see recommended is unloading certain kernel extensions. I checked to see if any extra kernel extensions where loaded when i plugged in the device with kextstat and couldnt see any, so i figured i couldnt safely unload any of them without messing with other devices.
So yeah, i dont know how to fix it, maybe someone else does.