[vtk-developers] glext.h and glxext.h on OSX

Darren Weber darren.weber.lists at gmail.com
Mon Apr 20 20:39:21 EDT 2009


Hi Francois,

I'm asking for both general recommendation and because some of the VTK-5-4-0
tests failed on my OSX system (see our prior email discussion about that for
the ctest details posted to the experimental board from host
elegans.buckcenter.org).

FYI:

>From macports mesa (7.4) installation of /opt/local/include/GL/glxext.h

/* Header file version number, required by OpenGL ABI for Linux */
/* glxext.h last updated 2008/10/22 */
/* Current version at http://www.opengl.org/registry/ */
#define GLX_GLXEXT_VERSION 21


>From installation of XQuartz 2.3.1 (xorg-server 1.4.2-apple17) into
/usr/X11/include/GL/glxext.h

/* Header file version number, required by OpenGL ABI for Linux */
/* glxext.h last updated 2007/04/21 */
/* Current version at http://www.opengl.org/registry/ */
#define GLX_GLXEXT_VERSION 19


>From apple installation of
/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/GL/glxext.h

/* Header file version number, required by OpenGL ABI for Linux */
/* glxext.h last updated 2007/04/21 */
/* Current version at http://www.opengl.org/registry/ */
#define GLX_GLXEXT_VERSION 19


There is no glxext.h under /System/Library/Frameworks/OpenGL.framework
>From /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glext.h

/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
** Software License B, Version 1.1 (the "License"), the contents of this
** file are subject only to the provisions of the License. You may not use
** this file except in compliance with the License. You may obtain a copy
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
**
** http://oss.sgi.com/projects/FreeB
**
** Note that, as provided in the License, the Software is distributed on an
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
**
** Original Code. The Original Code is: OpenGL Sample Implementation,
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
** Copyright in any portions created by third parties is as indicated
** elsewhere herein. All Rights Reserved.
**
** Additional Notice Provisions: This software was created using the
** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
** not been independently verified as being compliant with the OpenGL(R)
** version 1.2.1 Specification.
*/


Given the above, should I be more specific about how to specify these build
library paths?

Also, once a specific library dependency is selected, how can I determine if
the library can support off-screen rendering, in order to set the cmake
variable VTK_OPENGL_HAS_OSMESA (or should I leave that entirely up to
cmake)?

Thanks again,
Darren






On Mon, Apr 20, 2009 at 5:13 PM, Francois Bertel <
francois.bertel at kitware.com> wrote:

> Hi,
>
> We try to keep glxext.h in VTK up-to-date with the official file from
> opengl.org ( http://www.opengl.org/registry/api/glxext.h )
>
> Are you asking this question because you encounter some error or just
> for a general recommendation?
>
> In the first part of the file, there is something like:
>
> /* glxext.h last updated 2008/10/22 */
> /* Current version at http://www.opengl.org/registry/ */
> #define GLX_GLXEXT_VERSION 21
>
> you can compare this part with the different versions of glxext.h
> provided by your machine and by VTK.
>
> Right now, the version does not matter too much but I recommend to
> point to the one provided with VTK.
>
>
> On Mon, Apr 20, 2009 at 7:28 PM, Darren Weber
> <darren.weber.lists at gmail.com> wrote:
> > Please advise on which headers to use when building VTK-5.4.0 on OSX for
> > glext.h and glxext.h
> >
> > The default cmake settings are:
> > VTK_GLEXT_FILE:FILEPATH=<srcPath>/Utilities/ParseOGLExt/headers/glext.h
> > VTK_GLXEXT_FILE:FILEPATH=<srcPath>/Utilities/ParseOGLExt/headers/glxext.h
> >
> > The following are possible alternatives for glext.h (similarly for
> glxext.h)
> > on an OSX system (10.5.6, with Xcode 3.x, XQuartz, and macports with
> mesa):
> >
> > Apple installations:
> >
> /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glext.h
> > /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/GL/glext.h
> >
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glext.h
> > /Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/GL/glext.h
> > /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glext.h
> >
> > macports installation of mesa:
> > /opt/local/include/GL/glext.h
> >
> > XQuartz installation:
> > /usr/X11/include/GL/glext.h
> >
> > Thanks in advance,
> > Darren
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtk-developers
> >
> >
> >
>
>
>
> --
> François Bertel, PhD  | Kitware Inc. Suite 204
> 1 (518) 371 3971 x113 | 28 Corporate Drive
>                      | Clifton Park NY 12065, USA
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20090420/f0685cc4/attachment.html>


More information about the vtk-developers mailing list