From github repo: Installation error: Problem with SikuliX libs folder - Fatal Error 103: No valid native libraries folder

Asked by sjoblomj

Hi! I am trying to compile and install SikuliX 1.0.1 under Windows 7. I have downloaded the git repo to C:\SikuliX-2014 and run 'mvn clean install' in the dir. I then run collectJars.bat, which copies some files to C:\SikuliX-Setup. I go to that dir and try to run sikulixsetup-1.1.jar. The installation process works fine at first, but then gives the error "Problem with SikuliX libs folder - see error log". The error log (SikuliX-1.1.0-Beta1-SetupLog) looks as follows:

[debug (2014-04-02 14:02:23)] FileManager: Downloading 1.1.0-Beta1-1.jar having 5549 KB
[debug (2014-04-02 14:02:29)] FileManager: downloaded 5549 KB to C:\SikuliX-Setup\Downloads\1.1.0-Beta1-1.jar
[debug (2014-04-02 14:02:29)] FileManager: download time: 5
[debug (2014-04-02 14:02:32)] RunSetup: main: Copied from Downloads: 1.1.0-Beta1-1.jar
[debug (2014-04-02 14:02:33)] FileManager: Downloading 1.1.0-Beta1-4.jar having 14332 KB
[debug (2014-04-02 14:02:49)] FileManager: downloaded 14332 KB to C:\SikuliX-Setup\Downloads\1.1.0-Beta1-4.jar
[debug (2014-04-02 14:02:49)] FileManager: download time: 14
[debug (2014-04-02 14:02:52)] RunSetup: main: Copied from Downloads: 1.1.0-Beta1-4.jar
[debug (2014-04-02 14:02:52)] RunSetup: Download ended
[debug (2014-04-02 14:02:52)] RunSetup: Downloads for selected options:
1.1.0-Beta1-1.jar - 1.1.0-Beta1-4.jar -
[debug (2014-04-02 14:02:52)] RunSetup: Download page: https://launchpad.net/raiman/sikulix2013+/1.1.0
[debug (2014-04-02 14:02:52)] RunSetup: recreating IDE (exclude scripting support)
[debug (2014-04-02 14:02:52)] FileManager: buildJar: C:\SikuliX-Setup\sikuli-temp.jar
[debug (2014-04-02 14:02:52)] FileManager: buildJar: adding: C:\SikuliX-Setup\sikulix.jar
[debug (2014-04-02 14:02:54)] FileManager: buildJar: completed
[debug (2014-04-02 14:02:54)] RunSetup: adding needed stuff to sikulix.jar
[debug (2014-04-02 14:02:54)] FileManager: buildJar: C:\SikuliX-Setup\sikuli-temp.jar
[debug (2014-04-02 14:02:54)] FileManager: buildJar: adding: C:\SikuliX-Setup\sikulix.jar
[debug (2014-04-02 14:02:55)] FileManager: buildJar: adding: C:\SikuliX-Setup\sikulixsetup-1.1.jar
[debug (2014-04-02 14:02:57)] FileManager: buildJar: adding: C:\SikuliX-Setup\sikulijython.jar
[debug (2014-04-02 14:03:03)] FileManager: buildJar: completed
[debug (2014-04-02 14:03:03)] RunSetup: exporting commandfiles
[debug (2014-04-02 14:03:03)] ResourceLoader: export: Trying to access package for exporting: Commands/windows#runsikulix.cmd
to: C:/SikuliX-Setup/
[debug (2014-04-02 14:03:03)] ResourceLoader: export: from: file:/C:/SikuliX-Setup/sikulixsetup-1.1.jar
[debug (2014-04-02 14:03:03)] ResourceLoader: export: Found 1 Files in Commands/windows/runsikulix.cmd
[debug (2014-04-02 14:03:06)] RunSetup: trying to set up the environment
[debug (2014-04-02 14:03:06)] ResourceLoader: check: we are running on arch: x86
[debug (2014-04-02 14:03:06)] ResourceLoader: check: using Java at: C:/Program Files (x86)/Java/jre8/
[error (2014-04-02 14:03:06)] ResourceLoader: check: No valid libs path available until now!
[action (2014-04-02 14:03:06)] ResourceLoader: check: Please wait! Trying to extract libs to jar parent folder: C:/SikuliX-Setup/
[debug (2014-04-02 14:03:06)] ResourceLoader: extractLibs: from: file:/C:/SikuliX-Setup/sikulixsetup-1.1.jar
[debug (2014-04-02 14:03:06)] ResourceLoader: extractLibs: Found 6 Files in META-INF/libs/windows/libs32/
[debug (2014-04-02 14:03:06)] ResourceLoader: checkLibsDir: trying: C:\SikuliX-Setup\libs
[debug (2014-04-02 14:03:06)] ResourceLoader: checkLibsDir: Running on Windows - checking system path!
[debug (2014-04-02 14:03:07)] ResourceLoader: checkLibsDir: Added libs dir to path: C:\SikuliX-Setup\libs
[debug (2014-04-02 14:03:07)] ResourceLoader: checkLibsDir: ... files\apache-maven-3.2.1\bin;C:\SikuliX-Setup\libs
[error (2014-04-02 14:03:07)] ResourceLoader: check: Fatal Error 103: No valid native libraries folder available - giving up!
[error (2014-04-02 14:03:07)] RunSetup: Problem with SikuliX libs folder - see error log
[error (2014-04-02 14:03:08)] Terminating SikuliX after a fatal error(103)! 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.
[error (2014-04-02 14:03:08)] BasicsFinalCleanUp: Fatal Error 999: could not be run!

Any ideas on what might be the problem, and how to fix it?
Thank you!

Question information

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

The setup process based on the github repo is completely for offline setup.

So you should not get into the download process (nothing valid to download and when running from the development stuff you surely want to get what you have in your repo ;-)

when running setup after collectjars you should answer the questions coming up in the way, so the already locally in Downloads existing stuff is used and it does not download anything.

You should delete the folder C:\SikuliX-Setup and run collectjars again, to be sure you have what you want.

Revision history for this message
sjoblomj (sjoblomj) said :
#2

Thank you for the quick answer! However, the problem remains identical to how I described, even though I choose to not download anything.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

pls send the log files from collect jars and the setup silently tony mail at https://launchpad.net/~raimund-hocke

Revision history for this message
RaiMan (raimund-hocke) said :
#4

The problem will be fixed until April 7th (Windows 32-Bit Java not working).

Revision history for this message
Tobias Schneck (tobias-schneck) said :
#5

It seems that I currently have the same Issue under Ubuntu13.10 (64-bit):

[debug (4/8/14 7:17:42 PM)] ResourceLoader: export: from: file:/home/tschneck/SikuliX-Setup/sikulixsetup-1.1.jar
[debug (4/8/14 7:17:42 PM)] ResourceLoader: export: Found 8 Files in Lib/sikuli
[error (4/8/14 7:17:42 PM)] ResourceLoader: loadLib: Fatal Error 110: loading: libVisionProxy.so
[error (4/8/14 7:17:42 PM)] ResourceLoader: loadLib: Since native library was found, it might be a problem with needed dependent libraries
/home/tschneck/SikuliX-Setup/libs/libVisionProxy.so: libtesseract.so.3: cannot open shared object file: No such file or directory
[error (4/8/14 7:17:42 PM)] RunSetup: Problem with SikuliX libs folder

Is my adoption correct that I won't have to install any native libraries (like OpenCV) by myself?

Revision history for this message
RaiMan (raimund-hocke) said :
#6

@Tobias
Sorry, but the libs are not yet ready for Ubuntu.
But only a few days away ;-)

No easy workaround for now, sorry.

Revision history for this message
Tobias Schneck (tobias-schneck) said :
#7

Ok, no problem!
Can you inform me when the problem will be solved?

Thanks for your very quick reply!

Revision history for this message
Tobias Schneck (tobias-schneck) said :
#8

Hi Raimund,

do you currently know, when this bug will be fixed?
I won't bother you, I'm just exited to test the new features on ubuntu, like the highlighting :)

Revision history for this message
RaiMan (raimund-hocke) said :
#9

Being exited about Sikuli will never bother me ;-)

I am on the way, but not yet ready.
You simply have to wait.

I will post here, when it is ready.

BTW: Region.highlight() still is not implemented on Linux. Where did you get that hope?

Revision history for this message
Tobias Schneck (tobias-schneck) said :
#10

No problem, thx for your information.

I just thought, it will be maybe implemented in the new version. Do you have plans to implement that feature in the future?

Revision history for this message
RaiMan (raimund-hocke) said :
#11

Yes of course, is on the list.

I first need some better Linux support on one of my machines.

Revision history for this message
Tobias Schneck (tobias-schneck) said :
#12

great! thx!

Revision history for this message
Nicolas X (nicki2016) said :
#13

I'm bumping this, since i encountered the very same Problem on four different Linux Distros(Kubuntu, Lubuntu, Slitaz and Debian) and I couldn't find any way so far to get this to work.

 Sadly i need this for Linux, since Windows is too ressource-hungry.

Are there any (good) news ?

Revision history for this message
Tobias Schneck (tobias-schneck) said :
#15

Hi Nicolas,

the problem with the most of linux distribution is, that the native libs (like openCV) won't fit to the one which sikuli-x will use in there program execution. The native libs will called over the 'libVisionProxy.so'. To generate a customized one, Raimund have provided a "supplimental package" which generates a new libVisionProxy.so.

Under ubuntu 14, the following steps worked for me:

* Download the Supplemental-Package: https://github.com/RaiMan/SikuliX-2014/blob/master/Setup/src/main/resources/SikuliX-1.1.0-Beta-Supplemental-Linux.zip
* Unzip the file and read the README.txt
* install the opencv und tesseract via apt-get:
** sudo apt-get install libcv-dev
** sudo apt-get install libtesseract-dev
* run './makeVisionProxy' in the unzipped folder
* if the execution maybe fails, you have to create some symbolic links with the following script:

----------
OPEN_CV_INSTALL=/usr/lib/x86_64-linux-gnu
LIB_INSTALL=/usr/lib

sudo ln -s $OPEN_CV_INSTALL/libopencv_calib3d.so $LIB_INSTALL/libopencv_calib3d.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_contrib.so $LIB_INSTALL/libopencv_contrib.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_core.so $LIB_INSTALL/libopencv_core.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_features2d.so $LIB_INSTALL/libopencv_features2d.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_flann.so $LIB_INSTALL/libopencv_flann.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_gpu.so $LIB_INSTALL/libopencv_gpu.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_highgui.so $LIB_INSTALL/libopencv_highgui.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_imgproc.so $LIB_INSTALL/libopencv_imgproc.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_legacy.so $LIB_INSTALL/libopencv_legacy.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_ml.so $LIB_INSTALL/libopencv_ml.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_objdetect.so $LIB_INSTALL/libopencv_objdetect.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_ocl.so $LIB_INSTALL/libopencv_ocl.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_photo.so $LIB_INSTALL/libopencv_photo.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_stitching.so $LIB_INSTALL/libopencv_stitching.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_superres.so $LIB_INSTALL/libopencv_superres.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_ts.so $LIB_INSTALL/libopencv_ts.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_video.so $LIB_INSTALL/libopencv_video.so
sudo ln -s $OPEN_CV_INSTALL/libopencv_videostab.so $LIB_INSTALL/libopencv_videostab.so

ls -la $LIB_INSTALL/libopencv*
--------------

After the successful execution of the 'makeVisionProxy' script, you get an new customized 'libVisionProxy.so' file.
Replace this in your installation folder, see the README file.

I hope this will work for you too!