-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add support for ARM64 platforms #1
Comments
If the original library added support, then it's matter of compiling it toward the target platform. I don't own the Apple hardware, so I see two ways to go from here:
|
@milleniumbug Thanks for your reply. Me and my team does have both ARM64- and x64-based Macs available. If you could give us some guidance on how to compile the original native library, I can give it a try. |
Hi @milleniumbug I am running into the same issue, and might be able to help. If you can give some pointers on how to compile the native library that would be most appreciated :) |
I have merged my changes and the changes at the upstream devel branch into https://github.com/milleniumbug/nativefiledialog/tree/devel The other part is gonna be more difficult because I don't remember the exact way I made macOS x64 compile it, I do have a zsh history and browsing through I can give some vague directions:
|
@milleniumbug thank you for the guidance, I now have the So
Thanks |
Yeah, it won't show in https://github.com/milleniumbug/NativeFileDialogSharp/tree/main/NativeFileDialogSharp/runtimes Adding it there under the |
Create a PR to add the lib, anything else needed from my part? On Monday I can do a local Nuget pack to verify it is working as expected |
I have published the version including the ARM64 native library into NuGet as pre-release version 0.6.0-alpha - check it out if it works for you (you may need to select the "Include prerelease" option to see it in the listing of your IDE) https://www.nuget.org/packages/NativeFileDialogSharp/0.6.0-alpha |
I was able to verify that on arm64 Mac I can now open the file dialog :) |
Before I make it an actual release I'd like to see a bit more testing. @gastonmuijtjens , can you check on your devices? |
@milleniumbug I can confirm it works on both an Intel (x64) Mac and Apple Silicon (ARM64) Mac now. Thanks to you and @kaylumah for your effort. Please let me know if I can be of any further assistance. |
Thanks for the 0.6.0-alpha version! I was glad to find it and can also confirm it works on my Apple M1 chip with macOS Sonoma. |
Now that ARM64 is gaining popularity (mostly due to Apple Silicon on macOS), I would like to know whether it is possible to add support for the ARM64 platform to this library?
Trying to use the library on a M1 Mac raises the following exception:
I did some research already, and it turns out that ARM64 support for all platforms was already added a while ago to the
devel
branch of nativefiledialog. I assume that we can relatively easy add the runtimes for ARM64 to this project?Thanks in advance.
The text was updated successfully, but these errors were encountered: