Closed js802025 closed 2 years ago
We do not currently support M1 natively as you can see on the logs, though I believe someone in the FTC discord had success using a x86 jvm from rosetta and running eocv sim from that. I'm not 100% sure how that works as I'm not really familiar with macos at all but perhaps it could work. I believe it was @shaunsingh, it would be appreciated if you could help us here :)
(sorry for the delay btw)
I do use an m1 machine. I don't exactly remember what I did to get it working
Operating system "OSX" and architecture "ARMv8" are not supported.
I believe you're using a native build of the java jdk, i.e. one built from arm64. The project is attempting to download a version of opencv for x86, which obviously won't work.
You could try two things:
Option one is more complicated but the resulting opencv will run faster, although with how optimized eocv sim is nowadays don't think it matters much :p
I got it working with another M1 that had 86 java so I think your right. Thanks!
Sent from my iPhone
On Nov 2, 2021, at 5:08 PM, shaunsingh @.***> wrote:
I do use an m1 machine. I don't exactly remember what I did to get it working
Operating system "OSX" and architecture "ARMv8" are not supported.
I believe you're using a native build of the java jdk, i.e. one built from arm64. The project is attempting to download a version of opencv for x86, which obviously won't work.
You could try two things:
building opencv with java support using homebrew, then pointing it to use that .dylib (instructions here: https://opencv-java-tutorials.readthedocs.io/en/latest/01-installing-opencv-for-java.html#install-opencv-3-x-under-macos) Installing a version of the java jdk built for x86 macOS, and running it using rosetta Option one is more complicated but the resulting opencv will run faster, although with how optimized eocv sim is nowadays don't think it matters much :p
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Glad you figured out :), we will see if we can get native m1 support in the future. Feel free to make a new issue if you stumble upon other errors as i haven't had much opportunity to test in Mac
This error is thrown on launch: