gmg137 / netease-cloud-music-gtk

Linux 平台下基于 Rust + GTK 开发的网易云音乐播放器
GNU General Public License v3.0
1.63k stars 96 forks source link

0.8.0 无法编译 #53

Closed eatradish closed 4 years ago

eatradish commented 4 years ago
Compiling netease-cloud-music-gtk v0.8.0 (/var/cache/acbs/build/acbs.roadifkx/netease-cloud-music-gtk)
error[E0432]: unresolved import `gtk::ModelButton`
  --> src/widgets/header.rs:18:76
   |
18 |     AboutDialog, Builder, Button, Dialog, Entry, Image, Label, MenuButton, ModelButton, Popover, SearchBar,
   |                                                                            ^^^^^^^^^^^
   |                                                                            |
   |                                                                            no `ModelButton` in the root
   |                                                                            help: a similar name exists in the module: `ToolButton`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.

环境:AOSC OS (stable),rustc 版本 1.39.0 (stable)

gmg137 commented 4 years ago

请添加编译参数: --features gtk_3_24

为了兼容 Github Actions, 去除了默认features,其它可选参数请查看Cargo.toml中的相关配置。

gmg137 commented 4 years ago

问题已在 0.8.1 版本修复,如需指定非默认 features 可添加如下编译参数:

cargo build --release --no-default-features --features gtk_{verison}