Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
a937983423 opened this issue Jun 6, 2024 · 1 comment
Open

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

a937983423 opened this issue Jun 6, 2024 · 1 comment

Comments

@a937983423
Copy link

首先说明我是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
Copy link
Author

而工程的编译命令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 <MANIFEST_RS> [ARGS]...

For more information, try '--help'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant