[osg-users] fails compilation on linux (Ubuntu Feisty Fawn)

Art Tevs stud_info2 at yahoo.de
Tue Sep 11 07:13:01 PDT 2007


Hi Rafa,

yes you are right. 
I attached a patch which should correct this.
Robert, could you please merge it.

Rafa you could just use this file, until it is merged
in.

Cheers, Art


--- Rafa Gaitan <rafa.gaitan at gmail.com> schrieb:

> Hi Robert,
> 
> I'm really curious in the error I'm getting trying
> to compile
> svn version:
>
OSG-SVN/OpenSceneGraph-g++-4.1/include/osg/Uniform:169:
> error:
> 'GL_SAMPLER_1D_ARRAY_EXT' was not declared in this
> scope
>
OSG-SVN/OpenSceneGraph-g++-4.1/include/osg/Uniform:170:
> error:
> 'GL_SAMPLER_2D_ARRAY_EXT' was not declared in this
> scope
>
OSG-SVN/OpenSceneGraph-g++-4.1/include/osg/Uniform:171:
> error:
> 'GL_SAMPLER_1D_ARRAY_SHADOW_EXT' was not declared in
> this scope
>
OSG-SVN/OpenSceneGraph-g++-4.1/include/osg/Uniform:172:
> error:
> 'GL_SAMPLER_2D_ARRAY_SHADOW_EXT' was not declared in
> this scope
> 
> 
> following the headers.. I found that
> GL_SAMPLER_*_ARRAY_EXT
> and the others are defined inside GL2Extensions, but
> only if
> GL_VERSION_2_1 is not defined.  Seeing in the GL
> headers of
> my system I have realized that GL_VERSION_2_1 is
> defined in
> /usr/include/GL/glext.h.. so, those defines are
> never created.
> 
> I thought that if my system support 2.1 version of
> OpenGL the
> defines should be defined there.. but is not my
> case. Has anyone
> report similar problems?. Maybe is required to add
> some
> checks before define this inside Uniform header, but
> I don't
> know how is the better way to solve it.
> 
> Rafa.
> 
> 
> -- 
> Rafael Gaitán Linares
> Instituto de Automática e Informática Industrial 
> http://www.ai2.upv.es
> Ciudad Politécnica de la Innovación
> Universidad Politécnica de Valencia
> > _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 



      __________________________________  
Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GL2Extensions
Type: application/octet-stream
Size: 19000 bytes
Desc: 2620063463-GL2Extensions
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070911/07547114/attachment-0003.obj>


More information about the osg-users mailing list