Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

Missing 32 bit files #2234

Closed
nickgitnick opened this issue May 16, 2024 · 1 comment
Closed

Missing 32 bit files #2234

nickgitnick opened this issue May 16, 2024 · 1 comment

Comments

@nickgitnick
Copy link

I am building an Android app, and trying to support both armeabi-v7a and arm64-v8a. It appears there are many Android devices, some relatively new that still use the older 32 bit instruction set.

I believe these are the relevent sections of the app build.gradle file

plugins {
    id 'com.android.application'
    id 'org.bytedeco.gradle-javacpp-platform' version '1.5.10'
    id 'org.bytedeco.gradle-javacpp-build' version '1.5.10'
}

ext {
    javacppPlatform = 'android-arm,android-arm64'
}


android {
    compileSdk 34
    buildToolsVersion '33.0.0'

    buildTypes {
        release {
            ndk {
                abiFilters 'armeabi-v7a', 'arm64-v8a'//, 'x86_64'// may be added
            }
        }
    }

}

dependencies {

    implementation 'org.bytedeco:javacv:1.5.10'
    javacpp 'org.bytedeco:ffmpeg-platform:6.1.1-1.5.10'

    repositories {
        mavenCentral()
        google()
    }
}

This works great arm64-v8a devices, but crashes on armeabi-v7a devices. When I build, and open my bundle, I can see that the armeabi-v7a folder is missing all of the .so files from javacv, while the arm64-v8a folder has them. Also, if I include x86 as a platform, no files are added for this abi, but I can include 'x86_64' and the files are included.

If I look inside the precompiled javacv-platform-1.5.10-bin.zip files, I do not see these 32 bit files, which perhaps is the reason they don't get included, using the javacpp gradle plugins?

Is it intentional that 32 bit android is not included in the precompiled .so files? If so, do I need to build them myself?

@saudet
Copy link
Member

saudet commented May 16, 2024

Duplicate of bytedeco/javacpp-presets#1483

@saudet saudet marked this as a duplicate of bytedeco/javacpp-presets#1483 May 16, 2024
@saudet saudet closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants