编译安装rust网易云音乐播放器

基于 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 git@github.com: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 已经可以玩很多东西了

文章来源:

Author:Rust.cc
link:https://rust.cc/article?id=76bac120-22f8-46f7-9124-05fff29e92a0