< 返回博客

rdigua 发表于 2019-04-18 15:49

Tags:learning, try

基于 Rust + GTK 开发的网易云音乐播放器

项目地址:

  • https://github.com/gmg137/netease-cloud-music-gtk

系统:

$ uname -a Linux ubuntu-1810 4.18.0-17-generic #18-Ubuntu SMP Wed Mar 13 14:34:40 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

依赖:

openssl, curl, gstreamer

git clone [email protected]:gmg137/netease-cloud-music-gtk.git  
cd netease-cloud-music-gtk  
cargo build --release  

准备:

sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev  gstreamer1.0-plugins-base gstreamer1.0-plugins-good   gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libgstrtspserver-1.0-dev

 sudo apt install libgstreamer-plugins-bad1.0-dev

 sudo apt update

 sudo apt upgrade  

依赖项地址: //https://gitlab.freedesktop.org/gstreamer/gstreamer-rs

//https://gitlab.freedesktop.org/gstreamer

编译结果:

... release [optimized] target(s) in 8m 29s cd target/release ./netease-cloud-music-gtk

[效果1] [效果2]

最后

感觉还不错 看来用rust 结合gtk 已经可以玩很多东西了

评论区

写评论
Mike Tang 2019-04-18 18:36

666

1 共 1 条评论, 1 页