Hi Stephan,

Thanks, that makes sense.

Suggestion one is a little hard as glew gets upset if it's not put  
together before gl.h etc.

Suggestion 2 & 3 are both viable as a fix.

I'll ping the Glew people about it also. Ultimately I'd like to move  
away from Glew and rely on OSG for that, but I can't right now.

Kind regards,
Stephen.

On Feb 3, 2008, at 6:50 PM, Stephan Huber wrote:

> Hi Stephen,
>
> Stephen Northcott schrieb:
>> So obviously there is a build order / compilation problem for me of
>> some sort. Or I am making a silly mistake somewhere perhaps?
>> Can you shed any light on why SDL, freetype or glew might cause this
>> problem, or anything I should be careful of?
> Your problem is that GLEW defines GL_VERSION_2_0 without defining the
> GL_FLOAT_MAT-stuff like osg does in osg/Uniform. The #define
> GL_VERSION_2_0 in glew prevents the #define-block in osg/Uniform.
>
> I think there are several solutions:
> 1) move the inclusion of glew after the inclusion of osg so that
> osg/uniform is seen first by the compiler
> 2) add the missing defines to glew.h from osg/Uniform
> 3) undefine GL_VERSION_2_0 before you include osg-headers
>
> I would go with solution 2) and report back to the glew-crew, I think
> this is a bug of glew. It says, that it defines GL_VERSION_2_0 but  
> does
> not define all stuff related to OpenGL 2.0.
>
>
> Hope that helps,
> Stephan
>
>
>
>
> _______________________________________________
> 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

Reply via email to