sambenko / esp32s3-box-examples

A repository of examples for esp32s3-box written in Rust
Apache License 2.0
20 stars 1 forks source link

你好编译不成功,麻烦给我看看呢 #9

Open a937983423 opened 3 months ago

a937983423 commented 3 months ago

首先说明我是Linux系统环境,电脑安装的有ESP-IDF 和RUST最新的稳定版和每夜版本 运行如下命令报错: cargo espflash --release --monitor error: unexpected argument '--release' found Usage: cargo espflash For more information, try '--help'.

共享库版本是1.8,搜索共享库如下 find /usr/lib /usr/local/lib -name "libgit2.so.*" /usr/lib/libgit2.so.1.8 /usr/lib/libgit2.so.1.8.1

直接使用cargo build --release编译的话就会报如下错误 warning: esp32s3_box (bin "esp32s3_box") generated 7 warnings (run cargo fix --bin "esp32s3_box" to apply 6 suggestions)

最后运行了很多次编译后又莫名其妙编译好了,麻烦问下是哪里不对才会这样

a937983423 commented 3 months ago

而工程的编译命令cargo espflash --release --example rustmas error: unexpected argument '--release' found Usage: cargo espflash

不要--release cargo espflash --example rustmas error: unexpected argument '--example' found Usage: cargo espflash For more information, try '--help'.

cargo --release --example rustmas error: unexpected argument '--release' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND] cargo [+toolchain] [OPTIONS] -Zscript [ARGS]...

For more information, try '--help'.