android-gpuimage-plus icon indicating copy to clipboard operation
android-gpuimage-plus copied to clipboard

Library for X84 64bit architecture, Google warning

Open nguyenvp08 opened this issue 6 years ago • 9 comments
trafficstars

Hi I'm using the library for image filter, and I see that there is only x86 (32bit) architecture is supported but x86_64 bit is not. And Google will ban the app that not support both architecture as the link below : https://android-developers.googleblog.com/2019/01/get-your-apps-ready-for-64-bit.html.

Can you help provide the x86 64 bit architecture!

nguyenvp08 avatar Mar 06 '19 09:03 nguyenvp08

OK, I will do it recently. Also you can do it yourself, just put the x86_64 libraries(opencv, ffmpeg) between the other archs, and rebuild. If you're not using the recording module, you can also try the min branch. All archs are supported.

wysaid avatar Mar 06 '19 11:03 wysaid

Hi @wysaid, can you help to provide these library cause i'm not confident at pick up the library, maybe something wrong happen (wrong version ?), I think it's easy for you to handle this thing of work, I really appreciate your helpful library.

But btw somehow the library still can be run perfectly on a x86_64 bit CPU Android Emulator, but I see that the library has no x86_64 library folder (only x86 folder), can you help me to explain it ?

nguyenvp08 avatar Mar 06 '19 14:03 nguyenvp08

Did you finally compile .so for x86_64? I also need a copy

zenghao1556 avatar Dec 06 '19 14:12 zenghao1556

Hi @wysaid ,

Please, please, please add this .so file compatible with x86_64

deepakrokz avatar Jan 20 '20 21:01 deepakrokz

https://github.com/wysaid/android-gpuimage-plus/issues/451

wysaid avatar Feb 02 '20 23:02 wysaid

Hi @wysaid , Hope you are doing well! Can you please look into this:

java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.test-zJ3d6mH3S1Q-czUhAsOdpw==/lib/x86/libffmpeg.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23) at java.lang.Runtime.loadLibrary0(Runtime.java:1016) at java.lang.System.loadLibrary(System.java:1669) at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:18) at org.wysaid.nativePort.CGENativeLibrary.(CGENativeLibrary.java:18) at org.wysaid.nativePort.CGENativeLibrary.setLoadImageCallback(CGENativeLibrary.java:76) at com.canlah.MuzibeesApp.onCreate(MuzibeesApp.java:711) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5871) at android.app.ActivityThread.access$1100(ActivityThread.java:199) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

I will be very thankful to you if you can help me with this.

deepakrokz avatar Apr 05 '20 09:04 deepakrokz

Hi @wysaid , Hope you are doing well! Can you please look into this:

java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.test-zJ3d6mH3S1Q-czUhAsOdpw==/lib/x86/libffmpeg.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23) at java.lang.Runtime.loadLibrary0(Runtime.java:1016) at java.lang.System.loadLibrary(System.java:1669) at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:18) at org.wysaid.nativePort.CGENativeLibrary.(CGENativeLibrary.java:18) at org.wysaid.nativePort.CGENativeLibrary.setLoadImageCallback(CGENativeLibrary.java:76) at com.canlah.MuzibeesApp.onCreate(MuzibeesApp.java:711) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5871) at android.app.ActivityThread.access$1100(ActivityThread.java:199) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

I will be very thankful to you if you can help me with this.

It's finding the x86 version of ffmpeg, please check if your package contains that one?

wysaid avatar Apr 06 '20 08:04 wysaid

yes, it has all the required variants of abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'

from here for gpu image and for running external FFMPEG commands for audio operations using this.

Please review once and let me know which one is causing issue and any suggestion for resolving this. Thanks for your prompt response.

deepakrokz avatar Apr 07 '20 18:04 deepakrokz

The all archs are provided.

wysaid avatar Apr 19 '22 06:04 wysaid