Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1302

Cannot build against Qt without SSL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • None
    • 5.12.6
    • PySide
    • None
    • Windows
    • 36c55eb7eb6da1d078d6e143e770015dd4d50645 (qt/qtbase/5.12)

    Description

      Building PySide2 against a custom Qt build without SSL support fails:

      {{[ 64%] Running generator for QtNetwork...}}
      {{...}}
      {{qt.shiboken: (network) ShibokenGenerator::writeMinimalConstructorExpression: Could not find a minimal constructor for type 'const QSslConfiguration &'. This will result in a compilation error.}}
      {{qt.shiboken: (network) ShibokenGenerator::writeMinimalConstructorExpression: Could not find a minimal constructor for type 'QSslConfiguration &'. This will result in a compilation error.}}
      {{qt.shiboken: (network) ShibokenGenerator::writeMinimalConstructorExpression: Could not find a minimal constructor for type 'QSslError'. This will result in a compilation error.}}{{...}}{{cl /TP -DAVOID_PROTECTED_HACK -DNDEBUG -DPYSIDE_QML_SUPPORT=1 -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQtNetwork_EXPORTS -ID:\src\pyside-setup-everywhere-src-5.12.6\sources\pyside2\PySide2\QtNetwork\QtNetwork -ID:\src\pyside-setup-everywhere-src-5.12.6\sources\pyside2\PySide2\QtNetwork -ID:\src\pyside-setup-everywhere-src-5.12.6\pyside3_build\py3.7-qt5.12.8-32bit-release\pyside2\PySide2\QtNetwork -ID:\src\pyside-setup-everywhere-src-5.12.6\sources\pyside2\libpyside -ID:\src\pyside-setup-everywhere-src-5.12.6\pyside3_build\py3.7-qt5.12.8-32bit-release\pyside2\PySide2\QtCore\PySide2\QtCore -ID:\src\pyside-setup-everywhere-src-5.12.6\sources\pyside2\PySide2 -IC:\Qt\QtHe-5.12\include -IC:\Qt\QtHe-5.12\include\QtCore -IC:\Qt\QtHe-5.12\.\mkspecs\win32-msvc -IC:\Qt\QtHe-5.12\include\QtNetwork -ID:\src\pyside-setup-everywhere-src-5.12.6\pyside3_install\py3.7-qt5.12.8-32bit-release\include\shiboken2 -IC:\PROGRA~2\PYTHON~1\include /Zc:wchar_t /GR /EHsc /DNOCOLOR /DWIN32 /D_WINDOWS /D_SCL_SECURE_NO_WARNINGS -DNOMINMAX /MD /O2 /Ob2 /DNDEBUG /FoCMakeFiles\QtNetwork.dir\PySide2\QtNetwork\qnetworkreply_wrapper.cpp.obj /FdCMakeFiles\QtNetwork.dir\ /FS -c D:\src\pyside-setup-everywhere-src-5.12.6\pyside3_build\py3.7-qt5.12.8-32bit-release\pyside2\PySide2\QtNetwork\PySide2\QtNetwork\qnetworkreply_wrapper.cpp}}{{qnetworkreply_wrapper.cpp}}
      {{D:\src\pyside-setup-everywhere-src-5.12.6\pyside3_build\py3.7-qt5.12.8-32bit-release\pyside2\PySide2\QtNetwork\PySide2\QtNetwork\qnetworkreply_wrapper.cpp(781): error C2065: 'SBK_QSSLCONFIGURATION_IDX': undeclared identifier}}
      {{D:\src\pyside-setup-everywhere-src-5.12.6\pyside3_build\py3.7-qt5.12.8-32bit-release\pyside2\PySide2\QtNetwork\PySide2\QtNetwork\qnetworkreply_wrapper.cpp(835): error C2065: 'SBK_QSSLCONFIGURATION_IDX': undeclared identifier}}
      {{D:\src\pyside-setup-everywhere-src-5.12.6\pyside3_build\py3.7-qt5.12.8-32bit-release\pyside2\PySide2\QtNetwork\PySide2\QtNetwork\qnetworkreply_wrapper.cpp(2128): error C2065: 'SBK_QSSLCONFIGURATION_IDX': undeclared identifier}}
      {{D:\src\pyside-setup-everywhere-src-5.12.6\pyside3_build\py3.7-qt5.12.8-32bit-release\pyside2\PySide2\QtNetwork\PySide2\QtNetwork\qnetworkreply_wrapper.cpp(2139): error C2079: 'cppArg0_local' uses undefined class 'QSslConfiguration'}}
      {{D:\src\pyside-setup-everywhere-src-5.12.6\pyside3_build\py3.7-qt5.12.8-32bit-release\pyside2\PySide2\QtNetwork\PySide2\QtNetwork\qnetworkreply_wrapper.cpp(2140): fatal error C1189: #error: ShibokenGenerator::writeMinimalConstructorExpression: Could not find a minimal constructor for type 'const QSslConfiguration &'. This will result in a compilation error.}}
      {{NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~3\2019\PROFES~1\VC\Tools\MSVC\1416~1.270\bin\HostX64\x86\cl.exe' : return code '0x2'}}
      {{Stop.}}
      {{NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.EXE"' : return code '0x2'}}
      {{Stop.}}
      {{NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.EXE"' : return code '0x2'}}
      {{Stop.}}
      {{error: Error compiling pyside2}}
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              schlamar schlamar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes