[PyQt] PyQt5 component failing with OpenGL include on windows using pyqtdeplopy-sysroot

Patrick Stinson patrickkidd at gmail.com
Mon Oct 22 22:18:08 BST 2018


It appears as though GLdouble is not defined when building sipQtGuipart0.cpp. I tried rebuilding qt with “-opengl desktop” and “-opengl dynamic” to tweak how the ANGLE headers are included but nothing seems to affect it.

Ideas? (Sysroot.json is pasted below error output)


=========================


        cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -O2  -MT /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -D_UNICODE -DWIN32 -DPy_LIMITED_API=0x03040000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DGL_APICALL= -DEGLAPI= -DNDEBUG -I. -I. -I..\..\..\include\python3.6 -I..\qpy\QtGui -I..\..\..\qt\include -I..\..\..\qt\include\QtGui -I..\..\..\qt\include\QtANGLE -I..\..\..\qt\include\QtCore -Irelease -I..\..\..\qt\mkspecs\win32-msvc -Forelease\ @C:\Users\patrick\AppData\Local\Temp\nmD519.tmp
sipQtGuipart0.cpp
..\qpy\QtGui\qpyopengl_api.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\qpy\QtGui\qpyopengl_api.h(70): error C2143: syntax error: missing ',' before '*'
sipQtGuipart1.cpp
..\qpy\QtGui\qpyopengl_api.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\qpy\QtGui\qpyopengl_api.h(70): error C2143: syntax error: missing ',' before '*'
.\sipQtGuipart1.cpp(7457): error C2039: 'QOpenGLTimeMonitor': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7457): error C2504: 'QOpenGLTimeMonitor': base class undefined
.\sipQtGuipart1.cpp(7503): error C2039: 'QOpenGLTimeMonitor': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7504): error C2614: 'sipQOpenGLTimeMonitor': illegal member initialization: 'QOpenGLTimeMonitor' is not a base or member
.\sipQtGuipart1.cpp(7516): error C2227: left of '->metaObject' must point to class/struct/union/generic type
.\sipQtGuipart1.cpp(7516): error C2227: left of '->dynamicMetaObject' must point to class/struct/union/generic type
.\sipQtGuipart1.cpp(7518): error C3083: 'QOpenGLTimeMonitor': the symbol to the left of a '::' must be a type
.\sipQtGuipart1.cpp(7518): error C2039: 'metaObject': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7523): error C3083: 'QOpenGLTimeMonitor': the symbol to the left of a '::' must be a type
.\sipQtGuipart1.cpp(7523): error C2039: 'qt_metacall': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7535): error C3083: 'QOpenGLTimeMonitor': the symbol to the left of a '::' must be a type
.\sipQtGuipart1.cpp(7535): error C2039: 'qt_metacast': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7546): error C3083: 'QOpenGLTimeMonitor': the symbol to the left of a '::' must be a type
.\sipQtGuipart1.cpp(7546): error C2039: 'event': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7561): error C3083: 'QOpenGLTimeMonitor': the symbol to the left of a '::' must be a type
.\sipQtGuipart1.cpp(7561): error C2039: 'eventFilter': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7577): error C3083: 'QOpenGLTimeMonitor': the symbol to the left of a '::' must be a type
.\sipQtGuipart1.cpp(7577): error C2039: 'timerEvent': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7595): error C3083: 'QOpenGLTimeMonitor': the symbol to the left of a '::' must be a type
.\sipQtGuipart1.cpp(7595): error C2039: 'childEvent': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7613): error C3083: 'QOpenGLTimeMonitor': the symbol to the left of a '::' must be a type
.\sipQtGuipart1.cpp(7613): error C2039: 'customEvent': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7631): error C3083: 'QOpenGLTimeMonitor': the symbol to the left of a '::' must be a type
.\sipQtGuipart1.cpp(7631): error C2039: 'connectNotify': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7649): error C3083: 'QOpenGLTimeMonitor': the symbol to the left of a '::' must be a type
.\sipQtGuipart1.cpp(7649): error C2039: 'disconnectNotify': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(7660): error C2248: 'QObject::sender': cannot access protected member declared in class 'QObject'
..\..\..\qt\include\QtCore/qobject.h(417): note: see declaration of 'QObject::sender'
c:\dev\vendor\sysroot-win-32\qt\include\qtcore\qcoreevent.h(347): note: see declaration of 'QObject'
.\sipQtGuipart1.cpp(7660): error C2352: 'QObject::sender': illegal call of non-static member function
..\..\..\qt\include\QtCore/qobject.h(417): note: see declaration of 'QObject::sender'
.\sipQtGuipart1.cpp(7665): error C2248: 'QObject::receivers': cannot access protected member declared in class 'QObject'
..\..\..\qt\include\QtCore/qobject.h(419): note: see declaration of 'QObject::receivers'
c:\dev\vendor\sysroot-win-32\qt\include\qtcore\qcoreevent.h(347): note: see declaration of 'QObject'
.\sipQtGuipart1.cpp(7665): error C2352: 'QObject::receivers': illegal call of non-static member function
..\..\..\qt\include\QtCore/qobject.h(419): note: see declaration of 'QObject::receivers'
.\sipQtGuipart1.cpp(7670): error C2248: 'QObject::timerEvent': cannot access protected member declared in class 'QObject'
..\..\..\qt\include\QtCore/qobject.h(422): note: see declaration of 'QObject::timerEvent'
c:\dev\vendor\sysroot-win-32\qt\include\qtcore\qcoreevent.h(347): note: see declaration of 'QObject'
.\sipQtGuipart1.cpp(7670): error C2352: 'QObject::timerEvent': illegal call of non-static member function
..\..\..\qt\include\QtCore/qobject.h(422): note: see declaration of 'QObject::timerEvent'
.\sipQtGuipart1.cpp(7675): error C2248: 'QObject::childEvent': cannot access protected member declared in class 'QObject'
..\..\..\qt\include\QtCore/qobject.h(423): note: see declaration of 'QObject::childEvent'
c:\dev\vendor\sysroot-win-32\qt\include\qtcore\qcoreevent.h(347): note: see declaration of 'QObject'
.\sipQtGuipart1.cpp(7675): error C2352: 'QObject::childEvent': illegal call of non-static member function
..\..\..\qt\include\QtCore/qobject.h(423): note: see declaration of 'QObject::childEvent'
.\sipQtGuipart1.cpp(7680): error C2248: 'QObject::customEvent': cannot access protected member declared in class 'QObject'
..\..\..\qt\include\QtCore/qobject.h(424): note: see declaration of 'QObject::customEvent'
c:\dev\vendor\sysroot-win-32\qt\include\qtcore\qcoreevent.h(347): note: see declaration of 'QObject'
.\sipQtGuipart1.cpp(7680): error C2352: 'QObject::customEvent': illegal call of non-static member function
..\..\..\qt\include\QtCore/qobject.h(424): note: see declaration of 'QObject::customEvent'
.\sipQtGuipart1.cpp(7685): error C2248: 'QObject::connectNotify': cannot access protected member declared in class 'QObject'
..\..\..\qt\include\QtCore/qobject.h(426): note: see declaration of 'QObject::connectNotify'
c:\dev\vendor\sysroot-win-32\qt\include\qtcore\qcoreevent.h(347): note: see declaration of 'QObject'
.\sipQtGuipart1.cpp(7685): error C2352: 'QObject::connectNotify': illegal call of non-static member function
..\..\..\qt\include\QtCore/qobject.h(426): note: see declaration of 'QObject::connectNotify'
.\sipQtGuipart1.cpp(7690): error C2248: 'QObject::disconnectNotify': cannot access protected member declared in class 'QObject'
..\..\..\qt\include\QtCore/qobject.h(427): note: see declaration of 'QObject::disconnectNotify'
c:\dev\vendor\sysroot-win-32\qt\include\qtcore\qcoreevent.h(347): note: see declaration of 'QObject'
.\sipQtGuipart1.cpp(7690): error C2352: 'QObject::disconnectNotify': illegal call of non-static member function
..\..\..\qt\include\QtCore/qobject.h(427): note: see declaration of 'QObject::disconnectNotify'
.\sipQtGuipart1.cpp(7695): error C2248: 'QObject::senderSignalIndex': cannot access protected member declared in class 'QObject'
..\..\..\qt\include\QtCore/qobject.h(418): note: see declaration of 'QObject::senderSignalIndex'
c:\dev\vendor\sysroot-win-32\qt\include\qtcore\qcoreevent.h(347): note: see declaration of 'QObject'
.\sipQtGuipart1.cpp(7695): error C2352: 'QObject::senderSignalIndex': illegal call of non-static member function
..\..\..\qt\include\QtCore/qobject.h(418): note: see declaration of 'QObject::senderSignalIndex'
.\sipQtGuipart1.cpp(7700): error C2248: 'QObject::isSignalConnected': cannot access protected member declared in class 'QObject'
..\..\..\qt\include\QtCore/qobject.h(420): note: see declaration of 'QObject::isSignalConnected'
c:\dev\vendor\sysroot-win-32\qt\include\qtcore\qcoreevent.h(347): note: see declaration of 'QObject'
.\sipQtGuipart1.cpp(7700): error C2352: 'QObject::isSignalConnected': illegal call of non-static member function
..\..\..\qt\include\QtCore/qobject.h(420): note: see declaration of 'QObject::isSignalConnected'
sip/QtCore/qobject.sip(611): error C2440: 'static_cast': cannot convert from 'const sipQOpenGLTimeMonitor *' to 'const QObject *'
sip/QtCore/qobject.sip(611): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
sip/QtCore/qobject.sip(611): error C2198: 'pyqt5_get_signal_signature_t': too few arguments for call
.\sipQtGuipart1.cpp(8032): error C2039: 'QOpenGLTimeMonitor': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(8032): error C2065: 'QOpenGLTimeMonitor': undeclared identifier
.\sipQtGuipart1.cpp(8032): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8034): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8036): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8036): error C2227: left of '->setSampleCount' must point to class/struct/union/generic type
.\sipQtGuipart1.cpp(8036): note: type is 'unknown-type'
.\sipQtGuipart1.cpp(8058): error C2039: 'QOpenGLTimeMonitor': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(8058): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
.\sipQtGuipart1.cpp(8058): error C2143: syntax error: missing ';' before '*'
.\sipQtGuipart1.cpp(8058): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8060): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8064): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8064): error C2227: left of '->sampleCount' must point to class/struct/union/generic type
.\sipQtGuipart1.cpp(8064): note: type is 'unknown-type'
.\sipQtGuipart1.cpp(8085): error C2039: 'QOpenGLTimeMonitor': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(8085): error C2065: 'QOpenGLTimeMonitor': undeclared identifier
.\sipQtGuipart1.cpp(8085): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8087): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8091): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8091): error C2227: left of '->create' must point to class/struct/union/generic type
.\sipQtGuipart1.cpp(8091): note: type is 'unknown-type'
.\sipQtGuipart1.cpp(8112): error C2039: 'QOpenGLTimeMonitor': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(8112): error C2065: 'QOpenGLTimeMonitor': undeclared identifier
.\sipQtGuipart1.cpp(8112): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8114): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8116): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8116): error C2227: left of '->destroy' must point to class/struct/union/generic type
.\sipQtGuipart1.cpp(8116): note: type is 'unknown-type'
.\sipQtGuipart1.cpp(8138): error C2039: 'QOpenGLTimeMonitor': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(8138): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
.\sipQtGuipart1.cpp(8138): error C2143: syntax error: missing ';' before '*'
.\sipQtGuipart1.cpp(8138): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8140): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8144): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8144): error C2227: left of '->isCreated' must point to class/struct/union/generic type
.\sipQtGuipart1.cpp(8144): note: type is 'unknown-type'
.\sipQtGuipart1.cpp(8165): error C2039: 'QOpenGLTimeMonitor': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(8165): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
.\sipQtGuipart1.cpp(8165): error C2143: syntax error: missing ';' before '*'
.\sipQtGuipart1.cpp(8165): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8167): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8171): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8171): error C2227: left of '->objectIds' must point to class/struct/union/generic type
.\sipQtGuipart1.cpp(8171): note: type is 'unknown-type'
.\sipQtGuipart1.cpp(8192): error C2039: 'QOpenGLTimeMonitor': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(8192): error C2065: 'QOpenGLTimeMonitor': undeclared identifier
.\sipQtGuipart1.cpp(8192): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8194): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8198): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8198): error C2227: left of '->recordSample' must point to class/struct/union/generic type
.\sipQtGuipart1.cpp(8198): note: type is 'unknown-type'
.\sipQtGuipart1.cpp(8219): error C2039: 'QOpenGLTimeMonitor': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(8219): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
.\sipQtGuipart1.cpp(8219): error C2143: syntax error: missing ';' before '*'
.\sipQtGuipart1.cpp(8219): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8221): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8225): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8225): error C2227: left of '->isResultAvailable' must point to class/struct/union/generic type
.\sipQtGuipart1.cpp(8225): note: type is 'unknown-type'
.\sipQtGuipart1.cpp(8246): error C2039: 'QOpenGLTimeMonitor': is not a member of '`global namespace''
.\sipQtGuipart1.cpp(8246): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
.\sipQtGuipart1.cpp(8246): error C2143: syntax error: missing ';' before '*'
.\sipQtGuipart1.cpp(8246): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8248): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8253): error C2065: 'sipCpp': undeclared identifier
.\sipQtGuipart1.cpp(8253): error C2227: left of '->waitForSamples' must point to class/struct/union/generic type
.\sipQtGuipart1.cpp(8253): fatal error C1003: error count exceeds 100; stopping compilation
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
pyqtdeploy-sysroot: Execution failed: returned exit code 2

C:\dev\vendor>



==========================================================

{
    "Description": "A skeleton sysroot specification.",

    "macos|win#openssl": {
        "macos#source": "openssl-1.0.2n.tar.gz",
        "macos|win#python_source": "Python-3.6.4-patched.tgz",
        "win#source": "openssl-1.1.1.tar.gz"
    },

    "qt5": {
        "ios#qt_dir": "../lib/Qt/5.11.1/ios",
        "ios#ssl": "securetransport",
        "macos|win#ssl": "openssl-linked",
        "macos|win#source": "qt-everywhere-src-5.11.2.tar.xz",
        "macos#configure_options": [
            "-opensource",
            "-confirm-license",
            "-debug-and-release",
            "-nomake", "examples",
            "-nomake", "tests",
            "-no-sql-mysql",
            "-no-sql-psql",
            "-opengl", "desktop"
        ],
        "skip": [
            "qtactiveqt",
            "qtcanvas3d",
            "qtgamepad",
            "qtremoteobjects",
            "qtscript",
            "qtserialbus",
            "qtserialport",
            "qtspeech",
            "qtvirtualkeyboard",
            "qtwayland",
            "qtwebglplugin",
            "qtwebsockets",
            "qtwebengine",
            "qtwebchannel",
            "qtwebview"
         ],
         "static_msvc_runtime": true
    },

    "python": {
        "macos|ios#build_host_from_source": true,
        "build_target_from_source": true,
        "macos|ios|win#source": "Python-3.6.4-patched.tgz",
        "win#build_host_from_source": false
    },

    "sip": {
        "source": "sip-4.19.13.tar.gz"
    },

    "pyqt5": {
        "source": "PyQt5_gpl-5.11.3.tar.gz",
        "ios#disabled_features": [
            "PyQt_Desktop_OpenGL", "PyQt_MacOSXOnly",
            "PyQt_MacCocoaViewContainer", "PyQt_Printer",
            "PyQt_PrintDialog", "PyQt_PrintPreviewDialog",
            "PyQt_PrintPreviewWidget", "PyQt_Process",
            "PyQt_NotBootstrapped"
        ],
        "ios|macos#modules": [
            "QtCore", "QtGui", "QtNetwork", "QtPrintSupport", "QtWidgets",
            "QtMacExtras", "QtPositioning", "QtLocation", "QtQml", "QtQuick", "QtQuickWidgets"
        ],
        "win#modules": [
            "QtCore", "QtGui", "QtNetwork", "QtPrintSupport", "QtWidgets",
            "QtWinExtras", "QtPositioning", "QtLocation", "QtQml", "QtQuick", "QtQuickWidgets"
        ]
    },
    
    "pyqtpurchasing": {
        "source": "PyQtPurchasing_gpl-5.10.1.tar.gz"
    },

    "qscintilla": {
        "source": "QScintilla_gpl-2.10.4.tar.gz"
    }

}




More information about the PyQt mailing list