簡體   English   中英

嘗試安裝 cargo-flash 但錯誤:無法編譯 `cargo-flash v0.13.0`

[英]Trying to cargo install cargo-flash but error: failed to compile `cargo-flash v0.13.0`

操作系統: Ubuntu

命令 1: rustup update --> 成功
命令 2: rutstup target install thumbv7m-none-eabi --> 成功
命令 3: cargo install cargo-flash

錯誤:未能為hidapi v1.4.2運行自定義構建命令
進程未成功退出: /tmp/cargo-installgobLzf/release/build/hidapi-aad2646622c847a4/build-script-build (退出狀態:101)
錯誤:找不到“hidapi”板條箱所需的系統庫“libudev”
錯誤:無法編譯cargo-flash v0.13.0 ,中間工件可以在/tmp/cargo-installgobLzf找到

首先,安裝依賴項,然后安裝cargo-flash
sudo apt install -y pkg-config libusb-1.0-0-dev libftdi1-dev
sudo apt-get install libudev-dev
cargo install cargo-flash
有關詳細信息,請訪問cargo-flash crate

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM