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

Qt 5 build fails in qsggeometry.h if -no-opengl is used in configure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.2
    • Labels:
      None
    • Environment:
      Windows 7 64-bit using Windows SDK 7.1 (MSVC 2010)
    • Commits:
      35989314618c9fc0ef495d2903fb9afda65dcb9d

      Description

      Compilation fails with the below errors when:

      configure -prefix $PWD\qtbase -no-opengl -nomake docs -nomake examples

      is used.

      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(117) : error C2061: syntax error : identifier 'GLenum'
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(118) : error C2146: syntax error : missing ';' before id
      entifier 'drawingMode'
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(118) : error C2433: 'QSGGeometry::GLenum' : 'inline' not
      permitted on data declarations
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(118) : error C4430: missing type specifier - int assumed
      . Note: C++ does not support default-int
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(118) : error C4430: missing type specifier - int assumed
      . Note: C++ does not support default-int
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(118) : warning C4183: 'drawingMode': missing return type
      ; assumed to be a member function returning 'int'
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(194) : error C2065: 'GL_UNSIGNED_INT' : undeclared ident
      ifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(200) : error C2065: 'GL_UNSIGNED_SHORT' : undeclared ide
      ntifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(206) : error C2065: 'GL_UNSIGNED_INT' : undeclared ident
      ifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(212) : error C2065: 'GL_UNSIGNED_SHORT' : undeclared ide
      ntifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(221) : error C2065: 'GL_FLOAT' : undeclared identifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(232) : error C2065: 'GL_FLOAT' : undeclared identifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(235) : error C2065: 'GL_FLOAT' : undeclared identifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(245) : error C2065: 'GL_FLOAT' : undeclared identifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(248) : error C2065: 'GL_UNSIGNED_BYTE' : undeclared iden
      tifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(257) : error C2065: 'GL_FLOAT' : undeclared identifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(268) : error C2065: 'GL_FLOAT' : undeclared identifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(271) : error C2065: 'GL_FLOAT' : undeclared identifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(281) : error C2065: 'GL_FLOAT' : undeclared identifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(284) : error C2065: 'GL_UNSIGNED_BYTE' : undeclared iden
      tifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(290) : error C2065: 'GL_UNSIGNED_SHORT' : undeclared ide
      ntifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(291) : error C2065: 'GL_UNSIGNED_BYTE' : undeclared iden
      tifier
      d:\qt\qt-5.0.0-no-opengl\qtdeclarative\include\qtquick\../../src/quick/scenegrap
      h/coreapi/qsggeometry.h(292) : error C2065: 'GL_UNSIGNED_INT' : undeclared ident
      ifier
      d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
      /src/gui/opengl/qopenglextensions_p.h(77) : error C2504: 'QOpenGLFunctions' : ba
      se class undefined
      d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
      /src/gui/opengl/qopenglextensions_p.h(113) : error C2143: syntax error : missing
      ';' before '*'
      d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
      /src/gui/opengl/qopenglextensions_p.h(113) : error C4430: missing type specifier

      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(113) : error C2061: syntax error : identif
        ier 'GLenum'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(113) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(113) : warning C4183: 'glMapBuffer': missi
        ng return type; assumed to be a member function returning 'int'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(114) : error C2146: syntax error : missing
        ';' before identifier 'glUnmapBuffer'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(114) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(114) : error C2061: syntax error : identif
        ier 'GLenum'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(114) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(114) : warning C4183: 'glUnmapBuffer': mis
        sing return type; assumed to be a member function returning 'int'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(116) : error C2061: syntax error : identif
        ier 'GLint'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(120) : error C2061: syntax error : identif
        ier 'GLenum'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(124) : error C2061: syntax error : identif
        ier 'GLenum'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(127) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(127) : error C2143: syntax error : missing
        ',' before '*'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(78) : error C2065: 'd_ptr' : undeclared id
        entifier
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(78) : error C2065: 'd_ptr' : undeclared id
        entifier
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(127) : error C2065: 'd' : undeclared ident
        ifier
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(133) : error C2504: 'QOpenGLFunctionsPriva
        te' : base class undefined
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(137) : error C2143: syntax error : missing
        ';' before '*'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(137) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(137) : error C2146: syntax error : missing
        ')' before identifier 'MapBuffer'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(137) : error C2146: syntax error : missing
        ';' before identifier 'MapBuffer'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(137) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(137) : error C2059: syntax error : ')'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(137) : error C2061: syntax error : identif
        ier 'GLenum'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(137) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(137) : warning C4183: 'MapBuffer': missing
        return type; assumed to be a member function returning 'int'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(138) : error C2061: syntax error : identif
        ier 'QOPENGLF_APIENTRYP'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(138) : error C2061: syntax error : identif
        ier 'GLenum'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(138) : error C2091: function returns funct
        ion
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(138) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(138) : warning C4183: 'GLboolean': missing
        return type; assumed to be a member function returning 'int'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(139) : error C2146: syntax error : missing
        ')' before identifier 'BlitFramebuffer'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(139) : error C2146: syntax error : missing
        ';' before identifier 'BlitFramebuffer'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(139) : error C2182: 'QOPENGLF_APIENTRYP' :
        illegal use of type 'void'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(139) : error C2059: syntax error : ')'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(139) : error C2061: syntax error : identif
        ier 'GLint'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(141) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(141) : warning C4183: 'BlitFramebuffer': m
        issing return type; assumed to be a member function returning 'int'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(142) : error C2146: syntax error : missing
        ')' before identifier 'RenderbufferStorageMultisample'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(142) : error C2146: syntax error : missing
        ';' before identifier 'RenderbufferStorageMultisample'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(142) : error C2182: 'QOPENGLF_APIENTRYP' :
        illegal use of type 'void'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(142) : error C2086: 'int QOpenGLExtensions
        Private::QOPENGLF_APIENTRYP' : redefinition
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../
        ../../../src/gui/opengl/qopenglextensions_p.h(139) : see declaration of 'QOpenGL
        ExtensionsPrivate::QOPENGLF_APIENTRYP'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(142) : error C2059: syntax error : ')'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(142) : error C2061: syntax error : identif
        ier 'GLenum'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(144) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(144) : warning C4183: 'RenderbufferStorage
        Multisample': missing return type; assumed to be a member function returning 'in
        t'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(145) : error C2146: syntax error : missing
        ')' before identifier 'GetBufferSubData'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(145) : error C2146: syntax error : missing
        ';' before identifier 'GetBufferSubData'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(145) : error C2182: 'QOPENGLF_APIENTRYP' :
        illegal use of type 'void'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(145) : error C2086: 'int QOpenGLExtensions
        Private::QOPENGLF_APIENTRYP' : redefinition
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../
        ../../../src/gui/opengl/qopenglextensions_p.h(139) : see declaration of 'QOpenGL
        ExtensionsPrivate::QOPENGLF_APIENTRYP'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(145) : error C2059: syntax error : ')'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(145) : error C2061: syntax error : identif
        ier 'GLenum'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(145) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(145) : warning C4183: 'GetBufferSubData':
        missing return type; assumed to be a member function returning 'int'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(148) : error C2143: syntax error : missing
        ';' before '*'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(148) : error C2433: 'GLvoid' : 'inline' no
        t permitted on data declarations
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(148) : error C4430: missing type specifier
      • int assumed. Note: C++ does not support default-int
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(148) : error C2065: 'GLenum' : undeclared
        identifier
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(148) : error C2146: syntax error : missing
        ')' before identifier 'target'
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(148) : error C2761: 'int *QOpenGLExtension
        s::glMapBuffer(void)' : member function redeclaration not allowed
        d:\qt\qt-5.0.0-no-opengl\qtbase\include\qtgui\5.0.0\qtgui\private\../../../../..
        /src/gui/opengl/qopenglextensions_p.h(148) : fatal error C1903: unable to recove
        r from previous error(s); stopping compilation

        Attachments

        For Gerrit Dashboard: QTBUG-28849
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            rodal Samuel Rødal
            Reporter:
            qtcomsupport Qt Support
            Votes:
            2 Vote for this issue
            Watchers:
            14 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes