[Interest] Qt 5.8 Android7 openssl make build_libs error OSX

ekke ekke at ekkes-corner.org
Wed Mar 8 12:00:54 CET 2017


yesterday I noticed that there's a difference between Qt 5.7 and Qt 5.8
on Android 7

with 5.7 if only using http app is running well - with 5.8 app crashes
because of missing openssl (some similar reports in forum)

QT 5.8

NDK r10e

OSX 10.11.6

I followed instructions from http://doc.qt.io/qt-5/opensslsupport.html

downloaded 1.0.2, extracted then opened Terminal and did this to set env
vars

---

cd <my-path>/openssl-1.0.2k
export ANDROID_NDK_ROOT=/daten/_android/android-ndk-r10e
CC=$ANDROID_NDK_ROOT/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc
AR=$ANDROID_NDK_ROOT/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ar
ANDROID_DEV=$ANDROID_NDK_ROOT/platforms/android-21/arch-arm/usr

---

discussed this in forum and it seems I have used the correct values for

<VER> <NDK_HOST> <ANDROID-PLATFORM>

as next did the configure:

---

./Configure shared android-armv7

---

is android-armv7 correct or should I use shared android instead ?

Then I edited the Makefile as described to get .so without version number

last step was

make build_libs

there I got unknown argument: '-mandroid' error:

Configured for android-armv7.
ekkes-MBP:openssl-1.0.2k admin$ make build_libs
making all in crypto...
/usr/bin/perl ../util/mkbuildinf.pl "gcc -I. -I.. -I../include  -fPIC
-DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H
-march=armv7-a -mandroid -I/include -B/lib -O3 -fomit-frame-pointer
-Wall -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM
-DSHA256_ASM -DSHA512_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM"
"android-armv7" >buildinf.h
gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -march=armv7-a -mandroid
-I/include -B/lib -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_MONT
-DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM
-DBSAES_ASM -DGHASH_ASM   -c -o cryptlib.o cryptlib.c
clang: error: unknown argument: '-mandroid'
make[1]: *** [cryptlib.o] Error 1
make: *** [build_crypto] Error 1

I'm not an expert on this kind of stuff

thx for any help or tips what went wrong

ekke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170308/db47ba7e/attachment.html>


More information about the Interest mailing list