Open ilove737 opened 2 months ago
please try sudo apt install libusb-1.0-0 libusb-1.0-0-dev
to install libusb (and the -dev
package too, which was missing from the README)
❯ cat /etc/*-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS" PRETTY_NAME="Ubuntu 22.04.4 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.4 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy
avivgr in ch341_i2c on main is 📦 v0.1.0 via 🦀 v1.78.0 took 4s
❯ cargo build
Compiling libusb-sys v0.2.3
Compiling libusb v0.3.0
Compiling ch341_i2c v0.1.0 (/home/avivgr/projects/ch341_i2c)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.35s