Fixing make program-dfu // libusb/lib/libusb-1.0.0.dylib error

Hi first post here!
So after compiling I could upload the build through the Web Programmer, but not through the Terminal using the “make program-dfu”.

Here’s the error:

dfu-util -a 0 -s 0x08000000:leave -D build/Blink.bin -d ,0483:df11
dyld: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib
Referenced from: /usr/local/bin/dfu-util
Reason: image not found
make: *** [program-dfu] Abort trap: 6

I could not find this error anywhere online. So if anyone has this issue, here is the fix.

It could not locate the libusb library, so easiest way to fix this is to:

  • Install Homebrew from
  • Paste “brew install libusb” in Terminal to install libusb.

Hopefully you will be able to run “make program-dfu” correctly now!



Thank you for sharing this solution, Daniel!

1 Like

In case of confusion: fix is for Mac!

1 Like