Weidong Xu
03/24/2011 10:23 PM
post84239
|
But "qt_qnx_2011-02-24b.zip" package certainly does not have the header or library for QtOpenGL.
I check the source code, in "qnx-build" script there is one "TODO" about the configure for QtOpenGL.
Well, I also tried compiling QtOpenGL with simplegl but it will not work.
BTW, there seems to be a webinar about Qt on QNX on March 31, which saying that it supports OpenGL. Is it the same one
as this?
Thanks.
|
|
|
baris ersezer(deleted)
11/18/2011 5:03 AM
post90185
|
Hello,
I am trying to build Qt with OpenGL ES2.
I have some issues when I use the configure flag -opengl es.
When building modules : QtGui and QtOpenGl I have this :
ntoarmv7-g++ -c -pipe -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fvisibility=hidden -fvisibility
-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_OPENGL_LIB -DQT_NO_USING_NAMESPACE -
DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -
DQT_NO_FREETYPE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/
unsupported/qws/qnx-armv7-g++ -I. -I../../include/QtCore -I../../include/QtGui -I../../include -I../../include/QtOpenGL
-I.rcc/release-shared-emb-armv6 -I../3rdparty/harfbuzz/src -I.moc/release-shared-emb-armv6 -I/opt/qnx650/target/qnx6/usr
/include -o .obj/release-shared-emb-armv6/qgl.o qgl.cpp
In file included from /opt/qnx650/target/qnx6//usr/include/GLES/egl.h:4,
from ../../include/QtGui/private/../../../src/gui/egl/qegl_p.h:64,
from ../../include/QtGui/private/qegl_p.h:1,
from qgl_p.h:68,
from qgl.cpp:68:
/opt/qnx650/target/qnx6//usr/include/GLES/gl.h:729: error: declaration of C function 'void glTexImage2D(GLenum, GLint,
GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*)' conflicts with
/opt/qnx650/target/qnx6//usr/include/GLES2/gl2.h:578: error: previous declaration 'void glTexImage2D(GLenum, GLint,
GLenum, GLsizei, GLsizei, GLint, GLenum, GLenum, const void*)' here
In file included from qgl.cpp:83:
./qglframebufferobject.h:71: error: 'GL_RGBA8' was not declared in this scope
./qglframebufferobject.h:73: error: 'GL_RGBA8' was not declared in this scope
qgl.cpp: In member function 'int QGLContextPrivate::maxTextureSize()':
qgl.cpp:2641: error: 'GL_PROXY_TEXTURE_2D' was not declared in this scope
qgl.cpp:2646: error: 'GL_TEXTURE_WIDTH' was not declared in this scope
qgl.cpp:2646: error: 'glGetTexLevelParameteriv' was not declared in this scope
qgl.cpp: In member function 'void QGLContext::drawTexture(const QPointF&, GLuint, GLenum)':
qgl.cpp:3022: error: 'GL_TEXTURE_WIDTH' was not declared in this scope
qgl.cpp:3022: error: 'glGetTexLevelParameteriv' was not declared in this scope
qgl.cpp:3023: error: 'GL_TEXTURE_HEIGHT' was not declared in this scope
qgl.cpp:3037: error: 'qDrawTextureRect' was not declared in this scope
qgl.cpp: In member function 'virtual void QGLWidget::glDraw()':
qgl.cpp:4453: error: 'glDrawBuffer' was not declared in this scope
qgl.cpp: In member function 'void QGLWidget::qglClearColor(const QColor&) const':
qgl.cpp:4525: error: 'glClearIndex' was not declared in this scope
qgl.cpp:4527: error: 'glClearIndex' was not declared in this scope
qgl.cpp: In function 'void qt_save_gl_state()':
qgl.cpp:4671: error: 'GL_CLIENT_ALL_ATTRIB_BITS' was not declared in this scope
qgl.cpp:4671: error: 'glPushClientAttrib' was not declared in this scope
qgl.cpp:4672: error: 'GL_ALL_ATTRIB_BITS' was not declared in this scope
qgl.cpp:4672: error: 'glPushAttrib' was not declared in this scope
qgl.cpp: In function 'void qt_restore_gl_state()':
qgl.cpp:4698: error: 'glPopAttrib' was not declared in this scope
qgl.cpp:4699: error: 'glPopClientAttrib' was not declared in this scope
qgl.cpp: In member function 'void QGLWidget::renderText(int, int, const QString&, const QFont&, int)':
qgl.cpp:4791: error: 'glOrtho' was not declared in this scope
qgl.cpp: In member function 'void QGLWidget::renderText(double, double, double, const QString&, const QFont&, int)':
qgl.cpp:4863: error: 'glGetDoublev' was not declared in this scope
qgl.cpp:4909: error: 'glOrtho' was not declared in this scope
qgl.cpp:4916: error: 'glTranslated' was not declared in this scope
make: *** [.obj/release-shared-emb-armv6/qgl.o] Error 1
Can someone share with me his libs built with OpenGL es2?
Thanks.
|
|
|