Hi Bart, I haven't ever attempt to build against Inventor when using GLES, and my guess is that it won't work without Inventor itself being capable for working with GLES. The most appropriate solution is probably to just disable the Inventor build when GLES is used. The same is likely to apply to the Performer plugin as well. I will have a look at the src/osgPlugins/CMakeLists.txt with a view to adding a compile disable when using GLES.
Robert. On Sat, Dec 11, 2010 at 2:50 PM, Bart Jan Schuit <[email protected]> wrote: > I've got a problem with compiling OSG for GLES1.1 on Ubuntu. I have the > Imagination GLES1.x emulator installed, but I'm having some problems > compiling OSG. I've followed the guidelines on /wiki/Community/OpenGL-ES and > I've succesfully compiled for GLES2.0 before on this very system (also have > Imagination GLES2.0 emulator). > However, with GLES1.x there seems to be a problem with the Inventor or ive > plugin, which seems to be using the regular OpenGL headers for some reason. > Anyway, this is the error I get: > > Code: > > [ 67%] Building CXX object > src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/DrawElementsUShort.o > In file included from /usr/include/Inventor/system/gl-headers.h:40, > from /usr/include/Inventor/system/gl.h:38, > from /usr/include/Inventor/C/glue/gl.h:33, > from /usr/include/Inventor/nodes/SoShaderObject.h:33, > from /usr/include/Inventor/nodes/SoVertexShader.h:27, > from > /home/user/OpenSceneGraph-2.9.9/OpenSceneGraphGLES1/src/osgPlugins/Inventor/ConvertFromInventor.cpp:64: > /usr/include/GL/glext.h:7232: error: expected ‘,’ or ‘...’ before ‘*’ token > /usr/include/GL/glext.h:7233: error: ‘GLclampd’ has not been declared > /usr/include/GL/glext.h:7233: error: ‘GLclampd’ has not been declared > /usr/include/GL/glext.h:7243: error: expected ‘,’ or ‘...’ before ‘*’ token > /usr/include/GL/glext.h:7244: error: ‘GLclampd’ has not been declared > /usr/include/GL/glext.h:7244: error: ‘GLclampd’ has not been declared > In file included from /usr/include/Inventor/system/gl-headers.h:40, > from /usr/include/Inventor/system/gl.h:38, > from /usr/include/Inventor/C/glue/gl.h:33, > from /usr/include/Inventor/nodes/SoShaderObject.h:33, > from /usr/include/Inventor/nodes/SoVertexShader.h:27, > from > /home/user/OpenSceneGraph-2.9.9/OpenSceneGraphGLES1/src/osgPlugins/Inventor/ConvertFromInventor.cpp:64: > /usr/include/GL/glext.h:9550: error: variable or field ‘glDepthBoundsEXT’ > declared void > /usr/include/GL/glext.h:9550: error: ‘GLclampd’ was not declared in this scope > /usr/include/GL/glext.h:9550: error: ‘GLclampd’ was not declared in this scope > /usr/include/GL/glext.h:9552: error: typedef ‘PFNGLDEPTHBOUNDSEXTPROC’ is > initialized (use decltype instead) > /usr/include/GL/glext.h:9552: error: ‘GLclampd’ was not declared in this scope > /usr/include/GL/glext.h:9552: error: ‘GLclampd’ was not declared in this scope > make[2]: *** > [src/osgPlugins/Inventor/CMakeFiles/osgdb_iv.dir/ConvertFromInventor.o] Error > 1 > make[1]: *** [src/osgPlugins/Inventor/CMakeFiles/osgdb_iv.dir/all] Error 2 > > > > Can anyone shed some light on this? I just finished GLES2.0 compiling and > that worked fine, but GLES1.x doesn't seem to work :S. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=34727#34727 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

