-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Support for M1 Macs (osx-aarch_64) #93
Comments
Ack. I see. We're saying special handling for osx-aarch_64:
Correct? If you could provide clean native binaries (static build, stripped, etc), good for wide consumption, I could host them on maven central: You could make them available via PR: That would be a nice contribution. And if you're using the project professionally, I'd appreciate support (sponsorship) for it.. |
I think if we populate the osx-aarch_64 binary, that would be sufficient. I've built protoc with static linkage (./configure --disable-shared) and stripped the symbols. I'll make a PR shortly. |
Added a PR: #94 |
when can this be released? |
Suggested workaround for the time being:
I was able to add the property to a m1 maven build profile
|
|
I created this comment for the solution. |
As per @hazmeister's comment, I added the following profile to my pom.xml that uses protoc. Maybe it can be shortened.
|
I'm afraid the pace in this project will remain slow until more support/sponsorship can be found (most users are enterprises).. |
in the meantime, I was able to run the process in a Apple M1 chip using the parameter "-Dos.arch=x86_64" with the maven goals |
Can someone provide final step to how to resolve this on M1 mac ? |
simply do something like
|
Where I can add those codes or suggestion codes? |
"properties" doesn't seem right, it goes under |
@Rigoberto-Vazquez thanks for this -- works for me too. Another way I found that works is to switch to using a |
I found that works. Add the following configuration to maven settings.xml. <profile>
<id>apple-m1</id>
<properties>
<os.detected.classifier>osx-x86_64</os.detected.classifier>
</properties>
</profile> |
|
Don't you only need to specify a I'm not using |
Protobuf 3.7.1 does not support MacOS M1 architecture, increasing the the latest protocol buffer release enables support for building this project on the newer mac models. See protoc-jar issue os72/protoc-jar#93
Protobuf 3.7.1 does not support MacOS M1 architecture, increasing the the latest protocol buffer release enables support for building this project on the newer mac models. See protoc-jar issue os72/protoc-jar#93
Make sure that you're running on a JDK that is I was previously running on Zulu JDK with arch64 architecture and having that issue. After switching to OpenJDK the problem was gone. |
it's good for me |
|
Very nice, It works for me. |
Would it be possible to add to protoc-jar/bin// a protoc--osx-aarch_64.exe? Temporarily, it can probably even be a copy of protoc-*-osx-x86_64.exe as it should run on M1 macs.
I also have a brew installed protoc that seems to be compiled for arm, if you need it.
The protoc-jar-maven-plugin seems to request this for the embedded protoc.
To workaround, I've done the following:
and then in the plugin configuration in pom.xml:
The text was updated successfully, but these errors were encountered: