Discussion:
[vtkusers] visual studio 2008 and v6.0a sdk missing glaux.h
Jon W
2007-10-01 16:17:01 UTC
Permalink
Microsoft compilers prior to Visual Studio 2008 Beta2 installed a
platform sdk with the files used by the vtk build:
gl.h
glaux.h
glu.h

With the Visual Studio 2008 Beta2 installation the glaux.h file is no
longer included which breaks the vtk build with the following error:

\vtk\Rendering\vtkWin32OpenGLRenderWindow.cxx(34) : fatal error C1083:
Cannot open include file: 'GL/glaux.h': No such file or directory

Here is the code in vtkWin32OpenGLRenderWindow.cxx:
#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
# include <GL/glaux.h>
#else
# include "vtkOpenGL.h"
#endif

Has anybody tried building with the Visual Studio 2008 Beta2 compiler?
Are there any plans to work around the missing glaux.h?

Thank you,
Jon
Shekhar Chandra
2007-10-02 02:04:25 UTC
Permalink
Hi Jon,

I believe the Vista SDK (v6.0) no longer supports the GLAUX library, the
earlier Platform SDK do though. You can replicate the same error by
using VC 2005 Express with Vista SDK. Vista SDK Update supports all
Windows and is most likely whats installed with VS 2008?

Which one do you have installed? Not sure what part of VTK uses GLAUX,
apparently this is no longer supported by almost everyone and GLUT
should be used instead. I'm not an expert in this. Is there a way of
using GLUT instead in VTK or by using Defines? As this will cause issues
with Vista and future Windows builds.

Cheers
Shakes
Post by Jon W
Microsoft compilers prior to Visual Studio 2008 Beta2 installed a
gl.h
glaux.h
glu.h
With the Visual Studio 2008 Beta2 installation the glaux.h file is no
Cannot open include file: 'GL/glaux.h': No such file or directory
#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
# include <GL/glaux.h>
#else
# include "vtkOpenGL.h"
#endif
Has anybody tried building with the Visual Studio 2008 Beta2 compiler?
Are there any plans to work around the missing glaux.h?
Thank you,
Jon
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
http://www.vtk.org/mailman/listinfo/vtkusers
Francois Bertel
2007-10-02 03:22:18 UTC
Permalink
Hi,

It sounds totally legacy code to me. There is definitively no code
depending on glaux in VTK. In addition, Rendering/vtkOpenGL.h itself
has a statement for windows. By the way, you did not tell which
version of VTK you are using.

On your local copy of the source tree, in
vtkWin32OpenGLRenderWindow.cxx, remove all the following lines, just
keep # include "vtkOpenGL.h":

Before:

#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
# include <GL/glaux.h>
#else
# include "vtkOpenGL.h"
#endif

After:

# include "vtkOpenGL.h"

Let me know if it works for you. I'll try tomorrow on some Windows
machine (XP SP2+VS7). If it works, I will commit the change and check
for any other Windows version/compiler version combination on the
dashboard (notably VS6 and Borland). Once it is done, we will probably
patch VTK-5.0 branch too.

Regards.
Post by Shekhar Chandra
Hi Jon,
I believe the Vista SDK (v6.0) no longer supports the GLAUX library, the
earlier Platform SDK do though. You can replicate the same error by
using VC 2005 Express with Vista SDK. Vista SDK Update supports all
Windows and is most likely whats installed with VS 2008?
Which one do you have installed? Not sure what part of VTK uses GLAUX,
apparently this is no longer supported by almost everyone and GLUT
should be used instead. I'm not an expert in this. Is there a way of
using GLUT instead in VTK or by using Defines? As this will cause issues
with Vista and future Windows builds.
Cheers
Shakes
Post by Jon W
Microsoft compilers prior to Visual Studio 2008 Beta2 installed a
gl.h
glaux.h
glu.h
With the Visual Studio 2008 Beta2 installation the glaux.h file is no
Cannot open include file: 'GL/glaux.h': No such file or directory
#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
# include <GL/glaux.h>
#else
# include "vtkOpenGL.h"
#endif
Has anybody tried building with the Visual Studio 2008 Beta2 compiler?
Are there any plans to work around the missing glaux.h?
Thank you,
Jon
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
http://www.vtk.org/mailman/listinfo/vtkusers
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
http://www.vtk.org/mailman/listinfo/vtkusers
--
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
| Clifton Park NY 12065, USA
Shekhar Chandra
2007-10-02 03:55:17 UTC
Permalink
Hi Guys,

I used VTK 5.0.3 on Vista Ultimate x64 using VC++ 2005 Express SP1. I
have tried both the Vista SDK 6.0 and Vista SDK Feb Update with the same
results. I had to build it on this system by using the Platform SDK R2
in 32-bit.

I will try out this change to see if it succeeds using Vista SDK.

Cheers
Shakes
Post by Francois Bertel
Hi,
It sounds totally legacy code to me. There is definitively no code
depending on glaux in VTK. In addition, Rendering/vtkOpenGL.h itself
has a statement for windows. By the way, you did not tell which
version of VTK you are using.
On your local copy of the source tree, in
vtkWin32OpenGLRenderWindow.cxx, remove all the following lines, just
#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
# include <GL/glaux.h>
#else
# include "vtkOpenGL.h"
#endif
# include "vtkOpenGL.h"
Let me know if it works for you. I'll try tomorrow on some Windows
machine (XP SP2+VS7). If it works, I will commit the change and check
for any other Windows version/compiler version combination on the
dashboard (notably VS6 and Borland). Once it is done, we will probably
patch VTK-5.0 branch too.
Regards.
Post by Shekhar Chandra
Hi Jon,
I believe the Vista SDK (v6.0) no longer supports the GLAUX library, the
earlier Platform SDK do though. You can replicate the same error by
using VC 2005 Express with Vista SDK. Vista SDK Update supports all
Windows and is most likely whats installed with VS 2008?
Which one do you have installed? Not sure what part of VTK uses GLAUX,
apparently this is no longer supported by almost everyone and GLUT
should be used instead. I'm not an expert in this. Is there a way of
using GLUT instead in VTK or by using Defines? As this will cause issues
with Vista and future Windows builds.
Cheers
Shakes
Post by Jon W
Microsoft compilers prior to Visual Studio 2008 Beta2 installed a
gl.h
glaux.h
glu.h
With the Visual Studio 2008 Beta2 installation the glaux.h file is no
Cannot open include file: 'GL/glaux.h': No such file or directory
#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
# include <GL/glaux.h>
#else
# include "vtkOpenGL.h"
#endif
Has anybody tried building with the Visual Studio 2008 Beta2 compiler?
Are there any plans to work around the missing glaux.h?
Thank you,
Jon
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
http://www.vtk.org/mailman/listinfo/vtkusers
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
http://www.vtk.org/mailman/listinfo/vtkusers
Francois Bertel
2007-10-03 17:02:05 UTC
Permalink
Jon and Shekhar,

I applied the changes on VTK CVS yesterday. Both continuous and nightly dashboards look OK on different windows/compiler combinations.

Did any of you try the change with this Vista SDK (either by using the current VKS CVS or by manually removing the wrong lines in vtkWin32OpenGLRenderWindow.cxx in VTK5.0)?
Post by Francois Bertel
Hi,
It sounds totally legacy code to me. There is definitively no code
depending on glaux in VTK. In addition, Rendering/vtkOpenGL.h itself
has a statement for windows. By the way, you did not tell which
version of VTK you are using.
On your local copy of the source tree, in
vtkWin32OpenGLRenderWindow.cxx, remove all the following lines, just
#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
# include <GL/glaux.h>
#else
# include "vtkOpenGL.h"
#endif
# include "vtkOpenGL.h"
Let me know if it works for you. I'll try tomorrow on some Windows
machine (XP SP2+VS7). If it works, I will commit the change and check
for any other Windows version/compiler version combination on the
dashboard (notably VS6 and Borland). Once it is done, we will probably
patch VTK-5.0 branch too.
Regards.
Post by Shekhar Chandra
Hi Jon,
I believe the Vista SDK (v6.0) no longer supports the GLAUX library, the
earlier Platform SDK do though. You can replicate the same error by
using VC 2005 Express with Vista SDK. Vista SDK Update supports all
Windows and is most likely whats installed with VS 2008?
Which one do you have installed? Not sure what part of VTK uses GLAUX,
apparently this is no longer supported by almost everyone and GLUT
should be used instead. I'm not an expert in this. Is there a way of
using GLUT instead in VTK or by using Defines? As this will cause issues
with Vista and future Windows builds.
Cheers
Shakes
Post by Jon W
Microsoft compilers prior to Visual Studio 2008 Beta2 installed a
gl.h
glaux.h
glu.h
With the Visual Studio 2008 Beta2 installation the glaux.h file is no
Cannot open include file: 'GL/glaux.h': No such file or directory
#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
# include <GL/glaux.h>
#else
# include "vtkOpenGL.h"
#endif
Has anybody tried building with the Visual Studio 2008 Beta2 compiler?
Are there any plans to work around the missing glaux.h?
Thank you,
Jon
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
http://www.vtk.org/mailman/listinfo/vtkusers
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
http://www.vtk.org/mailman/listinfo/vtkusers
--
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
| Clifton Park NY 12065, USA
Jon W
2007-10-03 17:20:31 UTC
Permalink
Francois,

Thank you for committing the fix for 5.x. Do you know what changes
may work best for vtk 4.2.6?

There isn't a vtkOpenGL.h or vtkWindows.h in the 4.2.6 source base,
and the code in vtkWin32OpenGLRenderWindow.cxx looks like:

#if defined(_MSC_VER) || defined (__BORLANDC__)
#include <GL/glaux.h>
#else
#include <GL/gl.h>
#endif

If this is too much of a pain to look at 4.2.6, then I can look into
upgrading to 5.x.

-Jon
Post by Francois Bertel
Jon and Shekhar,
I applied the changes on VTK CVS yesterday. Both continuous and nightly dashboards look OK on different windows/compiler combinations.
Did any of you try the change with this Vista SDK (either by using the current VKS CVS or by manually removing the wrong lines in vtkWin32OpenGLRenderWindow.cxx in VTK5.0)?
Post by Francois Bertel
Hi,
It sounds totally legacy code to me. There is definitively no code
depending on glaux in VTK. In addition, Rendering/vtkOpenGL.h itself
has a statement for windows. By the way, you did not tell which
version of VTK you are using.
On your local copy of the source tree, in
vtkWin32OpenGLRenderWindow.cxx, remove all the following lines, just
#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
# include <GL/glaux.h>
#else
# include "vtkOpenGL.h"
#endif
# include "vtkOpenGL.h"
Let me know if it works for you. I'll try tomorrow on some Windows
machine (XP SP2+VS7). If it works, I will commit the change and check
for any other Windows version/compiler version combination on the
dashboard (notably VS6 and Borland). Once it is done, we will probably
patch VTK-5.0 branch too.
Regards.
Post by Shekhar Chandra
Hi Jon,
I believe the Vista SDK (v6.0) no longer supports the GLAUX library, the
earlier Platform SDK do though. You can replicate the same error by
using VC 2005 Express with Vista SDK. Vista SDK Update supports all
Windows and is most likely whats installed with VS 2008?
Which one do you have installed? Not sure what part of VTK uses GLAUX,
apparently this is no longer supported by almost everyone and GLUT
should be used instead. I'm not an expert in this. Is there a way of
using GLUT instead in VTK or by using Defines? As this will cause issues
with Vista and future Windows builds.
Cheers
Shakes
Post by Jon W
Microsoft compilers prior to Visual Studio 2008 Beta2 installed a
gl.h
glaux.h
glu.h
With the Visual Studio 2008 Beta2 installation the glaux.h file is no
Cannot open include file: 'GL/glaux.h': No such file or directory
#if defined(_MSC_VER) || defined (__BORLANDC__)
# include "vtkWindows.h"
# include <GL/glaux.h>
#else
# include "vtkOpenGL.h"
#endif
Has anybody tried building with the Visual Studio 2008 Beta2 compiler?
Are there any plans to work around the missing glaux.h?
Thank you,
Jon
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
http://www.vtk.org/mailman/listinfo/vtkusers
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
http://www.vtk.org/mailman/listinfo/vtkusers
--
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
| Clifton Park NY 12065, USA
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
http://www.vtk.org/mailman/listinfo/vtkusers
shekharc
2007-10-04 01:09:23 UTC
Permalink
Hi Francois,

I have tried Vista SDK Feb Update with VC++ 2005 Express with the
requested changes and it works fine.

Thanks and Cheers
Shekhar
Post by Francois Bertel
Jon and Shekhar,
I applied the changes on VTK CVS yesterday. Both continuous and nightly dashboards look OK on different windows/compiler combinations.
Did any of you try the change with this Vista SDK (either by using the current VKS CVS or by manually removing the wrong lines in vtkWin32OpenGLRenderWindow.cxx in VTK5.0)?
Loading...