Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: libusb is not included, that dfu-util depends on #256

Closed
toyoshim opened this issue Mar 16, 2017 · 10 comments
Closed

macOS: libusb is not included, that dfu-util depends on #256

toyoshim opened this issue Mar 16, 2017 · 10 comments

Comments

@toyoshim
Copy link

https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/Installation

The document says now that dfu-util is included, users do not need to install it manually.
Actually, a binary is included, but it seems users still need to install libusb on which the distributed binary depends. Otherwise, it just aborts due to missing dylib on starting upload.

@rogerclarkmelbourne
Copy link
Owner

What would you recommend to fix this ?

@toyoshim
Copy link
Author

Is it easy to build another dfu-util with a static library version of libusb and to push it into the repo.?

@rogerclarkmelbourne
Copy link
Owner

I don't know

You could give it a try and make a PR with the updated version

@satoshinm
Copy link

I had the same problem, not sure of a proper fix but this seems to work as a temporary workaround:

brew install libusb
sudo mkdir -p /opt/local/lib
sudo ln -s /usr/local/Cellar/libusb/1.0.21/lib/libusb-1.0.0.dylib /opt/local/lib/libusb-1.0.0.dylib

@rogerclarkmelbourne
Copy link
Owner

@satoshinm

Just out of curiosity, which version of MacOS are you using ?

@satoshinm
Copy link

Just updated to the latest, macOS High Sierra 10.13.2 public beta 6 (but not sure if using the beta is significant)

@JohnBerg60
Copy link

Same error here. Solution was to install libusb brew install libusb

@ratkins
Copy link

ratkins commented Feb 28, 2019

Same issue for me on Mojave (10.14.3). brew install libusb (no other ln commands necessary) fixes it.

@stevstrong
Copy link
Collaborator

Is this solved? Possible duplicate of #328
Anyway, I have no Mac, so any help on this is appreciated.

@rogerclarkmelbourne
Copy link
Owner

This issue has no activity for a long time , so I will close it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants