Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM64 Support #16

Open
kmazur99 opened this issue May 10, 2023 · 3 comments
Open

ARM64 Support #16

kmazur99 opened this issue May 10, 2023 · 3 comments

Comments

@kmazur99
Copy link

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

@JasonWei512
Copy link
Owner

Currently ARM64 binary is not provided because I don't have ARM64 Mac, and GitHub doesn't provide ARM64 CI runners. See #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
Copy link

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
Copy link
Owner

@wangzhengbo
Upgrade Rust to latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants