It seems that there is a SUN_OGL_NO_VERTEX_MACROS define that I should set. If I google that, I get a lot of source references, and a few people who had to use it. I'm trying it now. One of them said that Sun's GLU wouldn't work if you compile your code with this define.
Here is one comment: SunOS: OpenGL apps must be compiled with SUN_OGL_NO_VERTEX_MACROS defined so that macros aren't used for OpenGL API functions. This also means that Sun's stock GLUT and GLU libraries won't work with Chromium. After you've produced new GLUT and GLU libraries you may have to edit SunOS.mk and modify your LD_LIBRARY_PATH to select the new libraries. Another: - I had to specify "-DSUN_OGL_NO_VERTEX_MACROS" on the compile line for source files that called OpenGL routines using the scope operator (e.g. "::glColor4fv( p );"). Loosely speaking, SUN implements OpenGl calls indirectly through some sort of table of function pointers (via #define) "for performance reasons". The scope operator "::" says there is a global function to call which is not found and results in a compiler error. The "SUN_OGL_NO_VERTEX_MACROS" macro specifies that the actual OpenGl routines are to be accessed and fixes the problem. The alternative is to remove the scope operator from the OpenGl calls. So they had a problem when the :: was there, and we're having a problem because this isn't a call, but a declaration. I think your approach will resolve it without me having to wonder about side effects to using that define above. thanks andy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Thursday, March 13, 2008 2:34 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Testing of SVN version please On Thu, Mar 13, 2008 at 6:15 PM, Andy Skinner <[EMAIL PROTECTED]> wrote: > I built SceneGraphBuilder.i to get a look at the preprocessed code. > This looks like: > > void ( * sunOglCurPrimTablePtr -> oglColor4f ) ( sunOglCurrentContext , > > GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ; > > There is definitely something whacky there. > > I'll give renaming a try, and try to find out where this is coming from. I'll go ahead an rename the methods, just removing the gl prefix. I'll check in this change once I've got things built. Robert. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org