Closed mcclure closed 1 year ago
Wait, it is possible that my build steps here (building via a dependency of ecpdap) is forcing an out-of-date rusb. I will double check that the problem reproduces with current rusb.
Wait, it is possible that my build steps here (building via a dependency of ecpdap) is forcing an out-of-date rusb. I will double check that the problem reproduces with current rusb.
Double checked with a direct checkout of rusb, most recent release tag (v0.9.3-rusb
). Same results (IE same error)
Can't find libusb pkg: LibNotFound("package libusb is not installed for vcpkg triplet x64-windows-static-md")
Please look how install done in CI https://github.com/a1ien/rusb/blob/master/.github/workflows/github-ci.yml
You can read more documentation in vcpkg crate https://docs.rs/vcpkg/latest/vcpkg/
I am trying to build on Windows 10 Build 19045 (with Cargo 1.69.0) a Rust project named ecpdap which has rusb as a dependency. On initial build it failed because it could not find vcpkg. Okay, fair enough. I install vpkg via the instructions and then I run
vcpkg install libusb
¹.I open a new
cmd.exe
window and cd to the ecpdap directory. I runset VCPKG_ROOT=/path/to/vkpkg/checkout
and thencargo.exe build
.It prints:
I am going to try the "vendored" option for libusb next, but since I did everything by defaults, per the rusb instructions my "expected behavior" is this should work out of the box.
¹ It prints this. I notice the triplet is different from the one you are looking for but I don't know if this is meaningful. If you need me to install/build libusb with a specific vcpkg triplet you should probably document that.
Thanks