Unsolved Installing Qt 5.0 in rhel 6.4 version
-
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
scopeopenglwindow.cpp:80: error: ‘GL_DEPTH_BUFFER_BIT’ was not declared in this
scopeopenglwindow.cpp:80: error: ‘GL_STENCIL_BUFFER_BIT’ was not declared in
this scopeopenglwindow.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 scopeopenglwindow.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
-
@claysol Are you trying to compile Qt itself?
-
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. -
@jsulm
yes -
@claysol Do you really need to build Qt by yourself?