THMonster / Revda

Tools to play live stream with danmaku.
GNU General Public License v2.0
214 stars 12 forks source link

编译报错 #37

Closed sonichy closed 2 years ago

sonichy commented 2 years ago

依赖:rustc,cargo 能不能增加 deb 包啊?

make
[  3%] Automatic MOC and UIC for target qliveplayer
[  3%] Built target qliveplayer_autogen
[ 36%] Built target qliveplayer
make[2]: *** 没有规则可制作目标“src/QLivePlayer-Lib/src/interface.rs”,由“../src/QLivePlayer-Lib/target/release/librust.a” 需求。 停止。
make[1]: *** [CMakeFiles/Makefile2:213:src/CMakeFiles/rust_target.dir/all] 错误 2
make: *** [Makefile:149:all] 错误 2
THMonster commented 2 years ago

你是不是没拉submodule?

sonichy commented 2 years ago

知道了,QLivePlayer-Lib 下载到 src 目录。 我下的zip包,引用项目没有下载。

sonichy commented 2 years ago

继续编译,报错:use of unstable library feature 'matches_macro'

THMonster commented 2 years ago

能把你的每一步骤包括下载还有所有的输出信息完整贴上来吗

sonichy commented 2 years ago
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
THMonster commented 2 years ago

你的rust编译器啥版本?感觉可能是版本太老了