Active Topics

 


Reply
Thread Tools
Posts: 6 | Thanked: 2 times | Joined on Aug 2010
#1
Well first I made this:

1. compiled hellogl_es2(qt example) on sbox-FREMANTLE_ARMEL and run on N900 device with successful results.

2. I try to debug with gdb another program on ARMEL but according with http://wiki.maemo.org/Using_Valgrind..._in_Scratchbox only work on sbox-FREMANTLE_X86 but what is the problem?? on
sbox-FREMANTLE_X86 nothing work with OpenGLES + QT I got the next results after read http://wiki.maemo.org/OpenGL-ES:



[sbox-FREMANTLE_X86: ~/opengl_x86/hellogl_es2] > make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++ -I. -I/targets/FREMANTLE_X86/usr/include/QtCore -I/targets/FREMANTLE_X86/usr/include/QtGui -I/targets/FREMANTLE_X86/usr/include/QtOpenGL -I/targets/FREMANTLE_X86/usr/include -I/targets/FREMANTLE_X86/usr/include/GLES2 -I/usr/X11R6/include -I. -o glwidget.o glwidget.cpp
glwidget.cpp: In member function 'void GLWidget:aintQtLogo()':
glwidget.cpp:213: error: 'glVertexAttribPointer' was not declared in this scope
glwidget.cpp:214: error: 'glEnableVertexAttribArray' was not declared in this scope
glwidget.cpp:218: error: 'glDisableVertexAttribArray' was not declared in this scope
glwidget.cpp: In member function 'void GLWidget:aintTexturedCube()':
glwidget.cpp:242: error: 'glVertexAttribPointer' was not declared in this scope
glwidget.cpp:243: error: 'glEnableVertexAttribArray' was not declared in this scope
glwidget.cpp:284: error: 'glUniform1i' was not declared in this scope
glwidget.cpp:288: error: 'glDisableVertexAttribArray' was not declared in this scope
glwidget.cpp: In function 'void reportCompileErrors(GLuint, const char*)':
glwidget.cpp:296: error: 'glGetShaderiv' was not declared in this scope
glwidget.cpp:303: error: 'glGetShaderInfoLog' was not declared in this scope
glwidget.cpp: In function 'void reportLinkErrors(GLuint, const char*, const char*)':
glwidget.cpp:313: error: 'glGetProgramiv' was not declared in this scope
glwidget.cpp:320: error: 'glGetProgramInfoLog' was not declared in this scope
glwidget.cpp: In member function 'virtual void GLWidget::initializeGL()':
glwidget.cpp:336: error: 'glCreateShader' was not declared in this scope
glwidget.cpp:352: error: 'glShaderSource' was not declared in this scope
glwidget.cpp:353: error: 'glCompileShader' was not declared in this scope
glwidget.cpp:368: error: 'glCreateProgram' was not declared in this scope
glwidget.cpp:369: error: 'glAttachShader' was not declared in this scope
glwidget.cpp:371: error: 'glLinkProgram' was not declared in this scope
glwidget.cpp:374: error: 'glGetAttribLocation' was not declared in this scope
glwidget.cpp:376: error: 'glGetUniformLocation' was not declared in this scope
glwidget.cpp: In member function 'virtual void GLWidget:aintGL()':
glwidget.cpp:465: error: 'glUseProgram' was not declared in this scope
glwidget.cpp:466: error: 'glUniformMatrix4fv' was not declared in this scope
glwidget.cpp:470: error: 'glUseProgram' was not declared in this scope
glwidget.cpp:471: error: 'glUniformMatrix4fv' was not declared in this scope
make: *** [glwidget.o] Error 1
-----------------------------------------------------------

What I should do? I can compile on ARMEL but I can't debug on ARMEL----------I can't compile on X86 but I can debug on X86

Thanks for any help

ruben
 
Posts: 6 | Thanked: 2 times | Joined on Aug 2010
#2
Sorry the about link is: http://wiki.maemo.org/OpenGL-ES
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:34.