-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
macOS Apple M1/Arm Support #8062
Comments
What build error are you getting? |
The only Arm based package that I can see on the release page is When adding the |
It might take us some time to be able to start publishing precompiled binaries for Apple ARM machines, but you should still be able to use protobuf by building from source. |
Why was this issue closed? I still see no precompiled binaries for Mac arch 64? I am particularly interested in a precompiled Java build.
|
I'd love to see pre-compiled binaries for macOS Arm too, although I know that might be non-trivial. Is there anything a first-time contributor might be able to help with? |
@acozzette how would you do that? - I'm unable to do so: #8372 |
Why closed this issue? |
LOL. Classic Google move. |
Having this Just Work™️ would be fantastic, and I think it makes sense to keep this issue open until then. While waiting, I have had success by using the
|
Would really love to see some support for this - protobuf is an awesome project, and there are a lot of automated build systems (Maven for example) that break when including standard protobuf dependencies. M1 is most likely here to stay for quite a while and I'd be happy to provide remote access to an M1 machine if Google doesn't have them readily available. |
A stopgap solution was merged #8557 However this issue is about true native support, rather than reusing the x86_64 artifact, so I feel this issue should be reopened. |
What I did for a quick fix is that, I opened the project in Android Studio. I opened the Gradle section on the right, and looked for the problematic package (flutter_blue package in my case). When I did a "flutter pub get" it did not appear. However, I feel it will go away with a "flutter clean". I hope this helped for someone. Good luck, |
A compatible build was released with 3.18.0 and later which includes builds for osx-aarch_64. The Aarch_64 build is however not included in the 4.0.0 RC releases. https://repo1.maven.org/maven2/com/google/protobuf/protoc/3.18.0/ |
The 4.0.0 RC releases are old and abandoned. We thought about incrementing the major version number but ended up changing our minds after doing some release candidates. We left some of the 4.0.0 RC artifacts around to avoid breaking projects, but they should not be used. |
Hi, thanks so much for releasing Apple Silicon binaries at https://repo1.maven.org/maven2/com/google/protobuf/protoc/3.19.2/! Would it be possible to please include a macOS ARM zip file with the GitHub release too, for folks who prefer downloading the zip file? https://github.com/protocolbuffers/protobuf/releases/tag/v3.19.4 |
The old protoc version 3.5.1 atlasdb uses does not yet support Apple M1 aarch64 (see protocolbuffers/protobuf#8062), so use x86_64 until atlasdb upgrades to protoc 3.18.0+ which add osx-aarch_64.
Use protoc x86_64 on Apple M1 aarch64 The old protoc version 3.5.1 atlasdb uses does not yet support Apple M1 aarch64 (see protocolbuffers/protobuf#8062), so use x86_64 until atlasdb upgrades to protoc 3.18.0+ which add osx-aarch_64.
For anyone who missed it, macOS Arm is released via GitHub! https://github.com/protocolbuffers/protobuf/releases/tag/v3.20.1 Thank you so much to the folks who made this happen :) |
protobuf added support for arm64 in version 3.20.1. See protocolbuffers/protobuf#8062 Also upgraded all other dependencies and plugins. The project is now working on arm64.
Mantep mas bro |
The appropriate osx executable was not included until 3.21.0-rc2 as mentioned in the release notes protocolbuffers/protobuf#8062
https://developer.android.com/topic/libraries/architecture/datastore#proto-datastore-dependencies But getting gradle to generate the object is not documented anywhere correctly: https://github.com/google/protobuf-gradle-plugin protocolbuffers/protobuf#8062
I can't find that folder inside android/ |
Hey people, if you want to use old version of protobuf on Mac Pro M1 (ARM) and getting CPU or protoc-gen-grpc-web plugin issues I'm suggesting to use Rosetta2, that helped me to resolve a problem. |
It worked for me, thank you 😊 |
what I have done, you will get the latest version from here: https://repo1.maven.org/maven2/com/google/protobuf/protoc/3.18.0/ |
https://developer.android.com/topic/libraries/architecture/datastore#proto-datastore-dependencies But getting gradle to generate the object is not documented anywhere correctly: https://github.com/google/protobuf-gradle-plugin protocolbuffers/protobuf#8062
https://developer.android.com/topic/libraries/architecture/datastore#proto-datastore-dependencies But getting gradle to generate the object is not documented anywhere correctly: https://github.com/google/protobuf-gradle-plugin protocolbuffers/protobuf#8062
Are there plans to add macOS Apple M1/Arm Support. I'd like to install Mosh on my machine but Protocol Buffer is a required dependency. I imagine there will be a greater and greater demand for compatibility.
The text was updated successfully, but these errors were encountered: