[osg-users] [GL ES2] Compilation errors on master branch
Jean Baptiste Poquelin
coudboule at yahoo.fr
Fri May 8 01:27:14 PDT 2015
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
More information about the osg-users
mailing list