← Back to team overview

sikuli-driver team mailing list archive

[Question #702055]: Can't load libopencv_java430.dylib

 

New question #702055 on SikuliX:
https://answers.launchpad.net/sikuli/+question/702055

Hi, 

Installed Java JDK 17.0.2

added "Terminal" to Accessibility & Screen Recording in System Preferences

Installed home-brew and ran "brew install opencv" 

I then run Sikulix with "java -jar path-to-sikulix.jar"

SikulixIDE opens but any time I try to get Sikulix to search for a screenshot I get the following error:




[error] RunTime:loadLib: libopencv_java430.dylib (failed) probably dependent libs missing:
Can't load library: /Users/victorrodriguez/Library/Application Support/Sikulix/SikulixLibs/libopencv_java430.dylib
[error] Save your work, correct the problem and restart the IDE!
[error] see: https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-Libraries-for-OpenCV-4
TERMINATING: problem with native library: libopencv_java430.dylib
Exception in thread "Thread-25" java.lang.ExceptionInInitializerError
	at org.sikuli.script.Finder$FindInput2.<clinit>(Finder.java:1167)
	at org.sikuli.script.Finder.<init>(Finder.java:34)
	at org.sikuli.ide.PatternPaneTargetOffset$1.run(PatternPaneTargetOffset.java:59)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.sikuli.script.SikuliXception: fatal: problem with native library: libopencv_java430.dylib
	at org.sikuli.script.support.RunTime.terminate(RunTime.java:1140)
	at org.sikuli.script.support.RunTime.libsLoad(RunTime.java:1285)
	at org.sikuli.script.support.RunTime.loadLibrary(RunTime.java:1434)
	at org.sikuli.script.Finder$Finder2.<clinit>(Finder.java:538)
	... 4 more
Exception in thread "Thread-26" java.lang.NoClassDefFoundError: Could not initialize class org.sikuli.script.Finder$FindInput2
	at org.sikuli.script.Finder.<init>(Finder.java:34)
	at org.sikuli.ide.PatternPaneScreenshot$1.run(PatternPaneScreenshot.java:136)
	at java.base/java.lang.Thread.run(Thread.java:833)
Exception in thread "Thread-27" java.lang.NoClassDefFoundError: Could not initialize class org.sikuli.script.Finder$FindInput2
	at org.sikuli.script.Finder.<init>(Finder.java:34)
	at org.sikuli.ide.PatternPaneTargetOffset$1.run(PatternPaneTargetOffset.java:59)
	at java.base/java.lang.Thread.run(Thread.java:833)
Exception in thread "Thread-28" java.lang.NoClassDefFoundError: Could not initialize class org.sikuli.script.Finder$FindInput2
	at org.sikuli.script.Finder.<init>(Finder.java:34)
	at org.sikuli.ide.PatternPaneScreenshot$1.run(PatternPaneScreenshot.java:136)
	at java.base/java.lang.Thread.run(Thread.java:833)


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.