Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Configure ERROR in Qt 5.8.0 Win + VC2013 + SSL + OpenSSL
QtWS25 Last Chance

Configure ERROR in Qt 5.8.0 Win + VC2013 + SSL + OpenSSL

Scheduled Pinned Locked Moved Solved General and Desktop
qt5.8.0vc2013sslopensslconfigure
22 Posts 6 Posters 20.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q qDebug
    27 Mar 2017, 22:49

    @SGaist You mean like this: http://stackoverflow.com/questions/24261974/how-to-build-qt5-with-openssl-support ? As i mentioned before, i did try that as well and not only in 5.8.0 it did not work for me, also never had before. Same error(s) as i posted in my first one.

    Have you guys ever tried that in the same configuration as i am or is that just repeating the same advice some one else gave (maybe years?) ago?

    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
    

    ... is fine for 5.7.0. So what exactly changed?

    Are there any proofen working examples for Qt 5.8.0 on Windows using Visual Studio 2013 compiler and latest Openssl?

    J Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 28 Mar 2017, 04:38 last edited by
    #7

    @qDebug Can you show how you pass the paths to header files and libraries?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    Q 1 Reply Last reply 15 Apr 2017, 11:01
    0
    • J jsulm
      28 Mar 2017, 04:38

      @qDebug Can you show how you pass the paths to header files and libraries?

      Q Offline
      Q Offline
      qDebug
      wrote on 15 Apr 2017, 11:01 last edited by qDebug
      #8

      @jsulm Sorry for the delay, i had some vacation :)

      Here we go:

      configure -mp -static -static-runtime -debug-and-release -prefix "C:\Qt\Qt5.8.0-Static" -I "C:\OpenSSL-Win32\include" -L "C:\OpenSSL-Win32\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
      
      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.
      
      Qmake failed, return code 3
      

      config.log:

      + cd /d C:\Qt\Qt5.8.0-Static\Src\qtbase\config.tests\unix\openssl && C:\Qt\Qt5.8.0-Static\Src\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static console" C:/Qt/Qt5.8.0-Static/Src/qtbase/config.tests/unix/openssl
      + cd /d C:\Qt\Qt5.8.0-Static\Src\qtbase\config.tests\unix\openssl && set MAKEFLAGS=& nmake clean && set MAKEFLAGS=& nmake
      
      > .\openssl.cpp(40) : fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory
      > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.EXE"' : return code '0x2'
      > Stop
      
      test config.network.tests.openssl FAILED
      

      I just believe there is a bug in 5.8.0. Because in my include path there is a openssl/opensslv.h to be exact "C:\OpenSSL-Win32\include\openssl\opensslv.h" and i did copy the files to "C:\Qt\Qt5.8.0-Static\Src\qtbase\config.tests\unix\openssl" - same result. Why is there a config test for Unix on Windows anyways?

      As i mentioned before: the -I and -L params never worked for me on Windows + Visual Studio compiler before, i posted my workaround above.

      Is here some one who actually did compile 5.8.0 on Win + VC 2013 before, shared or static?

      Thanks!

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 15 Apr 2017, 17:14 last edited by
        #9

        Hi,

        Which version of OpenSSL are you using ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • Q qDebug
          24 Mar 2017, 00:52

          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!

          Q Offline
          Q Offline
          qDebug
          wrote on 15 Apr 2017, 19:45 last edited by qDebug
          #10

          @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. :(

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 17 Apr 2017, 20:20 last edited by
            #11

            Did you add -I and -L options to configure so it can find the OpenSSL headers and libraries ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            Q 1 Reply Last reply 18 Apr 2017, 02:21
            0
            • S SGaist
              17 Apr 2017, 20:20

              Did you add -I and -L options to configure so it can find the OpenSSL headers and libraries ?

              Q Offline
              Q Offline
              qDebug
              wrote on 18 Apr 2017, 02:21 last edited by
              #12

              @SGaist Yes.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 18 Apr 2017, 21:28 last edited by
                #13

                Did you check that you are using an OpenSSL version that's also built with VS2013 ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                Q 1 Reply Last reply 19 Apr 2017, 02:53
                0
                • S SGaist
                  18 Apr 2017, 21:28

                  Did you check that you are using an OpenSSL version that's also built with VS2013 ?

                  Q Offline
                  Q Offline
                  qDebug
                  wrote on 19 Apr 2017, 02:53 last edited by qDebug
                  #14

                  @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!

                  S 1 Reply Last reply 19 Apr 2017, 08:11
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 19 Apr 2017, 07:24 last edited by
                    #15

                    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.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    Q 1 Reply Last reply 19 Apr 2017, 09:38
                    0
                    • Q qDebug
                      19 Apr 2017, 02:53

                      @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!

                      S Offline
                      S Offline
                      stephane78
                      wrote on 19 Apr 2017, 08:11 last edited by
                      #16

                      @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

                      1 Reply Last reply
                      0
                      • S SGaist
                        19 Apr 2017, 07:24

                        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.

                        Q Offline
                        Q Offline
                        qDebug
                        wrote on 19 Apr 2017, 09:38 last edited by qDebug
                        #17

                        @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!

                        1 Reply Last reply
                        0
                        • Q Offline
                          Q Offline
                          qDebug
                          wrote on 21 Apr 2017, 19:28 last edited by
                          #18

                          Well, since there is no simple solution i guess, can anyone tell me please where i can disable the check scrip?

                          Thanks!

                          J 1 Reply Last reply 24 Apr 2017, 05:29
                          0
                          • Q qDebug
                            21 Apr 2017, 19:28

                            Well, since there is no simple solution i guess, can anyone tell me please where i can disable the check scrip?

                            Thanks!

                            J Offline
                            J Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 24 Apr 2017, 05:29 last edited by
                            #19

                            @qDebug Just don't pass -ssl -openssl to configure?

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            Q 1 Reply Last reply 24 Apr 2017, 10:33
                            0
                            • J jsulm
                              24 Apr 2017, 05:29

                              @qDebug Just don't pass -ssl -openssl to configure?

                              Q Offline
                              Q Offline
                              qDebug
                              wrote on 24 Apr 2017, 10:33 last edited by
                              #20

                              @jsulm I did not exactly mention it before but i really need ssl and openssl support (-;

                              1 Reply Last reply
                              0
                              • K Offline
                                K Offline
                                kfrosty
                                wrote on 9 May 2017, 12:34 last edited by
                                #21

                                Deleting the config.cache file solved it for me.

                                Q 1 Reply Last reply 11 May 2017, 00:04
                                5
                                • K kfrosty
                                  9 May 2017, 12:34

                                  Deleting the config.cache file solved it for me.

                                  Q Offline
                                  Q Offline
                                  qDebug
                                  wrote on 11 May 2017, 00:04 last edited by
                                  #22

                                  @kfrosty Thank you! Did work for me too! :)

                                  1 Reply Last reply
                                  0

                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Search
                                  • Get Qt Extensions
                                  • Unsolved