code-radio-cli icon indicating copy to clipboard operation
code-radio-cli copied to clipboard

ARM64 Support

Open kmazur99 opened this issue 2 years ago • 4 comments

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

kmazur99 avatar May 10 '23 00:05 kmazur99

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.

JasonWei512 avatar May 10 '23 11:05 JasonWei512

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<Player>> = 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<ProgressBar>> = 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

wangzhengbo avatar May 21 '23 13:05 wangzhengbo

@wangzhengbo Upgrade Rust to latest version.

JasonWei512 avatar May 22 '23 04:05 JasonWei512

i have tried building this in openwrt

esaaprillia avatar Aug 21 '24 22:08 esaaprillia