← Back to team overview

sikuli-driver team mailing list archive

[Question #293077]: about libopencv_core.so.2.4 in unbuntu 14.04

 

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

i have followed steps on here :http://www.sikulix.com/quickstart.html 
i have installed all the prerequires. NOTICE ,opencv(ecommended version 2.4+),so i installed the latest version 3.1.
when i run "java -jar sikulixsetup-1.1.0.jar"  it didn't finish ,so,i check the SikuliX-1.1.0-SetupLog.txt .
this is the log:
[debug (16-5-2 16:18:57)] Debug: setLogFile: /home/zsx/simuScript/SikuliX-1.1.0-SetupLog.txt
[debug (16-5-2 16:18:57)] RunSetup: ... starting with no args given
[debug (16-5-2 16:18:57)] RunSetup: Setup: 1.1.0 2015-10-06_17:22 in folder:
/home/zsx/simuScript
[debug (16-5-2 16:18:57)] RunSetup: RunningSystem: Linux 3.13.0-34-generic (0 Ubuntu 14.04)
[debug (16-5-2 16:18:57)] RunSetup: parent of jar/classes: /home/zsx/simuScript
[debug (16-5-2 16:18:57)] RunSetup: RunningJava: Java 7 (amd64) 1.7.0_60-b19
[debug (16-5-2 16:18:57)] init user preferences
[debug (16-5-2 16:19:09)] RunSetup: 
popAsk: --------------------
The following file(s) will be downloaded to
/home/zsx/simuScript
--- Native support libraries for Linux (sikulixlibs...)
--- Package 1 ---
sikulixsetupIDE-1.1.0-forsetup.jar (IDE/Scripting)
sikulixsetupAPI-1.1.0-forsetup.jar (Java API)
 - with Jython
--- Package 2 ---
sikulixsetupAPI-1.1.0-forsetup.jar (done in package 1)
Only click NO, if you want to terminate setup now!
Click YES even if you want to use local copies in Downloads!
--------------------
[debug (16-5-2 16:19:13)] RunSetup: 
popAsk: --------------------
You have for Linux native libs
/home/zsx/.Sikulix/SikulixDownloads_201510061722/sikulixlibslux-1.1.0.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (16-5-2 16:19:25)] RunSetup: Copied from Downloads: sikulixlibslux
[debug (16-5-2 16:19:25)] RunTimeSETUP: addToClasspath:
file:/home/zsx/simuScript/sikulixlibslux.jar
*** classpath dump sikulix
  0: /home/zsx/simuScript/sikulixsetup-1.1.0.jar
  1: /home/zsx/simuScript/sikulixlibslux.jar
*** classpath dump end
[debug (16-5-2 16:19:25)] RunSetup: checking usability of bundled/provided libs
[debug (16-5-2 16:19:25)] RunTimeSETUP: exists libs folder at: /home/zsx/.Sikulix/SikulixLibs_201510061722
[error (16-5-2 16:19:25)] RunTimeSETUP: loadLib: libVisionProxy.so not usable: 
java.lang.UnsatisfiedLinkError: /home/zsx/.Sikulix/SikulixLibs_201510061722/libVisionProxy.so: libopencv_core.so.2.4: cannot open shared object file: No such file or directory ,but i have libopencv_core.so.3.1
[error (16-5-2 16:19:25)] RunTimeSETUP: loadLib: libVisionProxy.so not usable: 
java.lang.UnsatisfiedLinkError: /home/zsx/.Sikulix/SikulixLibs_201510061722/libVisionProxy.so: libopencv_core.so.2.4: cannot open shared object file: No such file or directory ,but i have libopencv_core.so.3.1
[debug (16-5-2 16:19:25)] LinuxSupport: we have to build libVisionProxy.so
[debug (16-5-2 16:19:25)] LinuxSupport: checking: availability of OpenCV and Tesseract
[debug (16-5-2 16:19:25)] LinuxSupport: checking: scanning loader cache (ldconfig -p)
[debug (16-5-2 16:19:25)] RunTimeSETUP: ldconfig -p 
[debug (16-5-2 16:19:25)] LinuxSupport: checking: found OpenCV libs:
/usr/local/lib/libopencv_core.so.3.1
/usr/local/lib/libopencv_highgui.so.3.1
/usr/local/lib/libopencv_imgproc.so.3.1
[debug (16-5-2 16:19:25)] LinuxSupport: checking: found Tesseract lib:
/usr/local/lib/libtesseract.so.3
[debug (16-5-2 16:19:25)] RunTimeSETUP: wmctrl -m 
[debug (16-5-2 16:19:25)] LinuxSupport: checking: wmctrl seems to be available
[debug (16-5-2 16:19:25)] RunTimeSETUP: xdotool version 
[error (16-5-2 16:19:25)] RunTimeSETUP: fatal error: java.io.IOException: Cannot run program "xdotool": error=2, 没有那个文件或目录
[error (16-5-2 16:19:25)] LinuxSupport: checking: xdotool not available or not working
[debug (16-5-2 16:19:25)] LinuxSupport: buildVision: starting inline build: libVisionProxy.so
[debug (16-5-2 16:19:25)] LinuxSupport: buildVision: java.home from java props: /home/zsx/java/jdk1.7/jre
[debug (16-5-2 16:19:25)] LinuxSupport: buildVision: JAVA_HOME from environment: /home/zsx/java/nowjdk
[debug (16-5-2 16:19:25)] LinuxSupport: buildVision: JDK: found at: /home/zsx/java/jdk1.7
[debug (16-5-2 16:19:25)] RunTimeSETUP: resourceList: enter
[debug (16-5-2 16:19:25)] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) /srcnativelibs/Vision
[debug (16-5-2 16:19:25)] RunTimeSETUP: resourceList: having jar: jar:file:/home/zsx/simuScript/sikulixlibslux.jar!/srcnativelibs/Vision
[debug (16-5-2 16:19:25)] RunTimeSETUP: files exported: 16 from: /srcnativelibs/Vision to:
 /home/zsx/.Sikulix/sikulixlibs/linux/Build/Source
[debug (16-5-2 16:19:25)] LinuxSupport: **** content of build script:
#jdkdir=/usr/lib/jvm/java-7-openjdk-amd64
jdkdir=/home/zsx/java/jdk1.7

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

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

#work=`pwd`
work=/home/zsx/.Sikulix/sikulixlibs/linux/Build
source=$work/Source
buildinclude=$work/Include
build=$work/Target
stuff=$build/Stuff
rm -R -f $build
mkdir $build
mkdir $stuff

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

echo ----------- COMPILING
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 (16-5-2 16:19:25)] LinuxSupport: buildVision: running build script
[debug (16-5-2 16:19:25)] RunTimeSETUP: /home/zsx/.Sikulix/sikulixlibs/linux/runBuild 
[debug (16-5-2 16:24:14)] RunTimeSETUP: final cleanup
[debug (16-5-2 16:24:14)] FileManager: deleteFileOrFolder:
/tmp/Sikulix_989757849

==========
so , i think the problem is that sikuli need libopencv2.4 because libVisionProxy.so , however i have a higher version (3.1),It can't use it?!...I really do not want to use a old version when i have installed a latest version.I Need Help!!!Thanks A Lot!

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