Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Installing Qt 5.0 in rhel 6.4 version
Forum Updated to NodeBB v4.3 + New Features

Installing Qt 5.0 in rhel 6.4 version

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 1.3k Views 1 Watching
  • 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.
  • claysolC Offline
    claysolC Offline
    claysol
    wrote on last edited by
    #1

    Hello Sir,

    Please find the query mentioned below we are not able to install qt 5.0 in
    rhel 6.4 i.e (open source version)

    In file included from openglwindow.cpp:41:

    openglwindow.h:52: error: expected class-name before ‘{’ token

    openglwindow.cpp: In destructor ‘virtual OpenGLWindow::~OpenGLWindow()’:

    openglwindow.cpp:63: warning: possible problem detected in invocation of
    delete operator:

    openglwindow.cpp:63: warning: invalid use of incomplete type ‘struct
    QOpenGLPaintDevice’

    openglwindow.h:47: warning: forward declaration of ‘struct
    QOpenGLPaintDevice’

    openglwindow.cpp:63: note: neither the destructor nor the class-specific
    operator delete will be called, even if they are declared when the class is
    defined.

    openglwindow.cpp: In member function ‘virtual void OpenGLWindow::render()’:

    openglwindow.cpp:78: error: invalid use of incomplete type ‘struct
    QOpenGLPaintDevice’

    openglwindow.h:47: error: forward declaration of ‘struct QOpenGLPaintDevice’

    openglwindow.cpp:80: error: ‘GL_COLOR_BUFFER_BIT’ was not declared in this
    scope

    openglwindow.cpp:80: error: ‘GL_DEPTH_BUFFER_BIT’ was not declared in this
    scope

    openglwindow.cpp:80: error: ‘GL_STENCIL_BUFFER_BIT’ was not declared in
    this scope

    openglwindow.cpp:80: error: ‘glClear’ was not declared in this scope

    openglwindow.cpp:82: error: invalid use of incomplete type ‘struct
    QOpenGLPaintDevice’

    openglwindow.h:47: error: forward declaration of ‘struct QOpenGLPaintDevice’

    openglwindow.cpp:84: error: no matching function for call to
    ‘QPainter::QPainter(QOpenGLPaintDevice*&)’

    ../../../include/QtGui/../../src/gui/painting/qpainter.h:473: note:
    candidates are: QPainter::QPainter(const QPainter&)

    ../../../include/QtGui/../../src/gui/painting/qpainter.h:127:
    note: QPainter::QPainter(QPaintDevice*)

    ../../../include/QtGui/../../src/gui/painting/qpainter.h:126:
    note: QPainter::QPainter()

    openglwindow.cpp: In member function ‘void OpenGLWindow::renderNow()’:

    openglwindow.cpp:137: error: invalid use of incomplete type ‘struct
    QOpenGLContext’

    ../../../include/QtGui/../../src/gui/kernel/qsurfaceformat.h:51: error:
    forward declaration of ‘struct QOpenGLContext’

    openglwindow.cpp:138: error: invalid use of incomplete type ‘struct
    QOpenGLContext’

    ../../../include/QtGui/../../src/gui/kernel/qsurfaceformat.h:51: error:
    forward declaration of ‘struct QOpenGLContext’

    openglwindow.cpp:139: error: invalid use of incomplete type ‘struct
    QOpenGLContext’

    ../../../include/QtGui/../../src/gui/kernel/qsurfaceformat.h:51: error:
    forward declaration of ‘struct QOpenGLContext’

    openglwindow.cpp:144: error: invalid use of incomplete type ‘struct
    QOpenGLContext’

    ../../../include/QtGui/../../src/gui/kernel/qsurfaceformat.h:51: error:
    forward declaration of ‘struct QOpenGLContext’

    openglwindow.cpp:147: error: ‘initializeOpenGLFunctions’ was not declared
    in this scope

    openglwindow.cpp:153: error: invalid use of incomplete type ‘struct
    QOpenGLContext’

    ../../../include/QtGui/../../src/gui/kernel/qsurfaceformat.h:51: error:
    forward declaration of ‘struct QOpenGLContext’

    gmake[4]: *** [.obj/release-shared/openglwindow.o] Error 1

    gmake[4]: Leaving directory
    `/root/Desktop/qt-everywhere-commercial-
    src-5.0.0/qtbase/examples/gui/openglwindow'

    gmake[3]: *** [sub-openglwindow-make_first] Error 2

    gmake[3]: Leaving directory
    `/root/Desktop/qt-everywhere-commercial-src-5.0.0/qtbase/examples/gui'

    gmake[2]: *** [sub-gui-make_first] Error 2

    gmake[2]: Leaving directory
    `/root/Desktop/qt-everywhere-commercial-src-5.0.0/qtbase/examples'

    gmake[1]: *** [sub-examples-make_first] Error 2

    gmake[1]: Leaving directory
    `/root/Desktop/qt-everywhere-commercial-src-5.0.0/qtbase'

    gmake: *** [module-qtbase-make_first] Error 2

    jsulmJ 1 Reply Last reply
    0
    • claysolC claysol

      Hello Sir,

      Please find the query mentioned below we are not able to install qt 5.0 in
      rhel 6.4 i.e (open source version)

      In file included from openglwindow.cpp:41:

      openglwindow.h:52: error: expected class-name before ‘{’ token

      openglwindow.cpp: In destructor ‘virtual OpenGLWindow::~OpenGLWindow()’:

      openglwindow.cpp:63: warning: possible problem detected in invocation of
      delete operator:

      openglwindow.cpp:63: warning: invalid use of incomplete type ‘struct
      QOpenGLPaintDevice’

      openglwindow.h:47: warning: forward declaration of ‘struct
      QOpenGLPaintDevice’

      openglwindow.cpp:63: note: neither the destructor nor the class-specific
      operator delete will be called, even if they are declared when the class is
      defined.

      openglwindow.cpp: In member function ‘virtual void OpenGLWindow::render()’:

      openglwindow.cpp:78: error: invalid use of incomplete type ‘struct
      QOpenGLPaintDevice’

      openglwindow.h:47: error: forward declaration of ‘struct QOpenGLPaintDevice’

      openglwindow.cpp:80: error: ‘GL_COLOR_BUFFER_BIT’ was not declared in this
      scope

      openglwindow.cpp:80: error: ‘GL_DEPTH_BUFFER_BIT’ was not declared in this
      scope

      openglwindow.cpp:80: error: ‘GL_STENCIL_BUFFER_BIT’ was not declared in
      this scope

      openglwindow.cpp:80: error: ‘glClear’ was not declared in this scope

      openglwindow.cpp:82: error: invalid use of incomplete type ‘struct
      QOpenGLPaintDevice’

      openglwindow.h:47: error: forward declaration of ‘struct QOpenGLPaintDevice’

      openglwindow.cpp:84: error: no matching function for call to
      ‘QPainter::QPainter(QOpenGLPaintDevice*&)’

      ../../../include/QtGui/../../src/gui/painting/qpainter.h:473: note:
      candidates are: QPainter::QPainter(const QPainter&)

      ../../../include/QtGui/../../src/gui/painting/qpainter.h:127:
      note: QPainter::QPainter(QPaintDevice*)

      ../../../include/QtGui/../../src/gui/painting/qpainter.h:126:
      note: QPainter::QPainter()

      openglwindow.cpp: In member function ‘void OpenGLWindow::renderNow()’:

      openglwindow.cpp:137: error: invalid use of incomplete type ‘struct
      QOpenGLContext’

      ../../../include/QtGui/../../src/gui/kernel/qsurfaceformat.h:51: error:
      forward declaration of ‘struct QOpenGLContext’

      openglwindow.cpp:138: error: invalid use of incomplete type ‘struct
      QOpenGLContext’

      ../../../include/QtGui/../../src/gui/kernel/qsurfaceformat.h:51: error:
      forward declaration of ‘struct QOpenGLContext’

      openglwindow.cpp:139: error: invalid use of incomplete type ‘struct
      QOpenGLContext’

      ../../../include/QtGui/../../src/gui/kernel/qsurfaceformat.h:51: error:
      forward declaration of ‘struct QOpenGLContext’

      openglwindow.cpp:144: error: invalid use of incomplete type ‘struct
      QOpenGLContext’

      ../../../include/QtGui/../../src/gui/kernel/qsurfaceformat.h:51: error:
      forward declaration of ‘struct QOpenGLContext’

      openglwindow.cpp:147: error: ‘initializeOpenGLFunctions’ was not declared
      in this scope

      openglwindow.cpp:153: error: invalid use of incomplete type ‘struct
      QOpenGLContext’

      ../../../include/QtGui/../../src/gui/kernel/qsurfaceformat.h:51: error:
      forward declaration of ‘struct QOpenGLContext’

      gmake[4]: *** [.obj/release-shared/openglwindow.o] Error 1

      gmake[4]: Leaving directory
      `/root/Desktop/qt-everywhere-commercial-
      src-5.0.0/qtbase/examples/gui/openglwindow'

      gmake[3]: *** [sub-openglwindow-make_first] Error 2

      gmake[3]: Leaving directory
      `/root/Desktop/qt-everywhere-commercial-src-5.0.0/qtbase/examples/gui'

      gmake[2]: *** [sub-gui-make_first] Error 2

      gmake[2]: Leaving directory
      `/root/Desktop/qt-everywhere-commercial-src-5.0.0/qtbase/examples'

      gmake[1]: *** [sub-examples-make_first] Error 2

      gmake[1]: Leaving directory
      `/root/Desktop/qt-everywhere-commercial-src-5.0.0/qtbase'

      gmake: *** [module-qtbase-make_first] Error 2

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @claysol Are you trying to compile Qt itself?

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

      claysolC 1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        If you are compiling
        http://blog.qt.io/blog/2015/06/24/qt-is-coming-to-red-hat-enterprise-linux/
        So 6.4 red hat might be unsupported.
        However, you seems to be missing the openGl headers?
        You could try with -no-opengl option.

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @claysol Are you trying to compile Qt itself?

          claysolC Offline
          claysolC Offline
          claysol
          wrote on last edited by
          #4

          @jsulm
          yes

          jsulmJ 1 Reply Last reply
          0
          • claysolC claysol

            @jsulm
            yes

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @claysol Do you really need to build Qt by yourself?

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

            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