JasonWei512 / code-radio-cli

🎵 A command line music radio client for https://coderadio.freecodecamp.org, written in Rust.
https://crates.io/crates/code-radio-cli
MIT License
352 stars 16 forks source link

ARM64 Support #16

Open kmazur99 opened 1 year ago

kmazur99 commented 1 year ago

Add support for ARM architecture to make it compatible with Apple's M series processors.

JasonWei512 commented 1 year ago

Currently ARM64 binary is not provided because I don't have ARM64 Mac, and GitHub doesn't provide ARM64 CI runners. See https://github.com/JasonWei512/code-radio-cli/issues/5.

If you are using an ARM64 Mac, you can compile this program from source by installing Rust toolchain and running cargo install code-radio-cli.

wangzhengbo commented 1 year ago

cargo install code-radio-cli

Compiling code-radio-cli v1.0.3 error[E0015]: cannot call non-const fn std::sync::Mutex::<std::option::Option<Player>>::new in statics --> /Users/wangzhengbo/.cargo/registry/src/github.com-1ecc6299db9ec823/code-radio-cli-1.0.3/src/main.rs:28:40 28 static PLAYER: Mutex<Option> = Mutex::new(None); ^^^^^^^^^^^^^^^^

= note: calls in statics are limited to constant functions, tuple structs and tuple variants

error[E0015]: cannot call non-const fn std::sync::Mutex::<std::option::Option<ProgressBar>>::new in statics --> /Users/wangzhengbo/.cargo/registry/src/github.com-1ecc6299db9ec823/code-radio-cli-1.0.3/src/main.rs:29:51 29 static PROGRESS_BAR: Mutex<Option> = Mutex::new(None); ^^^^^^^^^^^^^^^^

= note: calls in statics are limited to constant functions, tuple structs and tuple variants

For more information about this error, try rustc --explain E0015. error: could not compile code-radio-cli due to 2 previous errors error: failed to compile code-radio-cli v1.0.3, intermediate artifacts can be found at /var/folders/yj/lt1g82ks79d86d00l65pbzs00000gn/T/cargo-install8uBNFi

mac arm安装报错: rustc版本是1.61.0

JasonWei512 commented 1 year ago

@wangzhengbo Upgrade Rust to latest version.

esaaprillia commented 2 months ago

i have tried building this in openwrt