[osg-users] OpenSceneGraph-3.4.0-rc10 tagged
Robert Osfield
robert.osfield at gmail.com
Sun Aug 9 03:13:28 PDT 2015
Hi Terry,
I have just tried out GLES1 and GLES2 profiles and got the same
compile error on my Kubuntu 15.04 system. I have added some #ifdef
guards around the problem code and things now compile cleanly.
I also came across a build error when compiling osgQt due
GLuint64/GLint64 typedef so I've made a tweak to the GL.in so that it
now uses int64_t and uint64_t and this resolves the compile error.
These fixes are now checked into svn/trunk and OSG-3.4 branch.
Robert.
On 9 August 2015 at 00:49, Terry Welsh <mogumbo at gmail.com> wrote:
> 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
> _______________________________________________
> 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