martoreto / opuscodec

Opus Audio Codec for Android
90 stars 44 forks source link

Any chance to get support for arm64-v8a? #10

Open mohsenoid opened 5 years ago

mohsenoid commented 5 years ago

I am trying to use this lib in my project and because of having Split armeabi-v7a and arm64-v8a in my Gradle for my other native codes, on runtime I get this exception that arm64-v8a version of "libsenz.so" doesn't exist.

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.germanautolabs.chris.cat.debug-_Xw4yLcz0YgVU2VJPo4ITQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.germanautolabs.chris.cat.debug-_Xw4yLcz0YgVU2VJPo4ITQ==/lib/arm64, /data/app/com.germanautolabs.chris.cat.debug-_Xw4yLcz0YgVU2VJPo4ITQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]]] couldn't find "libsenz.so"

I unzipped the AAR file of opuscodec:v1.2.1.2 file and there is only armeabi-v7a, x86 and x86_64. How much is a chance that you publish a version including arm64-v8a?

FYI, Google play is pushing apps to use arm64-v8a instead of armeabi-v7a!

mohsenoid commented 5 years ago

Currently, I cloned your repo and added to my project with an "arm64-v8a" filter abi and also sent you a pull request to have this change in next library release maybe.

https://github.com/martoreto/opuscodec/pull/11

iwuq commented 3 weeks ago

@mohsenoid Is there a compiled SO library that supports arm64-v8a available for sharing?

mohsenoid commented 3 weeks ago

@mohsenoid Is there a compiled SO library that supports arm64-v8a available for sharing?

I have an open PR for it https://github.com/martoreto/opuscodec/pull/11.

I also forked this repo and built that SO library a long time ago for my project. You should be able to have it: https://github.com/mohsenoid/opuscodec

iwuq commented 1 week ago

I don't know why, but I can't compile NDK. Can I directly share the AAR file or SO library? Because my project is in its early stages, the workload of replacing the OPUS library is enormous @mohsenoid

mohsenoid commented 1 week ago

I was using this 6 years ago and if I am not wrong I had cloned the repo and generated the AAR locally and then added it to my project.

I can consider releasing my fixed version on maven if it helps others, too.

iwuq commented 6 days ago

If possible, that would be great

mohsenoid commented 6 days ago

If possible, that would be great

NP, will work on that