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 1 month ago

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

mohsenoid commented 1 month 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 month 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 month 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 1 month ago

If possible, that would be great

mohsenoid commented 1 month ago

If possible, that would be great

NP, will work on that

iwuq commented 1 month ago

Thank you for your help. I'll be waiting for you publish

iwuq commented 4 weeks ago

@mohsenoid excuse me,Has arm64-v8a been released?

mohsenoid commented 2 weeks ago

I had no time to do this, maybe this weekend if I find some free time.

iwuq commented 2 weeks ago

Okay, I'm sorry to trouble you.

mohsenoid commented 1 week ago

Migrating this old repo to a new Android project setup and creating a publication will likely take some time.

In the meantime, I’ve compiled the library and hope this AAR file will be helpful while I work on publishing it to Maven:

https://file.io/hqTlk6dm9jwV

iwuq commented 5 days ago

Perfect operation, thank you very much!