Thread
:
hellogl_es2 on FREMANTLE_X86
View Single Post
vacarobot
2010-08-25 , 17:06
Posts: 6 | Thanked: 2 times | Joined on Aug 2010
#
1
Hello
I'm traying to compile hellogl_es2 example(Qt example + OpenGL ES) with the modifications suggested in
http://wiki.maemo.org/OpenGL-ES
and libgles2-dev (the libs doesn't appear on usr/lib: where are they?)
and I got the next error:
[sbox-FREMANTLE_X86: /home/user/opengl_x86/hellogl_es2] > ls
Makefile bubble.h glwidget.h main.cpp mainwindow.h texture.qrc
bubble.cpp glwidget.cpp hellogl_es2.pro mainwindow.cpp qt.png
[sbox-FREMANTLE_X86: /home/user/opengl_x86/hellogl_es2] > rm -R *.o Makefile
rm: cannot remove `*.o': No such file or directory
[sbox-FREMANTLE_X86: /home/user/opengl_x86/hellogl_es2] > ls
bubble.cpp bubble.h glwidget.cpp glwidget.h hellogl_es2.pro main.cpp mainwindow.cpp mainwindow.h qt.png texture.qrc
[sbox-FREMANTLE_X86: /home/user/opengl_x86/hellogl_es2] > qmake hellogl_es2.pro
[sbox-FREMANTLE_X86: /home/user/opengl_x86/hellogl_es2] > qmake
[sbox-FREMANTLE_X86: /home/user/opengl_x86/hellogl_es2] > make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -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 -I. -I. -o main.o main.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -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 -I. -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
Thanks for any help.
ruben
Quote & Reply
|
vacarobot
View Public Profile
Send a private message to vacarobot
Find all posts by vacarobot