Closed Vechro closed 1 year ago
Let's ask someone with access to such hardware. @morisil could you have a look?
I am trying to build the template project on M1 and am getting an error which looks like this change should fix: https://openrndr.discourse.group/t/running-on-apple-m1/324/23?u=anoniim
However, I'm getting the same issue even after building orx
from this branch and using that in the template project.
This might be an issue with openrndr-template itself. Can you open up your build.gradle.kts and change the line https://github.com/openrndr/openrndr-template/blob/master/build.gradle.kts#L222 to "aarch64" -> "macos-arm64"
and report back?
Yes, that helped! It resolved the issue for me and the template project now runs fine even with v0.4.1 of orx
.
I was gonna create a PR but noticed you've already created one :) Thank you!
Is there any other test you want me to perform on M1 regarding this change?
Glad to hear it. Well, I am curious to know about cases where the os.arch
property on macOS M1 reports "arm-v8". It's there in openrndr-template because it's supposedly worked in the past. One theory is that it might be dependent on the JDK distribution that you're using (in this case the JDK you've set up for running Gradle). I'm not really interested in supporting "arm-v8" for the template/orx on macOS unless I actually see a notable JDK distribution still returning that value. If you ever happen to come across it, let us know.
I use Azul Zulu builds of OpenJDK and have 13 and 16 installed:
Tried building orx with both and it worked fine. Will shout out if I come across a problem with another JDK.
Can you run the following line in a build.gradle.kts file and tell me what it prints out?
println("My arch is: ${DefaultNativePlatform.getCurrentArchitecture().name}")
Sorry, missed this message, need to setup notifications.
DefaultNativePlatform.getCurrentArchitecture().name
prints aarch64
on my system.
It needs to be verified whether this fix is actually necessary. This can be done by building the project on Linux/MacOS with ARM64 architecture.