Getting error: Caused by: java.lang.UnsatisfiedLinkError: No implementation found for int org.bytedeco.opencv.global.opencv_core.CV_MAKETYPE(int, int) (tried Java_org_bytedeco_opencv_global_opencv_1core_CV_1MAKETYPE and Java_org_bytedeco_opencv_global_opencv_1core_CV_1MAKETYPE__II)
Hi I am trying to use this library for stitching image and doing gradle setup like below:
implementation ('org.bytedeco:javacv:1.5.3'){
exclude group: 'org.bytedeco', module: 'ffmpeg'
exclude group: 'org.bytedeco', module: 'ffmpeg-platform'
exclude group: 'org.bytedeco', module: 'artoolkitplus'
exclude group: 'org.bytedeco', module: 'artoolkitplus-platform'
exclude group: 'org.bytedeco', module: 'flandmark'
exclude group: 'org.bytedeco', module: 'flandmark-platform'
exclude group: 'org.bytedeco', module: 'flycapture'
exclude group: 'org.bytedeco', module: 'flycapture-platform'
exclude group: 'org.bytedeco', module: 'leptonica'
exclude group: 'org.bytedeco', module: 'leptonica-platform'
exclude group: 'org.bytedeco', module: 'libdc1394'
exclude group: 'org.bytedeco', module: 'libdc1394-platform'
exclude group: 'org.bytedeco', module: 'libfreenect'
exclude group: 'org.bytedeco', module: 'libfreenect-platform'
exclude group: 'org.bytedeco', module: 'libfreenect2'
exclude group: 'org.bytedeco', module: 'libfreenect2-platform'
exclude group: 'org.bytedeco', module: 'librealsense2'
exclude group: 'org.bytedeco', module: 'librealsense2-platform'
exclude group: 'org.bytedeco', module: 'librealsense'
exclude group: 'org.bytedeco', module: 'librealsense-platform'
exclude group: 'org.bytedeco', module: 'tesseract'
exclude group: 'org.bytedeco', module: 'tesseract-platform'
exclude group: 'org.bytedeco', module: 'videoinput'
exclude group: 'org.bytedeco', module: 'videoinput-platform'
implementation 'org.bytedeco.javacpp-presets:opencv:4.0.1-1.4.4:android-arm64'
implementation 'org.bytedeco.javacpp-presets:opencv:4.0.1-1.4.4:android-arm'
implementation 'org.bytedeco.javacpp-presets:opencv:4.0.1-1.4.4:android-x86'
implementation 'org.bytedeco.javacpp-presets:opencv:4.0.1-1.4.4:android-x86_64'
implementation 'org.bytedeco.javacpp-presets:openblas:0.3.5-1.4.4:android-arm64'
implementation 'org.bytedeco.javacpp-presets:openblas:0.3.5-1.4.4:android-arm'
implementation 'org.bytedeco.javacpp-presets:openblas:0.3.5-1.4.4:android-x86'
implementation 'org.bytedeco.javacpp-presets:openblas:0.3.5-1.4.4:android-x86_64'
When I run application and trying to execute any code related with this library getting error:
Caused by: java.lang.UnsatisfiedLinkError: No implementation found for int org.bytedeco.opencv.global.opencv_core.CV_MAKETYPE(int, int) (tried Java_org_bytedeco_opencv_global_opencv_1core_CV_1MAKETYPE and Java_org_bytedeco_opencv_global_opencv_1core_CV_1MAKETYPE__II)
If any one can help, please help me to get out from this issue. thanks.
You'll need to use the same version of JavaCPP and JavaCV, in this case something like this:
implementation 'org.bytedeco:opencv:4.3.0-1.5.3:android-arm64'
implementation 'org.bytedeco:opencv:4.3.0-1.5.3:android-arm'
implementation 'org.bytedeco:opencv:4.3.0-1.5.3:android-x86'
implementation 'org.bytedeco:opencv:4.3.0-1.5.3:android-x86_64'
implementation 'org.bytedeco:openblas:0.3.9-1.5.3:android-arm64'
implementation 'org.bytedeco:openblas:0.3.9-1.5.3:android-arm'
implementation 'org.bytedeco:openblas:0.3.9-1.5.3:android-x86'
implementation 'org.bytedeco:openblas:0.3.9-1.5.3:android-x86_64'
You'll need to use the same version of JavaCPP and JavaCV, in this case something like this:
implementation 'org.bytedeco:opencv:4.3.0-1.5.3:android-arm64'
implementation 'org.bytedeco:opencv:4.3.0-1.5.3:android-arm'
implementation 'org.bytedeco:opencv:4.3.0-1.5.3:android-x86'
implementation 'org.bytedeco:opencv:4.3.0-1.5.3:android-x86_64'
implementation 'org.bytedeco:openblas:0.3.9-1.5.3:android-arm64'
implementation 'org.bytedeco:openblas:0.3.9-1.5.3:android-arm'
implementation 'org.bytedeco:openblas:0.3.9-1.5.3:android-x86'
implementation 'org.bytedeco:openblas:0.3.9-1.5.3:android-x86_64'
Thank you so much @saudet my problem is resolved. Thanks again.