Solved Is this still the way to get SSL working on Android: http://doc.qt.io/qt-5/opensslsupport.html
-
What version of the NDK, SDK, JDK are you using ?
-
@SGaist
I am using NDK android-ndk-r16b
The SDK is for API-27java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)The strange thing is that it seems from the trace that the right include path are there???
-
This post is deleted! -
these is the result from a command to get the used include path
echo | arm-linux-androideabi-gcc -Wp,-v -x c++ - -fsyntax-only ignoring nonexistent directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/include" ignoring nonexistent directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../include/c++/4.9.x" ignoring nonexistent directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../include/c++/4.9.x/arm-linux-androideabi" ignoring nonexistent directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../include/c++/4.9.x/backward" ignoring duplicate directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../lib/gcc/arm-linux-androideabi/4.9.x/include" ignoring nonexistent directory "/tmp/7b21daf2c1357ae66bd1633d4faf8a6d/sysroot/usr/local/include" ignoring duplicate directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../lib/gcc/arm-linux-androideabi/4.9.x/include-fixed" ignoring nonexistent directory "/home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/include" ignoring nonexistent directory "/tmp/7b21daf2c1357ae66bd1633d4faf8a6d/sysroot/usr/include" #include "..." search starts here: #include <...> search starts here: /home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/include /home/wvw/sslbuild/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/include-fixed End of search list. wvw@wvw-Aspire-F5-573G:~/sslbuild/openssl-1.0.2n/include/openssl$
It complains about non existing include path, I will check these later...
-
Some progress.....
I have noticed a difference between NDK16b and e.g. NDK12b
In the later android NDK distributions header files seem te be located in de sysroot directory.
https://developer.android.com/ndk/guides/standalone_toolchain.htmlBuilding using the instructions http://doc.qt.io/qt-5/opensslsupport.html is working for the older NDK not for the newer. I will have to see if I can fix the Setenv_android.sh script to make it work for the newer NDK's too.
-
Android has a tendency to break compatibility from one release of the NDK to the other.
You can find in the Android Getting Started of Qt's documentation the recommended versions of these dependencies.
-
Thank you ! I will if it works with the recommended version.
-
@vvvvv you should use NDK r10e
perhaps this can help you: https://github.com/ekke/android-openssl-qt -
@ekkescorner
It seem to be working now. I have used the NDK10e and SDK version21
Thank you for all,cheers
-
@vvvvv great to hear