libVisionProxy.dylib issue on OSX - patch not working

Asked by Brian

I've read some previous bugs opened on this subject, the fixes for the bug reported do not work for me.

I have OSX 10.9.1 - which uses Java 1.7 (Oracles, not Apples)... This version of OSX makes it incredibly difficult to revert back to 1.6, and I use this machine for development with 1.7 (so I don't want to revert Java back to run sikuli.)

When run in the IDE it works fine. When run from within Java or JRuby, I get:
Unable to find library META-INF/lib/libVisionProxy.dylib on classpath

I did see that there is a file that should correct this:
https://launchpad.net/sikuli/sikulix/1.0.1/+download/Sikuli-1.0.1-Supplemental-LinuxVisionProxy.zip

However, when I edit the file to set my JDK path, I get this error:
sh-3.2# . makeVisionProxy
whereis: illegal option -- b

Is there a fix for the libVisionProxy.dylib for OSX using Java 1.7?

Question information

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

to run from Java or JRuby, it is highly recommended, to use the sikuli-java.jar (setup option 3/4).
see: https://github.com/RaiMan/SikuliX-API/wiki/Usage-in-Java-programming

The most important thing:
do NOT move around the sikuli stuff. leave it in the setup folder. use references.

I myself use OSX Maverick and Java 7 for development of SikuliX: be assured, it works with the standard setup.

Revision history for this message
Brian (continuousqa) said :
#2

Thanks RaiMan, that was it. I had moved the jar to my lib folder, and I also was using the sikuli-scripts jar. By a) not moving it, and b) using the sikuli-java.jar, I got it working.

Revision history for this message
laxmi (laxmi3134) said :
#3

Hi Brian/RaiMan,

I have seen your post regarding selenium/sikuli running from Mac os using Eclipse IDE.

I am facing issues with it and stuck from a week with this. Could you please help me out:

I am trying to run a selenium integrated sikuli java application from mac in Eclipse IDE but it is throwing errors. I have added sikuli-script.jar, selenium-web and chromedriver to /Applications/setup path.
This application is working in windows but seems some issues running on mac os

It is throwing below errors, so I have downloaded and copied all the dylib files under /Applications/setup/libs but when ever I run the application the libs file is getting created empty.

/Applications/setup/chromedriver
Starting ChromeDriver 2.31.488774 (7e15618d1bf16df8bf0ecf2914ed1964a387ba0b) on port 45856
Only local connections are allowed.
[error] ResourceLoaderBasic: checkLibsDir: Not a valid libs dir for SikuliX (x86_64): /Applications/setup/libs
[error] ResourceLoaderBasic: check: libs dir is empty, has wrong content or is outdated
[action] ResourceLoaderBasic: check: Please wait! Trying to extract libs to: /Applications/setup/libs
[error] ResourceLoaderBasic: checkLibsDir: Not a valid libs dir for SikuliX (x86_64): /Applications/setup/libs
[error] ResourceLoaderBasic: loadLib: Fatal Error 109: not found: /Applications/setup/libs/libVisionProxy.dylib
[error] Terminating SikuliX after a fatal error(109)! 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.