SikuliX IDE on macOS M1 - 2.0.6 snapshots available
See original GitHub issue$ java -jar sikulixmac-2.1.0-20210523.145838-7.jar
Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: /Users/leon/Library/Caches/JNA/temp/jna18013432991504759997.tmp: dlopen(/Users/leon/Library/Caches/JNA/temp/jna18013432991504759997.tmp, 1): no suitable image found. Did find:
/Users/leon/Library/Caches/JNA/temp/jna18013432991504759997.tmp: no matching architecture in universal wrapper
/Users/leon/Library/Caches/JNA/temp/jna18013432991504759997.tmp: no matching architecture in universal wrapper
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2383)
at java.base/java.lang.Runtime.load0(Runtime.java:746)
at java.base/java.lang.System.load(System.java:1877)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988)
at com.sun.jna.Native.<clinit>(Native.java:195)
at com.sun.jna.ptr.PointerByReference.<init>(PointerByReference.java:40)
at com.sun.jna.ptr.PointerByReference.<init>(PointerByReference.java:36)
at com.tulskiy.keymaster.osx.CarbonProvider$1.run(CarbonProvider.java:55)
at java.base/java.lang.Thread.run(Thread.java:831)
System info:
$ java --version
openjdk 17 2021-09-14
OpenJDK Runtime Environment Homebrew (build 17+0)
OpenJDK 64-Bit Server VM Homebrew (build 17+0, mixed mode)
$ brew list --versions opencv
opencv 4.5.2_4
$ brew list --versions tesseract
tesseract 4.1.1
Been years since I ran SikuliX and not experienced with Java.
What more info should I provide/things to try?
Issue Analytics
- State:
- Created 2 years ago
- Comments:24 (12 by maintainers)
Top Results From Across the Web
macOS M1: how to use a custom build of OpenCV
I am trying to get native Java working with Sikuli on an M1 Mac. ... There now is a downloadable snapshot of 2.0.6...
Read more >SikuliX Downloads
Download the ready to use sikulixide-2.0.5.jar (SikuliX IDE for all systems) This artefact runs on Windows, macOS and Linux.
Read more >QUICKSTART - SikuliX
The system running SikuliX scripts or any apps using SikuliX features must have a real screen connected. So called headless systems are not...
Read more >SikuliX1 - Bountysource
I was using Sikuli API with Java 8 and Maven on a macOS, Windows and Linux ... Version 4.270.1 (2803)) with Sikulix 2.0.5/now...
Read more >appkit - java.lang.NoSuchMethodError:accessibilityHitTest
x) preparing for release - snapshots available": Be aware: Java 8 is no longer supported. For macOS M1 (non-Intel) use the JDK's from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Now I have a running IDE version for macOS M1:
It uses OpenCV 4.5.3 (java classes and amd64-dylib are bundled in the jar).
My M1 library setup is completely based on latest homebrew (/opt/homebrew setup for M1 machines).
If you install tesseract via this brew config, then SikuliX will auto-detect the amd64 libraries. This is currently the only option to use OCR.
I am working with Java 11 and Java 17ea from Azul
Ready-to-use snapshot versions of the IDE directly from OSSRH
the 2.1.0 snapshot (branch master) is currently not useable generally. The branch I am actually working on is release_2.0.x
On macOS with M1 none of the actual versions/packages are working in native M1 mode (due to the fact that opencv lib is x86-64 only).
Since yesterday I have an iMac M1 and will now prepare a 2.0.6-SNAPSHOT that works in this environment.
The actual stable version 2.0.5 works with support of Rosetta 2.
So stay tuned.