How to set up libusb on Mac OS X?

Dae picture Dae · Oct 4, 2010 · Viewed 75.5k times · Source

I'd like to try to make a user-space device driver using libusb on Mac, but I'm confused where to start. In the SDK installer (which I got from http://www.ellert.se/twain-sane) it said something about examples which I couldn't find anywhere on my computer.

Could anyone please describe how do I set up libusb for development on OS X? May I use Xcode? What should I include in my code?

Answer

Donald Derek picture Donald Derek · Dec 3, 2014
brew install libusb-compat 

Working on OSX Yosemite 10.10