Closed sonichy closed 2 years ago
你是不是没拉submodule?
知道了,QLivePlayer-Lib 下载到 src 目录。 我下的zip包,引用项目没有下载。
继续编译,报错:use of unstable library feature 'matches_macro'
能把你的每一步骤包括下载还有所有的输出信息完整贴上来吗
make
[ 3%] Automatic MOC and UIC for target qliveplayer
[ 3%] Built target qliveplayer_autogen
[ 36%] Built target qliveplayer
[ 39%] Generating ../../src/QLivePlayer-Lib/target/release/librust.a
Compiling urlencoding v2.1.0
Compiling tokio v1.8.1
error[E0658]: use of unstable library feature 'matches_macro'
--> /home/sonichy/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/urlencoding-2.1.0/src/enc.rs:100:31
|
100 | .take_while(|&&c| matches!(c, b'0'..=b'9' | b'A'..=b'Z' | b'a'..=b'z' | b'-' | b'.' | b'_' | b'~')).count();
| ^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/65721
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.
error: could not compile `urlencoding`.
warning: build failed, waiting for other jobs to finish...
error: build failed
make[2]: *** [src/CMakeFiles/rust_target.dir/build.make:82:../src/QLivePlayer-Lib/target/release/librust.a] 错误 101
make[1]: *** [CMakeFiles/Makefile2:213:src/CMakeFiles/rust_target.dir/all] 错误 2
make: *** [Makefile:149:all] 错误 2
你的rust编译器啥版本?感觉可能是版本太老了
依赖:rustc,cargo 能不能增加 deb 包啊?