Yeah, that's a shame. I've resorted to use a linux box to compile openssl 1.0.2j; everything went smoothly and I got my libraries. Then I've modified the .pro file as follows (according also to this <http://stackoverflow.com/a/25177281/2538363>):
LIBS += $$PWD/lib/droid/libcrypto.so $$PWD/lib/droid/libssl.so PRE_TARGETDEPS += $$PWD/lib/droid/libcrypto.a INCLUDEPATH += $$PWD/include/openssl INCLUDEPATH += $$PWD/include/openssl # ADDITIONAL ANDROID SETTING # seems to be not needed #ANDROID_EXTRA_LIBS = $$PWD/lib/droid/libcrypto.so #ANDROID_EXTRA_LIBS = $$PWD/lib/droid/libssl.so I'm just doing a post (application/x-www-form-urlencoded) to a rest service which works fine on Windows (libeay32.dll/ssleay32.dll) and other platforms. Still, on android I got the error (via errorString()): DEB Error string "Error creating SSL context (unsupported protocol)" The same error occurs in both in a 4.4 and in a 6.0 devices. On the 4.4 device, executing the app without the linked SSL lib result in the same error. It's like the application is linking to the built-in openssl library, disregarding my libs. Adding the commented line for extra libs does not change anything. Any clue? Did I miss something? The guy from the linked answer warns that only 0.9.8za worked for him. Is that really true? Thanks in advance, F. On 12 October 2016 at 20:59, Jason H <jh...@gmx.com> wrote: > Unforuntely the instructions http://doc.qt.io/qt-5/opensslsupport.html > don't work for OSX. https://github.com/openssl/openssl/issues/1531 > > > > > Sent: Wednesday, October 12, 2016 at 1:29 PM > > From: "Nuno Santos" <nunosan...@imaginando.pt> > > To: "Jason H" <jh...@gmx.com> > > Cc: "Qt Interest" <interest@qt-project.org> > > Subject: Re: [Interest] Android 7 issues > > > > QtCreator is not currently compatible with Android 7. We must wait for a > fix. > > > > Also, you need to link your own OpenSSL in order to have SSL. > > > > Nuno Santos > > Founder / CEO / CTO > > www.imaginando.pt > > +351 91 621 69 62 > > > > > On 12 Oct 2016, at 18:24, Jason H <jh...@gmx.com> wrote: > > > > > > This message is part FYI, part question. Using Qt 5.6.0 (for now, the > 5.6.2 installer is running) > > > > > > > > > FYI: > > > When I run my app on the device, it doesn't have any network > connectivity. > > > Wifi is connected and working I get a 0 error code (which comes from > the XMLHttpRequest) > > > > > > And in adb logcat, when trying to connect I see: > > > 10-12 13:14:51.349 3197 3398 W libexample.so: (null):0 ((null)): > qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_ctrl > > > 10-12 13:14:51.349 3197 3398 W libexample.so: (null):0 ((null)): > qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_ctrl > > > 10-12 13:14:51.354 3197 3398 W libexample.so: (null):0 ((null)): > qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_ctrl > > > 10-12 13:14:51.354 3197 3398 W libexample.so: (null):0 ((null)): > qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_ctrl > > > 10-12 13:14:51.354 3197 3398 W libexample.so: (null):0 ((null)): > qt.network.ssl: QSslSocket: cannot call unresolved function SSL_ctrl > > > > > > A few minutes later I get an android dialog: > > > """ > > > Detected problems with app native libraries > > > (please consilt log for detail): > > > libQt5Core.so: unauthorized access to libcrypto.so > > > libQt5Core.so: unauthorized access to libssl.so > > > """ > > > > > > It seems that most of these can be fixed by distributing our own > version of OpenSSL. http://doc.qt.io/qt-5/opensslsupport.html > > > > > > Question: > > > But also, in Creator's Application Output tab I get: > > > """ > > > Starting remote process. > > > > > > Unable to start "com.company.example". > > > """ > > > > > > But as evidenced above, it does actually start. What does it take to > get logcat working again? > > > _______________________________________________ > > > Interest mailing list > > > Interest@qt-project.org > > > http://lists.qt-project.org/mailman/listinfo/interest > > > > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest