[osg-users] [GL ES2] Compilation errors on master branch

Robert Osfield robert.osfield at gmail.com
Fri May 8 01:32:20 PDT 2015


HI Jean,

Others have been using GLES2 with OSG svn/trunk without problems so
there must be an issue relating to specific combination of headers.

How did you go about installing your GLES2 version?  What source is it from?

At what point do you get the compile errors you are reporting?

Robert.

On 8 May 2015 at 09:27, Jean Baptiste Poquelin <coudboule at yahoo.fr> wrote:
> Hello,
>
> I used the cmake settings for OpenGL ES 2.0.
>
> On my machine that would be:
> OSG_GL1_AVAILABLE       OFF
> OSG_GL2_AVAILABLE       OFF
> OSG_GL3_AVAILABLE       OFF
> OSG_GLES1_AVAILABLE     OFF
> OSG_GLES2_AVAILABLE     ON
> OPENGL_INCLUDE_DIR /usr/include
> OPENGL_LIBRARY  /usr/lib/x86_64-linux-gnu/libGLESv2.so
> OPENGL_egl_LIBRARY      /usr/lib/x86_64-linux-gnu/libEGL.so
> OSG_GL_DISPLAYLISTS_AVAILABLE   OFF
> SG_GL_MATRICES_AVAILABLE        OFF
> OSG_GL_VERTEX_FUNCS_AVAILABLE   OFF
> OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE     OFF
> OSG_GL_FIXED_FUNCTION_AVAILABLE         OFF
> OSG_CPP_EXCEPTIONS_AVAILABLE    OFF
>
> And I get the following errors:
>
>
> Code:
> In file included from /home/boule/Code/osg/include/osg/GL2Extensions:27:0,
>                  from /home/boule/Code/osg/include/osg/Shader:25,
>                  from /home/boule/Code/osg/include/osg/StateAttribute:20,
>                  from /home/boule/Code/osg/include/osg/AlphaFunc:17,
>                  from /home/boule/Code/osg/src/osg/AlphaFunc.cpp:14:
> /home/boule/Code/osg/build/include/osg/GL:121:31: error: conflicting declaration 'typedef long long int GLint64'
>          typedef long long int GLint64;
>                                ^
> In file included from /home/boule/Code/osg/build/include/osg/GL:107:0,
>                  from /home/boule/Code/osg/include/osg/GL2Extensions:27,
>                  from /home/boule/Code/osg/include/osg/Shader:25,
>                  from /home/boule/Code/osg/include/osg/StateAttribute:20,
>                  from /home/boule/Code/osg/include/osg/AlphaFunc:17,
>                  from /home/boule/Code/osg/src/osg/AlphaFunc.cpp:14:
> /usr/include/GLES2/gl2.h:63:25: error: 'GLint64' has a previous declaration as 'typedef khronos_int64_t GLint64'
>  typedef khronos_int64_t GLint64;
>                          ^
> In file included from /home/boule/Code/osg/include/osg/GL2Extensions:27:0,
>                  from /home/boule/Code/osg/include/osg/Shader:25,
>                  from /home/boule/Code/osg/include/osg/StateAttribute:20,
>                  from /home/boule/Code/osg/include/osg/AlphaFunc:17,
>                  from /home/boule/Code/osg/src/osg/AlphaFunc.cpp:14:
> /home/boule/Code/osg/build/include/osg/GL:122:40: error: conflicting declaration 'typedef long long unsigned int GLuint64'
>          typedef unsigned long long int GLuint64;
>                                         ^
> In file included from /home/boule/Code/osg/build/include/osg/GL:107:0,
>                  from /home/boule/Code/osg/include/osg/GL2Extensions:27,
>                  from /home/boule/Code/osg/include/osg/Shader:25,
>                  from /home/boule/Code/osg/include/osg/StateAttribute:20,
>                  from /home/boule/Code/osg/include/osg/AlphaFunc:17,
>                  from /home/boule/Code/osg/src/osg/AlphaFunc.cpp:14:
> /usr/include/GLES2/gl2.h:64:26: error: 'GLuint64' has a previous declaration as 'typedef khronos_uint64_t GLuint64'
>  typedef khronos_uint64_t GLuint64;
>
>
>
> Can you help me figuring out why? There is no issue on OpenSceneGraph-3.2 branch.
>
> Thank you!
>
> Cheers,
> Jean[/code]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=63666#63666
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list