Closed siromidz closed 3 years ago
any idea for solving this problem?
Absolutely none. I never seen that. Is that somehow an unclean build or something like that?
It seems you are using NDK 22 when both the download page (https://developer.android.com/ndk/downloads) and my android studio don't offer me any version newer than 21
thank you using NDK21 solved my problem.
hi I have problem when generating signed apk. this is the full error log:
Build command failed. Error while executing process D:\Programs\programming\android\sdk\sdk25.02\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C E:\ics-openvpn-git\ics-openvpn\main.cxx\cmake\uiRelease\arm64-v8a jbcrypto libovpnexec.so openvpn opvpnutil osslspeedtest ovpn3} ninja: Entering directory `E:\ics-openvpn-git\ics-openvpn\main.cxx\cmake\uiRelease\arm64-v8a' [1/10] cmd.exe /C "cd /D E:\ics-openvpn-git\ics-openvpn\main.cxx\cmake\uiRelease\arm64-v8a && D:\Programs\programming\android\sdk\sdk25.02\cmake\3.10.2.4988404\bin\cmake.exe -E make_directory E:/ics-openvpn-git/ics-openvpn/main/src/main/cpp/../../../build/ovpnassets" [2/10] Linking C shared library libosslspeedtest.so FAILED: libosslspeedtest.so cmd.exe /C "cd . && D:\Programs\programming\android\sdk\sdk25.02\ndk\22.0.6917172\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=D:/Programs/programming/android/sdk/sdk25.02/ndk/22.0.6917172/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/Programs/programming/android/sdk/sdk25.02/ndk/22.0.6917172/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -DNDEBUG -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libosslspeedtest.so -o libosslspeedtest.so CMakeFiles/osslspeedtest.dir/opvpnutil/sslspeed.c.o -llog libcrypto.a libssl.a libcrypto.a -latomic -lm && cd ." ld: error: relocation R_AARCH64_ADR_PREL_LO21 cannot be used against symbol poly1305_blocks; recompile with -fPIC
ld: error: relocation R_AARCH64_ADR_PREL_LO21 cannot be used against symbol poly1305_emit; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
ld: error: relocation R_AARCH64_ADR_PREL_LO21 cannot be used against symbol poly1305_emit; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
ld: error: relocation R_AARCH64_ADR_PREL_LO21 cannot be used against symbol poly1305_emit; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC