Missing image on build

Hey Hi!

I’m using a mac laptop with VS Code and I’m trying to get the Blink program working.
Here’s what I have done do far:

  • Installed the daisy toolkit and example codes
  • Connected the daisy and put it in boot mode
  • Pointed the directory to the Blink folder
  • Opened the blink.cpp file.
  • Run task build_all (this seems to execute fine)

When I run task build_and_program_dfu, it results in the following error:

dyld: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib
Referenced from: /Library/DaisyToolchain/0.1.2/bin/dfu-util
Reason: image not found
Abort trap: 6

I looked in /usr/local and there is no opt folder.
Anyone know how I can fix this?

Thanks!

Perhaps this will help or shed some light:

I don’t know if this was even on a mac. I know there have been issues with the new ‘Apple Silicon’-ARM support and Daisy Tool Chain, but I don’t know which cpu you’re using.

Yes, it’s a Mac. For some reason, on Apple silicon, Homebrew (defacto standard package manager for Mac) changed the location where it installs software from where it’s been for years.

More on this:

Yes the fix I posted was indeed for Mac. But as @tele_player posted it seemed like a Mac specific issue, so I did not think of mentioning it. Will add it to my post, sorry for the confusion.