-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Question : How to contribute to repo with prebuilds for Mac M1 #441
Comments
I'm here for the same reason. When installing my repo on a new Mac Mini for the first time, the zeromq piece generated a large output and ultimately exited with a I'm definitely out of my comfort zone when inspecting these types of logs, but It seems the building piece did actually succeed, but the In my case zeromq is in my dependencies because of a dependency on If I can provide any more information that would be valuable (e.g. the logs I am referring to), please let me know. |
We managed to build Zadeh, one of my native libraries, for macOS by adding the following flags. But there are no CI services or official Node for Arm64 to prebuild and test it. I requested one of my friends who has M1 to build it locally and send me the arm64 prebuild. 'OTHER_CFLAGS': [
'-arch x86_64',
'-arch arm64'
],
'OTHER_LDFLAGS': [
'-arch x86_64',
'-arch arm64'
] |
@aminya any update on this? Thanks for looking into this. |
We can add the compiler flags for the source builds, but we cannot provide prebuilds and promise anything about the functionality. We are in a situation where a company has released a new product with a new architecture with no way to test software on it. I don't think we can add official support for that product. |
@aminya, I have similar problems when cross-compiling for arm64 on x64 MacOs using electron-builder; keytar e.g. works great by providing a pre-build for arm64. Even re-compiling externals on x64 does not work, it always ends up just with x64 support even when using your binding.gyp flags proposed above. I can work around this for separate OS builds by pre-building on arm64 and staging the pre-build into build/Release/zeromq.node but that does not work well in the combined universal build. So it would be great to either have a branch that compiles arm64 on x64 correctly or even better a prebuilt binary for arm64. |
Interesting, @aminya can you give some introduction on how to make this work with zmq? Thanks. |
@ni-mkrieg can you explain how to do this? Thank you very much. I did |
@mbui0327 indeed you first need to be able to get the Release built on your M1 Mac. Try this and do
Once you got the release package it up like this: Then add the .tar.gz file to your repository e.g. in ./build/prebuilds. Now you can cross-compile your app on your x64 Mac:
That should be all you need so in your Github actions build e.g. just set the ARCH environment variable to "x64" or "arm64" and run Does this make sense? |
Sorry for not using the right template.
Not sure this is the place to ask this, but I'm trying to find out how we can contribute the prebuilds for Mac m1
The text was updated successfully, but these errors were encountered: