[osg-users] Call for feedback : glu.h does itcontain_GLUfuncptr?

Andy Skinner Andy.Skinner at mathworks.com
Tue Oct 2 05:57:44 PDT 2007


I'm still building on OSG, but using your typedef got past
Tessellator.cpp and worked.

andy

-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Andy
Skinner
Sent: Tuesday, October 02, 2007 8:51 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Call for feedback : glu.h does
itcontain_GLUfuncptr?

No, only OSX is failing.  I was giving you a variety of inputs from
different machines.  (You were asking for what different systems had,
not just for things that didn't work, right?)  Oh, I see, I mentioned
the failing line.  I just meant to show what the line that fails to
build on Mac looks like after preprocessing on each of these platforms.

OPENGL_INCLUDE_DIR in CMakeCache.txt is
/System/Library/Frameworks/OpenGL.framework.  This is what we want.

It seems to me that not defining the ... would be fine for us, but I'll
try your APIENTRY version.

andy



-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Robert
Osfield
Sent: Tuesday, October 02, 2007 5:46 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Call for feedback : glu.h does it
contain_GLUfuncptr?

Hi Andy,

Exactly what platforms are succeeding and which ones are failing?
>From your below text it seems line OSX, Solaris and Linux are
failing...

The error on the OSX looks like CMake is picking up on the GLX version
of GLU rather than the Apple framework as the relevant code does work
just fine under the Xcode build.

Try opening up ccmake . in the root OpenSceneGraph directory and then
pressing 't' then scrolling down till you see the OPENGL_INCLUDE_DIR.
What does it report?

Robert.

On 10/1/07, Andy Skinner <Andy.Skinner at mathworks.com> wrote:
> Although I sent stuff that started this, let me be specific.  Here are
> maci with the glu.h we use, and a bit about glu.h we don't use.  Here
> are also linux 32 bit and solaris 64 information.  I get the info from
> building Tessellator.i.
>
>
> On our Intel Mac build using CMake, we are getting
> /System/Library/Frameworks/OpenGL.framework/Headers/glu.h
>
> gluTessCallback is declared as:
> extern void gluTessCallback (GLUtesselator* tess, GLenum which, GLvoid
> (*CallBackFunc)());
>
> The line that doesn't compile is:
>     gluTessCallback(_tobj, 100107, (GLvoid (*)(...)) vertexCallback);
>
> I think ... comes from the bit in GLU.
>
>
> ========
>
>
> There is another glu.h in /usr/include/X11R6/GL, but we aren't using
it.
> It defines gluTessCallback as:
> extern void gluTessCallback (GLUtesselator* tess, GLenum which,
> _GLUfuncptr CallBackFunc);
>
> and _GLUfuncptr as:
> /* Internal convenience typedefs */
> #ifdef __cplusplus
> typedef GLvoid (*_GLUfuncptr)();
> #else
> typedef GLvoid (*_GLUfuncptr)(GLvoid);
> #endif
>
>
> ========
>
>
> Our 32-bit linux uses /usr/include/GL/glu.h.
> It declares gluTessCallback as:
> extern void gluTessCallback (GLUtesselator* tess, GLenum which,
> _GLUfuncptr CallBackFunc);
>
> and _GLUfuncptr as:
> typedef void ( * _GLUfuncptr)();
>
> The line that is failing is:
>     gluTessCallback(_tobj, 100107, (GLvoid (*)()) vertexCallback);
>
>
> ========
>
>
> And on Solaris I get /usr/include/GL/glu.h.
> gluTessCallback is:
> extern void gluTessCallback ( GLUtesselator * tess , GLenum which ,
> GLvoid ( * CallBackFunc ) ( ) ) ;
>
> The failing line is:
>  gluTessCallback ( _tobj , 100107 , ( GLvoid ( * ) ( ) )
vertexCallback
> ) ;
>
>
> andy
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
>
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g



More information about the osg-users mailing list