created a Bug: https://bugreports.qt.io/browse/QTBUG-59375 - will make it easier to follow
Am 08.03.17 um 16:01 schrieb ekke: > found https://github.com/openssl/openssl/issues/1531 and > https://bruteforce.gr/bypassing-clang-error-unknown-argument.html > and tried to add at first line > ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future > > didn't work - same error > also I guess GCC is used because of > CC=$ANDROID_NDK_ROOT/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc > so the error shouldn't happen ? > > also found https://github.com/android-ndk/ndk/issues/5 mentioning > 1.0.26 added -mandroid, > so I tried downloading 1.0.2f > same error > > I'm lost now - no one out there on OSX already added openssl libs to > Qt 5.8 ? > > thx > ekke > > Am 08.03.17 um 14:44 schrieb ekke: >> because in Forum another dev got it running (under Linux) with >> openssl-1.0.2h >> I downloaded 1.0.2h and tried again >> this time after Configuration I got info to execute make depend >> and also get error: >> ------- >> Configured for android-armv7. >> *** Because of configuration changes, you MUST do the following before >> *** building: >> make depend >> ekkes-MBP:openssl-1.0.2h admin$ make depend >> making depend in crypto... >> clang: error: unknown argument: '-mandroid' >> make[1]: *** [local_depend] Error 1 >> make: *** [depend] Error 1 >> ------- >> any idea what can be wrong ? >> >> this is now a show-stopper for me because in Qt 5.8 openssl is >> required on Android 7 even when only using http >> >> THANKS >> >> Am 08.03.17 um 12:00 schrieb ekke: >>> >>> 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 > > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest -- ekke (ekkehard gentz) independent software architect international development native mobile business apps BlackBerry 10 | Qt Mobile (Android, iOS) workshops - trainings - bootcamps *Qt Champion BlackBerry Elite Developer BlackBerry Platinum Enterprise Partner* max-josefs-platz 30, D-83022 rosenheim, germany mailto:e...@ekkes-corner.org blog: http://ekkes-corner.org apps and more: http://appbus.org twitter: @ekkescorner skype: ekkes-corner LinkedIn: http://linkedin.com/in/ekkehard/ Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest