[osg-users] OpenSceneGraph-3.4.0-rc10 tagged

Terry Welsh mogumbo at gmail.com
Sat Aug 8 16:49:20 PDT 2015


Hi Robert,
Hope you're feeling better today. Looks like one of the recent changes
broke the GLES2 build. Regular OpenGL profile still works fine for me.
Afraid I don't have time to work on it today, but maybe I can send in
a fix in a few days. Should be an easy one.

I'm compiling for GLES2 profile with this configuration:

ccmake .. -DOSG_GL1_AVAILABLE=OFF -DOSG_GL2_AVAILABLE=OFF
-DOSG_GL3_AVAILABLE=OFF -DOSG_GLES1_AVAILABLE=OFF
-DOSG_GLES2_AVAILABLE=ON -DOPENGL_HEADER1="#include <GLES2/gl2.h>"
-DOPENGL_HEADER2="#include <GLES2/gl2ext.h>"
-DOPENGL_egl_LIBRARY=/usr/lib64/libEGL.so
-DOSG_GL_DISPLAYLISTS_AVAILABLE=OFF -DOSG_GL_MATRICES_AVAILABLE=OFF
-DOSG_GL_VERTEX_FUNCS_AVAILABLE=OFF
-DOSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE=OFF
-DOSG_GL_FIXED_FUNCTION_AVAILABLE=OFF
-DOSG_CPP_EXCEPTIONS_AVAILABLE=ON -DCMAKE_INSTALL_PREFIX=../../..

And I get these errors during comiple:

In file included from
/home/sdk/src/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:23:0:
/home/terry/sdk/src/OpenSceneGraph/include/osgViewer/api/X11/PixelBufferX11:88:76:
error: ‘GLXFBConfig’ has not been declared
         typedef Pbuffer ( *GLXCreateGLXPbufferSGIX_FuncPtr) (Display
*dpy, GLXFBConfig config, unsigned int, unsigned height, int*
attrib_list);
                                                                            ^
In file included from
/home/terry/sdk/src/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:23:0:
/home/terry/sdk/src/OpenSceneGraph/include/osgViewer/api/X11/PixelBufferX11:91:31:
error: expected identifier before ‘*’ token
         typedef GLXFBConfig ( *GLXGetFBConfigFromVisualSGIX_FuncPtr)
(Display *dpy, XVisualInfo *vis);
                               ^
/home/terry/sdk/src/OpenSceneGraph/include/osgViewer/api/X11/PixelBufferX11:91:101:
error: ISO C++ forbids declaration of ‘GLXFBConfig’ with no type
[-fpermissive]
         typedef GLXFBConfig ( *GLXGetFBConfigFromVisualSGIX_FuncPtr)
(Display *dpy, XVisualInfo *vis);

                              ^
/home/terry/sdk/src/OpenSceneGraph/include/osgViewer/api/X11/PixelBufferX11:91:101:
error: ‘GLXFBConfig’ declared as function returning a function
/home/terry/sdk/src/OpenSceneGraph/include/osgViewer/api/X11/PixelBufferX11:96:9:
error: ‘GLXGetFBConfigFromVisualSGIX_FuncPtr’ does not name a type
         GLXGetFBConfigFromVisualSGIX_FuncPtr _glXGetFBConfigFromVisualSGIX;
         ^
make[2]: *** [src/osgViewer/CMakeFiles/osgViewer.dir/GraphicsWindowX11.o]
Error 1
make[1]: *** [src/osgViewer/CMakeFiles/osgViewer.dir/all] Error 2
make: *** [all] Error 2
[terry at banzai build_gles2]$ gedit
/home/terry/sdk/src/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp
/home/terry/sdk/src/OpenSceneGraph/include/osgViewer/api/X11/PixelBufferX11

--
Terry Welsh
http://www.reallyslick.com



More information about the osg-users mailing list