Troubling running the jar file to install
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-
***** show environment for SETUP (build 201703291041)
user.home: /home/miyuadmin
user.dir (work dir): /home/miyuadmin
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-
app data folder: /home/miyuadmin
libs folder: null
executing jar: /home/miyuadmin
*** classpath dump sikulix
0: /home/miyuadmin
*** 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.
[debug] RunTimeSETUP: resourceList: having jar: jar:file:
[debug] RunTimeSETUP: files exported: 7 from: Lib/sikuli to:
/home/
[debug] RunTimeSETUP: initAPI: leaving
[debug] FileManager: download to string from:
https:/
[debug] RunSetup: getMavenJar: sikulixsetupIDE
[debug] FileManager: download to string from:
https:/
[debug] RunSetup: getMavenJar: sikulixsetupAPI
[debug] FileManager: download to string from:
https:/
[debug] RunSetup: getMavenJar: sikulixlibsmac-
[debug] FileManager: download to string from:
https:/
[debug] RunSetup: getMavenJar: sikulixlibswin-
[debug] FileManager: download to string from:
https:/
[debug] RunSetup: getMavenJar: sikulixlibslux-
[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
[debug (11/9/17 11:04:33 AM)] FileManager: resetFolder:
/home/miyuadmin
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: workDir:
/home/miyuadmin
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: workDirDownloads:
/home/miyuadmin
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: downloadsGeneric:
/home/miyuadmin
[debug (11/9/17 11:04:33 AM)] RunSetup: checkDownloads: downloadsGeneri
/home/miyuadmin
[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
[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
[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
[debug (11/9/17 11:04:33 AM)] RunSetup: RunningJava: Java 8 (amd64) 1.8.0_151-
[debug (11/9/17 11:04:36 AM)] RunSetup:
popAsk: -------
The following file(s) will be downloaded to
/home/miyuadmin
--- Native support libraries for Linux (sikulixlibs...)
--- Package 1 ---
sikulixsetupIDE
sikulixsetupAPI
- 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
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
-------
And here is my log:
[debug (11/9/17 11:04:33 AM)] Debug: setLogFile: /home/miyuadmin
[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
[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
[debug (11/9/17 11:04:33 AM)] RunSetup: RunningJava: Java 8 (amd64) 1.8.0_151-
[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
--- Native support libraries for Linux (sikulixlibs...)
--- Package 1 ---
sikulixsetupIDE
sikulixsetupAPI
- 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
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/
*** classpath dump sikulix
0: /home/miyuadmin
1: /home/miyuadmin
*** 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
[error (11/9/17 11:04:39 AM)] RunTimeSETUP: loadLib: libVisionProxy.so not usable:
java.lang.
[error (11/9/17 11:04:39 AM)] RunTimeSETUP: loadLib: libVisionProxy.so not usable:
java.lang.
[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/
/usr/lib/
/usr/lib/
[debug (11/9/17 11:04:39 AM)] LinuxSupport: checking: found Tesseract lib:
/usr/lib/
[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/
[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/
[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.
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: resourceList: having jar: jar:file:
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: files exported: 16 from: /srcnativelibs/
/home/
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: resourceList: enter
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: resourceLocation: (class org.sikuli.
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: resourceList: having jar: jar:file:
[debug (11/9/17 11:04:39 AM)] RunTimeSETUP: files exported: 27 from: /srcnativelibs/
/home/
[debug (11/9/17 11:04:39 AM)] LinuxSupport: **** content of build script:
(stored at: /home/miyuadmin
work=`pwd`
opencvinclude=
tesseractinclude=
# ---- internal - do not change
work=/home/
jdkdir=
extrainclude=
opencvcore=
opencvimgproc=
opencvhighgui=
tesseractlib=
# ---- internal -
#jdkdir=
#opencvlib=
#opencvcore=
#opencvimgproc=
#opencvhighgui=
#tesseractlib=
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=
fi
includefinal=
echo ----------- COMPILING
mods=
for mod in cvgui.cpp finder.cpp pyramid-
tessocr.cpp vision.cpp visionJAVA_wrap.cxx
do
echo ----- $mod
g++ -c -O3 -fPIC -MMD -MP \
-I$
-I$
$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/
**** 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
[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
[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_
[error (11/9/17 11:04:51 AM)] LinuxSupport: ------- output of the build run
0
----------- COMPILING
----- cvgui.cpp
----- finder.cpp
----- pyramid-
----- sikuli-debug.cpp
----- tessocr.cpp
----- vision.cpp
----- visionJAVA_wrap.cxx
----------- LINKING
[error (11/9/17 11:04:51 AM)] RunTimeSETUP: Problematic lib: /home/miyuadmin
[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_
[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
-------
[debug (11/9/17 11:04:56 AM)] RunTimeSETUP: final cleanup
[debug (11/9/17 11:04:56 AM)] FileManager: deleteFileOrFolder:
/tmp/Sikulix_
Any help on these problems (or how to revert libopencv to 2.4) would be greatly appreciated! Thank you for your time!
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: