← Back to team overview

sikuli-driver team mailing list archive

[Question #660535]: Troubling running the jar file to install

 

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

Hello everyone who reads this in the SikuliX community. I am having a slight problem with trying to install the .jar file on Ubuntu 17.04. It might be because I am using libopencv version 3 (I know it requires 2.4). here is my build script:

[info] runcmd: lsb_release -i -r -s 
[debug] RunTimeINIT: global init: entering as: SETUP
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 1920 x 1080
[debug] RunTimeINIT: runs as sikulixsetup-1.1.1.jar in: /home/miyuadmin/Documents/sikulix
***** show environment for SETUP (build 201703291041)
user.home: /home/miyuadmin
user.dir (work dir): /home/miyuadmin/Documents/sikulix
user.name: miyuadmin
java.io.tmpdir: /tmp
running 64Bit on Linux (0 Ubuntu 17.10) from a jar
java 8-64 version 1.8.0_151-8u151-b12-0ubuntu0.17.10.2-b12 vm 25.151-b12 class 52.0 arch amd64
app data folder: /home/miyuadmin/.Sikulix
libs folder: null
executing jar: /home/miyuadmin/Documents/sikulix/sikulixsetup-1.1.1.jar
*** classpath dump sikulix
  0: /home/miyuadmin/Documents/sikulix/sikulixsetup-1.1.1.jar
*** classpath dump end
***** show environment end
[debug] RunTimeSETUP: global init: leaving
[debug] RunTimeSETUP: initAPI: entering
[debug] RunTimeSETUP: resourceList: enter
[debug] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) /Lib/sikuli
[debug] RunTimeSETUP: resourceList: having jar: jar:file:/home/miyuadmin/Documents/sikulix/sikulixsetup-1.1.1.jar!/Lib/sikuli
[debug] RunTimeSETUP: files exported: 7 from: Lib/sikuli to:
 /home/miyuadmin/.Sikulix/Lib/sikuli
[debug] RunTimeSETUP: initAPI: leaving
[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupIDE/1.1.1-SNAPSHOT/maven-metadata.xml,
[debug] RunSetup: getMavenJar: sikulixsetupIDE-1.1.1-20170329.232057-141-forsetup.jar
[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupAPI/1.1.1-SNAPSHOT/maven-metadata.xml,
[debug] RunSetup: getMavenJar: sikulixsetupAPI-1.1.1-20170329.231900-143-forsetup.jar
[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixlibsmac/1.1.1-SNAPSHOT/maven-metadata.xml,
[debug] RunSetup: getMavenJar: sikulixlibsmac-1.1.1-20170329.230802-154.jar
[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixlibswin/1.1.1-SNAPSHOT/maven-metadata.xml,
[debug] RunSetup: getMavenJar: sikulixlibswin-1.1.1-20170329.230420-154.jar
[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixlibslux/1.1.1-SNAPSHOT/maven-metadata.xml,
[debug] RunSetup: getMavenJar: sikulixlibslux-1.1.1-20170412.113406-155.jar
[debug] RunSetup: 
popAsk: --------------------
You are about to run a setup for 1.1.1 (201703291041)
You should have a suitable backup, 
to go back in case to what you have now.
Click NO to stop here
--------------------
[debug] RunSetup: 
popAsk: --------------------
You are about to run a setup for 1.1.1 (201703291041)
You should have a suitable backup, 
to go back in case to what you have now.
Click NO to stop here
--------------------
[debug] RunSetup: command line options:
[debug] RunSetup: 
[debug (11/9/17 11:04:33 AM)] RunTimeSETUP: exists libs folder at: /home/miyuadmin/.Sikulix/SikulixLibs_201703291041
[debug (11/9/17 11:04:33 AM)] FileManager: resetFolder:
/home/miyuadmin/Documents/sikulix/SetupStuff
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: workDir:
/home/miyuadmin/Documents/sikulix
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: workDirDownloads:
/home/miyuadmin/Documents/sikulix/Downloads
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: downloadsGeneric:
/home/miyuadmin/.Sikulix/SikulixDownloads
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: downloadsGenericApp:
/home/miyuadmin/.Sikulix/SikulixDownloads_201703291041
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: not found: python
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: not found: tess
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: not found: python25
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: not found: api
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: not found: ide
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: not found: rubyaddons
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: not found: win
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: not found: mac
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: found: lux:
/home/miyuadmin/.Sikulix/SikulixDownloads_201703291041/sikulixlibslux-1.1.1-20170412.113406-155.jar
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: not found: ruby
[debug (11/9/17 11:04:33 AM)] RunSetup: ... starting with no args given
[debug (11/9/17 11:04:33 AM)] RunSetup: LinuxDistro: 0 Ubuntu 17.10 (64-Bit)
[debug (11/9/17 11:04:33 AM)] RunSetup: Setup: 1.1.1 2017-03-29_10:41 in folder:
/home/miyuadmin/Documents/sikulix
[debug (11/9/17 11:04:33 AM)] RunSetup: RunningSystem: Linux 4.13.0-16-generic (0 Ubuntu 17.10)
[debug (11/9/17 11:04:33 AM)] RunSetup: parent of jar/classes: /home/miyuadmin/Documents/sikulix
[debug (11/9/17 11:04:33 AM)] RunSetup: RunningJava: Java 8 (amd64) 1.8.0_151-8u151-b12-0ubuntu0.17.10.2-b12
[debug (11/9/17 11:04:36 AM)] RunSetup: 
popAsk: --------------------
The following file(s) will be downloaded to
/home/miyuadmin/Documents/sikulix
--- Native support libraries for Linux (sikulixlibs...)
--- Package 1 ---
sikulixsetupIDE-1.1.1-20170329.232057-141-forsetup.jar (IDE/Scripting)
sikulixsetupAPI-1.1.1-20170329.231900-143-forsetup.jar (Java API)
 - with Jython
Only click NO, if you want to terminate setup now!
Click YES even if you want to use local copies in Downloads!
--------------------
[debug (11/9/17 11:04:38 AM)] RunSetup: 
popAsk: --------------------
You have for Linux native libs
/home/miyuadmin/.Sikulix/SikulixDownloads_201703291041/sikulixlibslux-1.1.1-20170412.113406-155.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (11/9/17 11:04:39 AM)] RunSetup: Copied from Downloads: sikulixlibslux
[debug (11/9/17 11:04:39 AM)] RunSetup: checking usability of bundled, provided or built libs
[error (11/9/17 11:04:51 AM)] RunSetup: libVisionproxy.so finally not useable
[error (11/9/17 11:04:51 AM)] RunSetup: Giving up!
[error (11/9/17 11:04:51 AM)] RunSetup: ... terminated abnormally :-(
[debug (11/9/17 11:04:51 AM)] RunSetup: 
popError: --------------------
Something serious happened! Sikuli not useable!
Check the error log at /home/miyuadmin/Documents/sikulix/SikuliX-1.1.1-SetupLog.txt
--------------------

And here is my log:

[debug (11/9/17 11:04:33 AM)] Debug: setLogFile: /home/miyuadmin/Documents/sikulix/SikuliX-1.1.1-SetupLog.txt
[debug (11/9/17 11:04:33 AM)] RunSetup: ... starting with no args given
[debug (11/9/17 11:04:33 AM)] RunSetup: LinuxDistro: 0 Ubuntu 17.10 (64-Bit)
[debug (11/9/17 11:04:33 AM)] RunSetup: Setup: 1.1.1 2017-03-29_10:41 in folder:
/home/miyuadmin/Documents/sikulix
[debug (11/9/17 11:04:33 AM)] RunSetup: RunningSystem: Linux 4.13.0-16-generic (0 Ubuntu 17.10)
[debug (11/9/17 11:04:33 AM)] RunSetup: parent of jar/classes: /home/miyuadmin/Documents/sikulix
[debug (11/9/17 11:04:33 AM)] RunSetup: RunningJava: Java 8 (amd64) 1.8.0_151-8u151-b12-0ubuntu0.17.10.2-b12
[debug (11/9/17 11:04:33 AM)] init user preferences
[debug (11/9/17 11:04:36 AM)] RunSetup: 
popAsk: --------------------
The following file(s) will be downloaded to
/home/miyuadmin/Documents/sikulix
--- Native support libraries for Linux (sikulixlibs...)
--- Package 1 ---
sikulixsetupIDE-1.1.1-20170329.232057-141-forsetup.jar (IDE/Scripting)
sikulixsetupAPI-1.1.1-20170329.231900-143-forsetup.jar (Java API)
 - with Jython
Only click NO, if you want to terminate setup now!
Click YES even if you want to use local copies in Downloads!
--------------------
[debug (11/9/17 11:04:38 AM)] RunSetup: 
popAsk: --------------------
You have for Linux native libs
/home/miyuadmin/.Sikulix/SikulixDownloads_201703291041/sikulixlibslux-1.1.1-20170412.113406-155.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (11/9/17 11:04:39 AM)] RunSetup: Copied from Downloads: sikulixlibslux
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: addToClasspath:
file:/home/miyuadmin/Documents/sikulix/sikulixlibslux.jar
*** classpath dump sikulix
  0: /home/miyuadmin/Documents/sikulix/sikulixsetup-1.1.1.jar
  1: /home/miyuadmin/Documents/sikulix/sikulixlibslux.jar
*** classpath dump end
[debug (11/9/17 11:04:39 AM)] RunSetup: checking usability of bundled, provided or built libs
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: exists libs folder at: /home/miyuadmin/.Sikulix/SikulixLibs_201703291041
[error (11/9/17 11:04:39 AM)] RunTimeSETUP: loadLib: libVisionProxy.so not usable: 
java.lang.UnsatisfiedLinkError: /home/miyuadmin/.Sikulix/SikulixLibs_201703291041/libVisionProxy.so: libopencv_core.so.2.4: cannot open shared object file: No such file or directory
[error (11/9/17 11:04:39 AM)] RunTimeSETUP: loadLib: libVisionProxy.so not usable: 
java.lang.UnsatisfiedLinkError: /home/miyuadmin/.Sikulix/SikulixLibs_201703291041/libVisionProxy.so: libopencv_core.so.2.4: cannot open shared object file: No such file or directory
[debug (11/9/17 11:04:39 AM)] LinuxSupport: we have to build libVisionProxy.so
[debug (11/9/17 11:04:39 AM)] LinuxSupport: checking: availability of OpenCV and Tesseract
[debug (11/9/17 11:04:39 AM)] LinuxSupport: checking: scanning loader cache (ldconfig -p)
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: ldconfig -p 
[debug (11/9/17 11:04:39 AM)] LinuxSupport: checking: found OpenCV libs:
/usr/lib/x86_64-linux-gnu/libopencv_core.so.3.1
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.3.1
/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.3.1
[debug (11/9/17 11:04:39 AM)] LinuxSupport: checking: found Tesseract lib:
/usr/lib/x86_64-linux-gnu/libtesseract.so.3
[debug (11/9/17 11:04:39 AM)] LinuxSupport: buildVision: starting inline build: libVisionProxy.so
[debug (11/9/17 11:04:39 AM)] LinuxSupport: buildVision: java.home from java props: /usr/lib/jvm/java-8-openjdk-amd64/jre
[debug (11/9/17 11:04:39 AM)] LinuxSupport: buildVision: JAVA_HOME from environment: null
[debug (11/9/17 11:04:39 AM)] LinuxSupport: buildVision: JDK: found at: /usr/lib/jvm/java-8-openjdk-amd64
[debug (11/9/17 11:04:39 AM)] LinuxSupport: buildVision: tesseract-include: not found - using the bundled include files
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: resourceList: enter
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) /srcnativelibs/Vision
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: resourceList: having jar: jar:file:/home/miyuadmin/Documents/sikulix/sikulixlibslux.jar!/srcnativelibs/Vision
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: files exported: 16 from: /srcnativelibs/Vision to:
 /home/miyuadmin/.Sikulix/sikulixlibs/linux/Build/Source
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: resourceList: enter
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) /srcnativelibs/Include/Tesseract
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: resourceList: having jar: jar:file:/home/miyuadmin/Documents/sikulix/sikulixlibslux.jar!/srcnativelibs/Include/Tesseract
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: files exported: 27 from: /srcnativelibs/Include/Tesseract to:
 /home/miyuadmin/.Sikulix/sikulixlibs/linux/Build/Include
[debug (11/9/17 11:04:39 AM)] LinuxSupport: **** content of build script:
(stored at: /home/miyuadmin/.Sikulix/sikulixlibs/linux/runBuild)
work=`pwd`
opencvinclude=
tesseractinclude=

# ---- internal - do not change
work=/home/miyuadmin/.Sikulix/sikulixlibs/linux/Build
jdkdir=/usr/lib/jvm/java-8-openjdk-amd64
extrainclude=$work/Include
opencvcore=/usr/lib/x86_64-linux-gnu/libopencv_core.so.3.1
opencvimgproc=/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.3.1
opencvhighgui=/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.3.1
tesseractlib=/usr/lib/x86_64-linux-gnu/libtesseract.so.3
# ---- internal -

#jdkdir=/usr/lib/jvm/java-7-openjdk-amd64

#opencvlib=/usr/lib/x86_64-linux-gnu
#opencvcore=$opencvlib/libopencv_core.so.2.4
#opencvimgproc=$opencvlib/libopencv_imgproc.so.2.4
#opencvhighgui=$opencvlib/libopencv_highgui.so.2.4

#tesseractlib=/usr/lib/libtesseract.so.3

source=$work/Source

build=$work/Target
rm -R -f $build
mkdir $build

stuff=$build/Stuff
rm -R -f $stuff
mkdir $stuff

includeplus=
if [ "$extrainclude" != "" ]; then
  includeplus="-I$extrainclude "
fi
includefinal="-I/usr/include -I/usr/local/include $includeplus "

echo ----------- COMPILING
mods=
for mod in cvgui.cpp finder.cpp pyramid-template-matcher.cpp sikuli-debug.cpp \
  tessocr.cpp vision.cpp visionJAVA_wrap.cxx
do
  echo ----- $mod
  g++ -c -O3 -fPIC -MMD -MP \
    -I$jdkdir/include \
    -I$jdkdir/include/linux  \
    $includefinal \
    -MF $stuff/$mod.o.d \
    -o $stuff/$mod.o \
    $source/$mod
  mods="$mods $stuff/$mod.o "
done

echo ----------- LINKING
g++ -shared -s -fPIC -dynamic $mods \
  $opencvcore \
  $opencvimgproc \
  $opencvhighgui \
  $tesseractlib \
  -o $build/libVisionProxy.so

**** content end
[debug (11/9/17 11:04:39 AM)] LinuxSupport: buildVision: running build script
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: /home/miyuadmin/.Sikulix/sikulixlibs/linux/runBuild 
[debug (11/9/17 11:04:51 AM)] LinuxSupport: buildVision: checking created libVisionProxy.so
[debug (11/9/17 11:04:51 AM)] RunTimeSETUP: ldd -r /home/miyuadmin/.Sikulix/sikulixlibs/linux/Build/Target/libVisionProxy.so 
[error (11/9/17 11:04:51 AM)] LinuxSupport: checking: might not work, has undefined symbols: libVisionProxy.so
[debug (11/9/17 11:04:51 AM)] LinuxSupport: _ZTVN2cv12_OutputArrayE:
[error (11/9/17 11:04:51 AM)] LinuxSupport: ------- output of the build run
0
----------- COMPILING
----- cvgui.cpp
----- finder.cpp
----- pyramid-template-matcher.cpp
----- sikuli-debug.cpp
----- tessocr.cpp
----- vision.cpp
----- visionJAVA_wrap.cxx
----------- LINKING

[error (11/9/17 11:04:51 AM)] RunTimeSETUP: Problematic lib: /home/miyuadmin/.Sikulix/SikulixLibs_201703291041/libVisionProxy.so (...TEMP...)
[error (11/9/17 11:04:51 AM)] RunTimeSETUP: libVisionProxy.so loaded, but it might be a problem with needed dependent libraries
ERROR: ...TEMP...: libopencv_core.so.2.4: cannot open shared object file: No such file or directory
[error (11/9/17 11:04:51 AM)] RunSetup: libVisionproxy.so finally not useable
[error (11/9/17 11:04:51 AM)] RunSetup: Giving up!
[error (11/9/17 11:04:51 AM)] RunSetup: ... terminated abnormally :-(
[debug (11/9/17 11:04:51 AM)] RunSetup: 
popError: --------------------
Something serious happened! Sikuli not useable!
Check the error log at /home/miyuadmin/Documents/sikulix/SikuliX-1.1.1-SetupLog.txt
--------------------
[debug (11/9/17 11:04:56 AM)] RunTimeSETUP: final cleanup
[debug (11/9/17 11:04:56 AM)] FileManager: deleteFileOrFolder:
/tmp/Sikulix_1904858139

Any help on these problems (or how to revert libopencv to 2.4) would be greatly appreciated! Thank you for your time!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.