← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #152727]: Cannot launch sikuli in Centos 5.5

 

Question #152727 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/152727

Om proposed the following answer:
I got the solution for this issue.
Following are the steps

1. Download jxgrabkey source code from sourceforge as mentioned earlier
2. Unzip the file 
3. Go to location /jxgrabkey/trunk/JXGrabKey/C++/src/
4. There will be 2 files JXGrabKey.cpp and JXGrabKey.h in the folder.
5. Fire the following command --> g++ -Wall -fPIC -c *.cpp
6. Some messages will be printed. On doing ls you will find, one more file "JXGrabKey.o" is been created.
7. Fire the following command --> g++ -shared -Wl,-soname,libcgrab.so.1 -o libcgrab.so.1.0   *.o
8. On doing ls you will find, one more file "libcgrab.so.1.0" is been created.
9. Copy and replace this so file with libJXGrabKey.so in /Sikuli-IDE/libs/ folder. For doing this fire the following command --> cp  ./libcgrab.so.1.0 path-to-sikuli/Sikuli-X-1.0rc2-linux/Sikuli-IDE/libs/libJXGrabKey.so

The Sikuli-IDE should run successfully in linux. I tried this approach
in CentOs 5.5 64bit and it worked properly.

If this doesn't work, download the JXGrabKey.jar from sourceforge file
included for the Ubuntu package and try replacing this jar file in
Sikuli-Ide folder.

Reference URL for converting .o to .so -----> 
http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html

Guess thats all. Hope it works for all :)

Regards,
Om

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