Getting Started Sikuli Script in Java, UNIX environement

Asked by victor T

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 (Ubuntu) in Virtual Machine 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:

http://pastebin.com/2hnUM7eq

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

P.S. I tried Sikuli-IDE, it runs perfectly fine on my current windows 7 machine but not on my VM ubuntu

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

--- using 1.0.1 with Eclipse:
The applicable instructions are here:
https://github.com/RaiMan/SikuliX-API/wiki/Usage-in-Java-programming

--- running on Ubuntu
carefully check the prereqs noted in the readme again:
--- g++ seems not to be available on your system
--- OpenCV seems not to be installed (correctly) on your system

I am not sure, but using the latest Ubuntu version might make things easier.

Can you help with this problem?

Provide an answer of your own, or ask victor T for more information if necessary.

To post a message you must log in.