sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37856
Re: [Question #293077]: [1.1.0] Linux: trying to build with OpenCV 3.1.0
Question #293077 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/293077
Description changed to:
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:
... more ...
[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.