Re: [Sikuli-driver] [Question #657904]: UnsatisfiedLinkError occurred when using OpenCV Java API bundled with SikuliX - not intended for direct usage
Question #657904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/657904 Summary changed to: UnsatisfiedLinkError occurred when using OpenCV Java API bundled with SikuliX - not intended for direct usage -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #657904]: UnsatisfiedLinkError occurred when using OpenCV Java API bundled with SikuliX - not intended for direct usage
Question #657904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/657904 Wendell posted a new comment: Hi RaiMan, I'm trying to figure out this problem because I only want to use the method which afford by sikulix to interact with android devices. Just like import org.sikuli.android.ADBScreen as ADB ab = ADB.start() ab.aTap('img') but the exception is : Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat(III)J there is something wrong in ADBDevice.java , function captureDeviceScreenMat() line 205 : Mat matOrg = new Mat(actH, actW, CvType.CV_8UC4); So There was a mistake in calling the function Mat() from opencv I had tested the aSwipe and aKey function run correctly but because of the error , captureScreen can not be used. Then I try using Java and import sikulixapi.jar to test where is wrong. I had read this question https://answers.launchpad.net/sikuli/+question/626490 , and write this code to test: System.loadLibrary(Core.NATIVE_LIBRARY_NAME);//without this line, the same error will be reported int actH = 1080; int actW = 720; Mat matOrg = new Mat(actH, actW, CvType.CV_32FC2); run it, a new error will be reported : Java.lang.UnsatisfiedLinkError: no opencv_java248 in java.library.path I searched the file in sikulixapi and the folder :C:\Users\Administrator\AppData\Roaming\Sikulix\SikulixLibs_201707260804 there are some files about opencv: libopencv_core248.dll libopencv_features2d248.dll libopencv_flann248.dll libopencv_highgui248.dll libopencv_imgproc248.dll libopencv_java248.dll but no opencv_java248 Now I'm confused and don't know how to deal with it. I just only want to use the ADBDevice and ADBScreen but the key function exists,find,aTap can't work. Anyway thanks RaiMan, you helps me alot : ) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #657904]: UnsatisfiedLinkError occurred when using OpenCV Java API bundled with SikuliX - not intended for direct usage
Question #657904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/657904 RaiMan proposed the following answer: ok, I will check latest within the next 24 hours. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #657904]: UnsatisfiedLinkError occurred when using OpenCV Java API bundled with SikuliX - not intended for direct usage
Question #657904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/657904 RaiMan posted a new comment: I just tested on my Mac with a Nexus7/Android 6 attached. Everything works as expected. I will now have to check on Windows (only Win 10 64 available). BTW: by convention: a library opencv_java248 will be looked for as libopencv_java248.dll (which indeed exists in the package). what I did: In the SikuliX IDE, I first made the checks from the Tools menu. Then I made the Nexus the default screen (Tools menu) and captured an image (app icon) from the home screen and ran this script: import org.sikuli.android.ADBScreen as ADB dev = ADB.start() img = "img.png" dev.aTap(img) which successfully opened the app. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #657904]: UnsatisfiedLinkError occurred when using OpenCV Java API bundled with SikuliX - not intended for direct usage
Question #657904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/657904 Wendell posted a new comment: Hi RaiMan, The result that i made the checks from the tools menu seems that go to the default screen and swipe left right run successfully, but when try to run a tap, the ide has no response, after a few seconds, i had to abort it and there are some error : it seems that because of the same reason. [error] ADBDevice: exec: getprop: se.vidstige.jadb.JadbException: command failed: device offline [error] ADBDevice: dumpsys: display: se.vidstige.jadb.JadbException: command failed: device offline [error] ADBDevice: getDisplayDimension: dumpsys display: token not found: mDefaultViewport= ... deviceWidth=1200, deviceHeight=1920} [error] IDE: Problem when trying to invoke menu action android Error: null [error] ADBDevice: isDisplayOn: (Android version -1) dumpsys power: pattern not found: mScreenOn=(..) [error] ADBScreen: wakeUp: not possible - see log Exception in thread "Thread-12" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat(III)J at org.opencv.core.Mat.n_Mat(Native Method) at org.opencv.core.Mat.(Mat.java:481) at org.sikuli.android.ADBDevice.captureDeviceScreenMat(ADBDevice.java:207) at org.sikuli.android.ADBDevice.captureDeviceScreen(ADBDevice.java:145) at org.sikuli.android.ADBDevice.captureScreen(ADBDevice.java:136) at org.sikuli.android.ADBScreen.capture(ADBScreen.java:152) at org.sikuli.android.ADBScreen.capture(ADBScreen.java:144) at org.sikuli.util.OverlayCapturePrompt.prompt(OverlayCapturePrompt.java:211) at org.sikuli.android.ADBScreen$1.run(ADBScreen.java:207) Exception in thread "Thread-11" java.lang.NullPointerException at org.sikuli.android.ADBTest.ideTest(ADBTest.java:99) at org.sikuli.ide.SikuliIDE.androidSupportTest(SikuliIDE.java:1794) at org.sikuli.ide.SikuliIDE.access$2500(SikuliIDE.java:106) at org.sikuli.ide.SikuliIDE$1.run(SikuliIDE.java:1778) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #657904]: UnsatisfiedLinkError occurred when using OpenCV Java API bundled with SikuliX - not intended for direct usage
Question #657904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/657904 Wendell posted a new comment: Hi RaiMan, Have you done a test on your win10 x64? I do not have mac so couldn't test it. But I think I had test it on 2 different machines and both 32bit and 64bit win7 with the same version of jdk, Will there be some problems with the windows? Looking forward to your reply. : ) Wendell -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #657904]: UnsatisfiedLinkError occurred when using OpenCV Java API bundled with SikuliX - not intended for direct usage
Question #657904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/657904 Madhusudhan posted a new comment: (Continued) My sikuli snippet: ADBScreen adb = ADBScreen.start(); adb.click("PathToImage"); adb.stop(); Am using Windows XP. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #657904]: UnsatisfiedLinkError occurred when using OpenCV Java API bundled with SikuliX - not intended for direct usage
Question #657904 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/657904 Madhusudhan posted a new comment: Hi RaiMan, I am also facing the above issue. Am trying to run Sikuli on Android Emulator with API level 23. Getting below error!! I have also installed SikuliX as per the expected way. I tried the sikuli version, 1.1.1 and 1.1.2. Getting error in both the versions. Please do assist. Error: " java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat(III)J" Sikuli Version: sonatype-ossrh https://oss.sonatype.org/content/repositories/snapshots/ com.sikulix sikulixapi 1.1.2-SNAPSHOT -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp