I am trying to compile OpenSSL 1.1.0(k) for Android ARMV7 on an Ubuntu machine. But I can only compile for targets android, android-armabi, android64(-aarch64).
What I was trying (in openssl-1.1.0k Folder):
export AR=~/android-ndk-r11c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc-ar
export CC=~/android-ndk-r11c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
export LD=~/android-ndk-r11c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld
export RANLIB=~/android-ndk-r11c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc-ranlib
export ANDROIDNDKVER=r11c
export ANDROIDAPI=24
export CROSS_SYSROOT=~/android-ndk-r11c/platforms/android-24/arch-arm64
export ANDROID_DEV=~/android-ndk-r11c/platforms/android-24/arch-arm64/usr/
export SYSROOT=~/android-ndk-r11c/platforms/android-24/arch-arm64/usr/
export PATH=$PATH:~/android-ndk-r11c/platforms/android-24/arch-arm64/usr/
Now when I list targets with
./Configure LIST
Armv7 is not mentioned. I expected a target named android-armv7 like it is when I enter the same commands in a openssl-1.0.2l Directory.
What am I missing ? Or how can I compile Openssl-1.1.0 in a compatible Version for armv7 Android mobiles ?
Also using NDK r18b or android-28 did not do the trick or even to use arch-arm instead of arch-arm64.
Background: OpenSSL 1.1.0 is required by the Framework I am using (Qt 5.13) now and it works on some mobiles. Like the HTC 10 (armv8 64-bit) but on LG K7 (armv7 32-bit) and an Amazon Fire Tablet it is not working.
Thanks,
from Compile OpenSSL 1.1.0 for Android ARMV7
No comments:
Post a Comment