libzmq
libzmq copied to clipboard
help __aarch64_ldadd4_relax not found in Android
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?