[mythtv-commits] Ticket #10126: udefined references to opengl while building libmythui
MythTV
noreply at mythtv.org
Mon Oct 31 21:29:49 UTC 2011
#10126: udefined references to opengl while building libmythui
-------------------------------------------------+-------------------------
Reporter: screendisease@… | Owner: markk
Type: Developer Task | Status:
Priority: minor | assigned
Component: MythTV - configure script | Milestone: 0.24.2
Severity: medium | Version: Trunk
Keywords: GL_GLEXT_PROTOTYPES | Head
mythrender_opengl2es.h opengl | Resolution:
| Ticket locked: 0
-------------------------------------------------+-------------------------
Changes (by mdean):
* owner: mdean => markk
* status: new => assigned
* component: Contributed Scripts & Apps => MythTV - configure script
Old description:
> Hi devteam,
>
> in order to build libmythui , i have to add the following
> CXXFFLAGS
>
> -DGL_GLEXT_PROTOTYPES
>
> otherwise the build will fail with undefined references to
>
> mythrender_opengl2es.h: In member function 'virtual void
> MythRenderOpenGL2ES::InitProcs()':
> mythrender_opengl2es.h:27:57: error: 'glCreateShader' was not declared in
> this scope
> mythrender_opengl2es.h:28:57: error: 'glShaderSource' was not declared in
> this scope
> mythrender_opengl2es.h:29:58: error: 'glCompileShader' was not declared
> in this scope
> mythrender_opengl2es.h:30:57: error: 'glAttachShader' was not declared in
> this scope
> mythrender_opengl2es.h:31:56: error: 'glGetShaderiv' was not declared in
> this scope
> mythrender_opengl2es.h:32:61: error: 'glGetShaderInfoLog' was not
> declared in this scope
> mythrender_opengl2es.h:33:57: error: 'glDetachShader' was not declared in
> this scope
> mythrender_opengl2es.h:34:57: error: 'glDeleteShader' was not declared in
> this scope
> mythrender_opengl2es.h:36:59: error: 'glDeleteProgram' was not declared
> in this scope
> mythrender_opengl2es.h:37:59: error: 'glCreateProgram' was not declared
> in this scope
> mythrender_opengl2es.h:38:57: error: 'glLinkProgram' was not declared in
> this scope
> mythrender_opengl2es.h:39:56: error: 'glUseProgram' was not declared in
> this scope
> mythrender_opengl2es.h:40:63: error: 'glGetProgramInfoLog' was not
> declared in this scope
> mythrender_opengl2es.h:41:58: error: 'glGetProgramiv' was not declared in
> this scope
> mythrender_opengl2es.h:43:66: error: 'glGetUniformLocation' was not
> declared in this scope
> mythrender_opengl2es.h:44:57: error: 'glUniform4f' was not declared in
> this scope
> mythrender_opengl2es.h:45:64: error: 'glUniformMatrix4fv' was not
> declared in this scope
> mythrender_opengl2es.h:46:67: error: 'glVertexAttribPointer' was not
> declared in this scope
> mythrender_opengl2es.h:48:76: error: 'glEnableVertexAttribArray' was not
> declared in this scope
> mythrender_opengl2es.h:49:77: error: 'glDisableVertexAttribArray' was not
> declared in this scope
> mythrender_opengl2es.h:50:71: error: 'glBindAttribLocation' was not
> declared in this scope
> mythrender_opengl2es.h:51:67: error: 'glVertexAttrib4f' was not declared
> in this scope
> mythrender_opengl2es.h:53:52: error: 'glGenBuffers' was not declared in
> this scope
>
> have a nice day:-)
New description:
Hi devteam,
in order to build libmythui , i have to add the following
CXXFFLAGS
-DGL_GLEXT_PROTOTYPES
otherwise the build will fail with undefined references to
{{{
mythrender_opengl2es.h: In member function 'virtual void
MythRenderOpenGL2ES::InitProcs()':
mythrender_opengl2es.h:27:57: error: 'glCreateShader' was not declared in
this scope
mythrender_opengl2es.h:28:57: error: 'glShaderSource' was not declared in
this scope
mythrender_opengl2es.h:29:58: error: 'glCompileShader' was not declared in
this scope
mythrender_opengl2es.h:30:57: error: 'glAttachShader' was not declared in
this scope
mythrender_opengl2es.h:31:56: error: 'glGetShaderiv' was not declared in
this scope
mythrender_opengl2es.h:32:61: error: 'glGetShaderInfoLog' was not declared
in this scope
mythrender_opengl2es.h:33:57: error: 'glDetachShader' was not declared in
this scope
mythrender_opengl2es.h:34:57: error: 'glDeleteShader' was not declared in
this scope
mythrender_opengl2es.h:36:59: error: 'glDeleteProgram' was not declared in
this scope
mythrender_opengl2es.h:37:59: error: 'glCreateProgram' was not declared in
this scope
mythrender_opengl2es.h:38:57: error: 'glLinkProgram' was not declared in
this scope
mythrender_opengl2es.h:39:56: error: 'glUseProgram' was not declared in
this scope
mythrender_opengl2es.h:40:63: error: 'glGetProgramInfoLog' was not
declared in this scope
mythrender_opengl2es.h:41:58: error: 'glGetProgramiv' was not declared in
this scope
mythrender_opengl2es.h:43:66: error: 'glGetUniformLocation' was not
declared in this scope
mythrender_opengl2es.h:44:57: error: 'glUniform4f' was not declared in
this scope
mythrender_opengl2es.h:45:64: error: 'glUniformMatrix4fv' was not declared
in this scope
mythrender_opengl2es.h:46:67: error: 'glVertexAttribPointer' was not
declared in this scope
mythrender_opengl2es.h:48:76: error: 'glEnableVertexAttribArray' was not
declared in this scope
mythrender_opengl2es.h:49:77: error: 'glDisableVertexAttribArray' was not
declared in this scope
mythrender_opengl2es.h:50:71: error: 'glBindAttribLocation' was not
declared in this scope
mythrender_opengl2es.h:51:67: error: 'glVertexAttrib4f' was not declared
in this scope
mythrender_opengl2es.h:53:52: error: 'glGenBuffers' was not declared in
this scope
}}}
have a nice day:-)
--
Comment:
Mark, I'm sending this your way since you're the man with the plan for
OpenGL ES.
Not sure if this is something that needs fixing in configure or in the
.pro files, but "MythTV - configure script" is a better fit than
"Contributed Scripts & Apps".
--
Ticket URL: <http://code.mythtv.org/trac/ticket/10126#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list