I am new in NDK, I am trying to add openssl to my android project using C, I have looked and tried and I cannot figure out how to linked openssl libraries in Android, another reason I am asking this is because most page and post I've found that talk or say information about it don't say anything for 64 bit arch's(ARM64, MIPS64 and x86_64), only for ARM and X86 arch's, I haven't found any recent post using NDK 10 and 64 bit arch.
I tried this link and I get an error when I try the line:
$ . ./setenv-android.sh
bash: ./setenv-android.sh: line 106: do
the 106 line says:
for host in "linux-x86_64" "linux-x86" "darwin-x86_64" "darwin-x86"
do
if [ -d "$ANDROID_NDK_ROOT/toolchains/$_ANDROID_EABI/prebuilt/$host/bin" ]; then
ANDROID_TOOLCHAIN="$ANDROID_NDK_ROOT/toolchains/$_ANDROID_EABI/prebuilt/$host/bin"
break
fi
done
but I don't know how to fix the code, and it kind of old that post.
Also I tried this link but I couldn't make the step 1. gpg --import # paste PGP public key block on stdin
When I tried it with the corresponding public key block it didn't do something and when trying ./import_openssl.sh import openssl-*.tar.gz
it show an error and ./import_openssl.sh regenerate patches/*.patch
didn't fix it also didn't know how to modify openssl.config
and patches
and also I don't think that work for 64 bit arch.
Can sombody tell me or send me how to linked openssl libraries in NDK for all ABI, I am using Windows 7, Cygwin, and NDK 10d