Compiling and linking OPENSSL For ANDROID in QT
-
Hi
I am new to QT and want to know how can I get Openssl for android.
Is there any precompiled Openssl present which i can use??
I went through this link http://doc.qt.io/qt-5/opensslsupport.html but didn't got much. -
Did you try downloading the openssl and cross compile for Android. It is easy compile and use it.
-
Hi
I am new to QT and want to know how can I get Openssl for android.
Is there any precompiled Openssl present which i can use??
I went through this link http://doc.qt.io/qt-5/opensslsupport.html but didn't got much.I am new to QT and want to know how can I get Openssl for android.
perhaps this helps ? https://github.com/ekke/android-openssl-qt
Is there any precompiled Openssl present which i can use??because of security reasons it's not recommended to use openssl pre-compiled
-
ok @ekkescorner
-
Hi sir
I tried to search some process to compile openssl for android and got this: http://doc.qt.io/archives/qt-5.5/opensslsupport.html
I think i need msys and perl for compilation and just need to perform step 3, 4 and 5 using msys.
-
I am able to create libs using MSYS for openssl 1.0.2p.
I got libcrypto.so and libssl.so in openssl folder after following the process.
I linked these libs in my project and used following code to check:qDebug()<<"**********************************************************"; qDebug()<<"SSLSUPPORT"<<QSslSocket::supportsSsl(); qDebug() << "Run-time Library:\t" << QSslSocket::sslLibraryVersionString(); qDebug() << "Run-time Library Version:\t" << QSslSocket::sslLibraryVersionNumber(); qDebug() << "Build-time Library:\t" << QSslSocket::sslLibraryBuildVersionString(); qDebug()<<"**********************************************************";
and the result was :
D libuntitled2.so: main.cpp:24 (int main(int, char**)): **********************************************************
D libuntitled2.so: main.cpp:25 (int main(int, char**)): SSLSUPPORT true
D libuntitled2.so: main.cpp:26 (int main(int, char**)): Run-time Library: "OpenSSL 1.0.2p 14 Aug 2018"
D libuntitled2.so: main.cpp:27 (int main(int, char**)): Run-time Library Version: 268443919
D libuntitled2.so: main.cpp:28 (int main(int, char**)): Build-time Library: "OpenSSL 1.0.2j 26 Sep 2016"
D libuntitled2.so: main.cpp:29 (int main(int, char**)): **********************************************************
My question is Why i am getting Build time library as "OpenSSL 1.0.2j 26 Sep 2016" because I linked libraries for "OpenSSL 1.0.2p 14 Aug 2018".Second QUESTION is, What is the meaning of this:
W linker : /data/app/org.qtproject.example.untitled2-2/lib/x86/libQt5Network.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example.untitled2-2/lib/x86/libQt5Qml.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example.untitled2-2/lib/x86/libQt5Gui.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example.untitled2-2/lib/x86/libQt5Quick.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example.untitled2-2/lib/x86/libQt5QuickParticles.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/data/org.qtproject.example.untitled2/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unsupported flagsWill this create a problem??
-
It could be that your Qt is picking up the old library from default location. Just check it.
-
Ok Sir.
I ll check for that.