Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-58024

Can't configure Qt with openssl when building from source on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.8.0 Alpha
    • Build tools: Other
    • None

      I'm trying to build Qt 5.8 from source but while it seems well configured, the compilation process fails as it can't find opensssl. This is the configure line I'm using:

      configure -confirm-license -recheck -prefix c:\qt\5.8\msvc2013_5_8_static_32 -commercial -debug-and-release -static -static-runtime -nomake examples -nomake tools -nomake tests -opengl dynamic -skip multimedia -skip qt3d -skip qtsensors -skip webengine -openssl-linked -I c:\openssl-lib\include -L c:\openssl-lib\lib OPENSSL_LIBS_DEBUG="ssleay32MTd.lib libeay32MTd.lib" OPENSSL_LIBS_RELEASE="ssleay32MT.lib libeay32MT.lib" -qtnamespace com_imaginando_drc_qt_5_8_32
      

      It seems to be ignoring the -I and -L parameters as it is failing during compilation because it can't find opensll/ssl.h which is there. Analysing the compiler output I can see that the -I and -L are not being passed to the compiler:

      cl -c -FIqt_pch.h -Yuqt_pch.h -Fp.pch\debug\Qt5Networkd_pch.pch -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MTd -D_HAS_EXCEPTIONS=0 -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd..\..\lib\Qt5Networkd.pdb -DUNICODE -DWIN32 -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 -DQT_USE_SYSTEM_PROXIES -DQT_BUILD_NETWORK_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_CORE_LIB -DQT_CORE_LIB -DQT_NO_EXCEPTIONS -I. -I..\3rdparty\zlib -Ikernel -I..\..\include -I..\..\include\QtNetwork -I..\..\include\QtNetwork\5.8.1 -I..\..\include\QtNetwork\5.8.1\QtNetwork -Itmp -I..\..\include\QtCore\5.8.1 -I..\..\include\QtCore\5.8.1\QtCore -I..\..\include\QtCore -I.moc\debug -I..\..\mkspecs\win32-msvc -Fo.obj\debug\ @C:\Users\nsantos\AppData\Local\Temp\qhttpnetworkconnection.obj.8440.141.jom
      qhttpnetworkconnection.cpp
      c:\qt\5.8\src\qtbase\include\qtnetwork\5.8.1\qtnetwork\private\../../../../../src/network/ssl/qsslcontext_openssl_p.h(60): fatal error C1083: Cannot open include file: 'openssl/ssl.h': No such file or directory 
      

        1. config.log
          79 kB
        2. log.txt
          89 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            sinosoidal Nuno Santos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes