Closed pantonov closed 3 years ago
You have to install libusb-1.0.0-dev as well.
The proper package name is apparently libusb-1.0-0-dev
, which is somewhat confusing and I think should be mentioned in installation instructions. README's for cargo-flash etc. tell just to apt install libusb-dev
, which is apparently not enough.
# apt install libusb-1.0.0-dev
...
E: Unable to locate package libusb-1.0.0-dev
# apt-get install libusb-1.0.0-dev
...
Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0.0-dev'
The following additional packages will be installed:
libusb-1.0-doc
The following NEW packages will be installed:
libusb-1.0-0-dev libusb-1.0-doc
Maybe create an issue in cargo-flash for updating the README with libusb-1.0.0-dev?
Build script fails to find libusb, but libusb-dev and libusb-1.0 are installed from default repository, both
/usr/bin/libusb-config
and/usr/lib/x86_64-linux-gnu/pkgconfig/libusb.pc
are present. This affects installation of popular crates such ascargo-flash
.The current workaround is to manually download/compile/install libusb from github.com/libusb.