Configure ERROR in Qt 5.8.0 Win + VC2013 + SSL + OpenSSL
-
Hi,
Which version of OpenSSL are you using ?
-
Hey guys!
I like to move on from Qt 5.7.0 to 5.8.0 and so i did try to compile and test it on windows. So far no problems, some sql tags changed but nothing to over complicated to solve by myself. But when i try to compile with the latest OpenSSL Source i fail at the configure script.
My last attempt was:
configure -mp -static -static-runtime -debug-and-release -prefix "C:\Qt\Qt5.8.0-Static" -platform win32-msvc2013 -ssl -openssl -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -sql-sqlite -sql-odbc -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests
And the configure failed with error output:
ERROR: Feature 'openssl' was enabled, but the pre-condition '!features.securetransport && tests.open ssl' failed. ERROR: Feature 'ssl' was enabled, but the pre-condition 'config.winrt || features.securetransport || features.openssl' failed. Check config.log for details. Qmake failed, return code 3
Back in earlier versions the configure script did not check as far as i can tell and i solved the compiling errors by putting the OpenSSL includes into
\src\qtbase\src\network\openssl
But so far without any change. I did try to solve this by my own and also gave other options a chance like -openssl-linked or -openssl-runtime but the same error occurs. I used OpenSSL 1.1.0e and also an older version 1.1.0c - same errors.
Id does not matter if i compile it static or shared, static was just my last attempt.
Any ideas? Thanks!
@qDebug said in Configure ERROR in Qt 5.8.0 Win + VC2013 + SSL + OpenSSL:
I used OpenSSL 1.1.0e and also an older version 1.1.0c - same errors.
I guess the problem may not be the version of Openssl, because the configure script does not find the files, no matter what version. :(
-
Did you add
-I
and-L
options to configure so it can find the OpenSSL headers and libraries ? -
Did you add
-I
and-L
options to configure so it can find the OpenSSL headers and libraries ? -
Did you check that you are using an OpenSSL version that's also built with VS2013 ?
-
@SGaist Yes. All version of Openssl i tested got VC libs and at least one i used in a VC project and compiled ok.
But why even care if the error messages tells:
> .\openssl.cpp(40) : fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory
If the testing script does not even find the opensslv.h why care about the openssl version at all? From my technical understanding i have to fix this issue first before i may even get into the version. Please correct me if i am wrong.
Thanks!
-
Just saw something, you should either pass your paths with double backslashes or use the forward slash unix notation. Single backslashes are used to escape the character that follows. IIRC, the configure script should be resistant to that but it still worth doing things right.
-
@SGaist Yes. All version of Openssl i tested got VC libs and at least one i used in a VC project and compiled ok.
But why even care if the error messages tells:
> .\openssl.cpp(40) : fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory
If the testing script does not even find the opensslv.h why care about the openssl version at all? From my technical understanding i have to fix this issue first before i may even get into the version. Please correct me if i am wrong.
Thanks!
@qDebug you should use openssl 1.0.2h (or i,j,k) not openssl 1.1.0...... see http://wiki.qt.io/Qt_5.8_Tools_and_Versions
-
Just saw something, you should either pass your paths with double backslashes or use the forward slash unix notation. Single backslashes are used to escape the character that follows. IIRC, the configure script should be resistant to that but it still worth doing things right.
@SGaist did try that of course too. Just now with openssl 1.0.2k like
configure -mp -static -static-runtime -debug-and-release -prefix "C:\Qt\Qt5.8.0-Static" -I "C:\\Qt\\openssl-1.0.2k\\include" -L "C:\\Qt\\openssl-1.0.2k\\lib" -platform win32-msvc2013 -ssl -openssl -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -sql-sqlite -sql-odbc -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests
and
configure -mp -static -static-runtime -debug-and-release -prefix "C:\Qt\Qt5.8.0-Static" -I "C:/Qt/openssl-1.0.2k/include" -L "C:/Qt/openssl-1.0.2k/lib" -platform win32-msvc2013 -ssl -openssl -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -sql-sqlite -sql-odbc -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests
Openssl not found.
@stephane78 since i compiled older versions of Qt (5.7.0) using the same openssl version i thought it should also work with 5.8.0. But right now, i used latest 1.0.2k but since the script won't find any files, the result is the same.
Maybe we can take a shortcut here and some one may be so kind and post how it will work for sure?
Thanks!
-
Well, since there is no simple solution i guess, can anyone tell me please where i can disable the check scrip?
Thanks!