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

Prebuilts for Apple Silicons (darwin-arm64v8) #71

Closed
chengluyu opened this issue Dec 14, 2020 · 7 comments
Closed

Prebuilts for Apple Silicons (darwin-arm64v8) #71

chengluyu opened this issue Dec 14, 2020 · 7 comments

Comments

@chengluyu
Copy link

Hi, is there any plan to add prebuilts for darwin-arm64v8?

@lovell
Copy link
Owner

lovell commented Dec 14, 2020

Yes, it is dependent on a CI provider making Apple Silicon M1 hardware available for free to open source projects. If anyone knows of one please add a comment (or better yet a PR to integrate with it).

Please see lovell/sharp#2460 for some discussion about how to compile libvips from source on this new platform.

@chengluyu
Copy link
Author

Thanks a lot! I should search in lovell/sharp first. I'm leaving this issue open. Feel free to close it.

@kleisauke
Copy link
Collaborator

kleisauke commented Dec 24, 2020

I think you could also cross-compile for aarch64-apple-darwin on a x86_64-apple-darwin machine (or even on x86_64-unknown-linux-gnu). Note that dependencies built upon Rust (i.e. librsvg) require Rust to be installed via the beta channel, as Apple Silicon support only recently landed in Rust/Rustup. Perhaps we should wait for Rust 1.49 before considering this approach.

@abarisain
Copy link
Contributor

I think you could also cross-compile for aarch64-apple-darwin on a x86_64-apple-darwin machine

In an happy coincidence, I actually worked on this today: #74 (very wip, probably unmergable in its current state due to the maintenance cost)

Ran into some libffi trouble (which was quite expected) as the python build script is bugged

librsvg can be worked around by using an older version. As detailed in the PR, macports did exactly that.

@lovell
Copy link
Owner

lovell commented Mar 17, 2021

For anyone that has subscribed to this issue for updates, please see also lovell/sharp#2604

@lovell
Copy link
Owner

lovell commented Mar 29, 2021

sharp v0.28.0 is now available and provides prebuilt libvips binaries for darwin-arm64v8. Merci beaucoup for your help @abarisain!

@lovell lovell closed this as completed Mar 29, 2021
@chengluyu
Copy link
Author

Great! Thanks everyone!

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

No branches or pull requests

4 participants