libzmq icon indicating copy to clipboard operation
libzmq copied to clipboard

help __aarch64_ldadd4_relax not found in Android

Open mengfanbing2018 opened this issue 2 years ago • 0 comments

I use zeromq in android ndk, using dlopen function, but the problem occurs as below:

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__aarch64_ldadd4_relax" referenced by "/data/app/~~YHS1GPE8zDNpu-WlkVhO5A==/com.xxx.xxx-9buYaMYFvN2FfDX7lD7FCA==/base.apk!/lib/arm64-v8a/libzmq.so"...

I cross compile libzmq for Android arm64 in ubuntu

the compile command is: export ANDROID_NDK_ROOT=xxx/toolchain/android-ndk-r24 export MIN_SDK_VERSION=28 ./build.sh arm64

Is it related with -moutline-atomics? how could I fix the problem?

mengfanbing2018 avatar Jul 02 '22 10:07 mengfanbing2018