← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #704162]: Mac problem with libopencv_java342.dylib loaded, but it might be a problem OpenCV

 

Question #704162 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/704162

Description changed to:
Hi 
I want to integrate sikulix framework in my java selenium project

this is my configuration:

os.arch                       = aarch64
os.name                       = Mac OS X
os.version                    = 13.0.1
sun.boot.library.path         = /Library/Java/JavaVirtualMachines/jdk-17.0.2.jdk/Contents/Home/lib


 </dependency>
        <!-- https://mvnrepository.com/artifact/com.sikulix/sikulixapi -->
            <dependency>
                <groupId>com.sikulix</groupId>
                <artifactId>sikulixapi</artifactId>
                <version>2.0.0</version>
            <exclusions>
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
 <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>4.4.0</version>
        </dependency>
        <dependency>

I installed OPENCV with command: brew install opncv (opencv4)
 and
 brew install tesseract-lang   
I allowed all permissions


My error when I run method: screen.hover("/Users/a.vukovic/accept.png");

[error] RunTime:Problematic lib: /Users/a.vukovic/Library/Application Support/Sikulix/SikulixLibs/libopencv_java342.dylib (...TEMP...)
[error] RunTime:libopencv_java342.dylib loaded, but it might be a problem with needed dependent libraries
ERROR: Can't load library: ...TEMP...
Exception in thread "main" java.lang.ExceptionInInitializerError
	at org.sikuli.script.Finder$FindInput2.<clinit>(Finder.java:1210)
	at org.sikuli.script.Finder.<init>(Finder.java:36)
	at org.sikuli.script.Region.doCheckLastSeenAndCreateFinder(Region.java:2951)
	at org.sikuli.script.Region.checkLastSeenAndCreateFinder(Region.java:2912)
	at org.sikuli.script.Region.doFind(Region.java:2839)
	at org.sikuli.script.Region.access$300(Region.java:23)
	at org.sikuli.script.Region$RepeatableFind.run(Region.java:3122)
	at org.sikuli.script.Region$Repeatable.repeat(Region.java:3073)
	at org.sikuli.script.Region.wait(Region.java:2258)
	at org.sikuli.script.Region.wait(Region.java:2302)
	at org.sikuli.script.Region.getLocationFromTarget(Region.java:3329)
	at org.sikuli.script.Region.mouseMove(Region.java:4275)
	at org.sikuli.script.Region.hover(Region.java:3930)
	at SeleniumSikuli.main(SeleniumSikuli.java:66)
Caused by: org.sikuli.script.SikuliXception: problem with native library: libopencv_java342.dylib
	at org.sikuli.script.support.RunTime.libsLoad(RunTime.java:1462)
	at org.sikuli.script.support.RunTime.loadLibrary(RunTime.java:1619)
	at org.sikuli.script.Finder$Finder2.<clinit>(Finder.java:571)
	... 14 more

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