HI Mathias,

HP-UX is a platform that is very rarely used by members of the OSG
community, so its no great suprise that their might be unresolved
issues.

What version are your headers?

If we need to find an alternative to the #ifndef
GL_ARB_vertex_buffer_object then we'll need to find one that is cross
platform, one has to assume that the code works elsewhere fine, so it
might just be a certain version of HP-UX OpenGL that headers we need
to test for.

I don't have a HP-UX system so I'm afriad you'll need to do most of
the leg work on resolving it.  If we can get it resolved we can
release it with 1.1.1.

Robert.


On 7/26/06, Mathias Froehlich <[EMAIL PROTECTED]> wrote:

Hi,

I have compilation problems with osg-1.0/1.1 on HP-UX, but I am not yet sure
if this is an osg or HP-UX problem.

One of the problems is the way OpenGL extension are handled.
For example

include/osg/BufferObject

contains (more or less) the code

#ifndef GL_ARB_vertex_buffer_object
typedef long GLsizeiptrARB;
typedef long GLintptrARB;
#endif

Now on HP-UX gl.h defines those two typedefs but it does not define
GL_ARB_vertex_buffer_object.
Obviously this leads to a duplicate typedef that falis to compile.

Well, I know that I can expect that all of the ARB_vertex_buffer_object
extension is available in the client library if the macro
GL_ARB_vertex_buffer_object is defined.
But it is not clear to me if I can invert that logic and expect that nothing
of that extension is defined if that macro is not defined.

Is this a problem with osg, that there is _NO_ 'if and only if' connection
between the macro and the typedefs or should I bug HP because of nonstandard
gl headers?

Opinions, or better OpenGL Standard paragaphs to cite? :)
Or is there any other way to to solve that problem in a generic way?

    Greetings

         Mathias

--
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to