← Back to team overview

sikuli-driver team mailing list archive

[Question #235765]: Getting Started Sikuli Script in Java, UNIX environement

 

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

Greetings,
I am currently working on a project, testing a web application with Selenium RC/JUnit 4 Testing Framework. Within this application Google Map API is fundamental tests. I found that Sikuli could solve the GUI clicking problem on the Google Map API. I am still beginner in the UNIX environment and attempted to get started on Sikuli.

I just followed the instructions based on:
http://doc.sikuli.org/faq/030-java-dev.html#make-the-native-libraries-available

what I generally done is, installing package 2 from sikuli-setup.jar. In my Eclipse Kepler project, I added external JARs of sikuli-script.jar and sikuli-java.jar into the build path. Then I started the hello world example:

package sikuli2;

import org.sikuli.script.*;

public class Sikuli2 {

	public static void main(String[] args) {
		Screen s = new Screen();
		try{
			s.click("imgs/a.png", 0);
			s.wait("imgs/a1.png");
			s.type(null, "hello world\n", 0);
		}
		catch(FindFailed e){
			e.printStackTrace();
		}

	}

}

I pretty much followed the same codes, but instead for the pictures, I used random png pictures taken from the internet. Once I run it in Eclipse, I got these errors:

[error] ResourceLoaderBasic: loadLib: Fatal Error 110: loading: libVisionProxy.so
[error] ResourceLoaderBasic: loadLib: Since native library was found, it might be a problem with needed dependent libraries
/home/dev/Downloads/sikuli2/libs/libVisionProxy.so: libopencv_core.so.2.4: cannot open shared object file: No such file or directory
[error] Terminating SikuliX after a fatal error(110)! Sorry, but it makes no sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.

So I tried getting Sikuli-1.0.1-Supplemental-LinuxVisionProxy.zip and read the readme.txt.
i typed this command in the terminal:

cd ~/Downloads/sikuli_supplement
./makeVisionProxy /usr/lib/jvm/java-7-oracle/include

and I got errors in the terminal:

compiling cvgui
./makeVisionProxy: line 18: g++: command not found

and a couple more lines showing g++ errors. 
Any help is pretty much appreciated.

Regards,
Victor

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