New question #239437 on Sikuli:
https://answers.launchpad.net/sikuli/+question/239437

I'm trying to run a simple java test program on Mac OS X 10.9 that uses 
selenium and silkuli that loads a web page and waits for an image to appear.

public static void main(String[] args) throws FindFailed {
                
                WebDriver driver = new FirefoxDriver();
                driver.get("http://www.somewhere.com/mturk/ww/index.html";);
                
                Screen screen = new Screen();
                Pattern image = new Pattern("images/Wasabi_ready.png");
                screen.wait(image, 10);
                
}

When I run it I get the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: 
/Users/zsethna/eclipse_workspace/SikuliTest/libs/libVisionProxy.jnilib:  
Library not loaded: /usr/local/lib/libopencv_core.2.2.dylib   Referenced from: 
/Users/zsethna/eclipse_workspace/SikuliTest/libs/libVisionProxy.jnilib   
Reason: image not found
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1833)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
        at java.lang.Runtime.load0(Runtime.java:770)
        at java.lang.System.load(System.java:1019)
        at 
com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
        at org.sikuli.script.Finder.<clinit>(Finder.java:33)
        at org.sikuli.script.Region.doFind(Region.java:1034)
        at org.sikuli.script.Region$RepeatableFind.run(Region.java:1237)
        at org.sikuli.script.Region$Repeatable.repeat(Region.java:1208)
        at org.sikuli.script.Region.wait(Region.java:498)
        at WasabiTest.main(WasabiTest.java:19)

How do I fix this?


How to reproduce
---------------------------
1. Download the the Mac installer from this page:

http://www.sikuli.org/downloadrc3.html

2. Run the installer and copy the application to /Applications.

3. Copy the sikuli-script.jar file into the eclipse work area and set the java 
build and run paths to point to it.

4. Java code builds ok but when I try to run it, the error shown above occurs.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to