添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account 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) #1418 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) #1418 lalit-gsquad opened this issue May 5, 2020 · 2 comments

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.