[vtkusers] VTK compile error; Solaris 10 SPARC; GCCFSS

Глеб Ситников gleb_sitnikov at mail.ru
Sun Nov 29 07:03:53 EST 2009


Hello!

I am compiling latest VTK source on Solaris 10 10/08 on UltraSPARC III with GCCFSS 4.3.3 and get just the same problem as in
http://www.vtk.org/pipermail/vtkusers/2008-November/098016.html

When I tried to follow the above notes I found that VTK/Rendering/vtkOpenGLExtensionManager.cxx has already been patched and has this:
(line 263)
#ifdef VTK_USE_GLX_GET_PROC_ADDRESS
  // In a perfect world, it should be 
  // return static_cast<vtkOpenGLExtensionManagerFunctionPointer>(glXGetProcAddress(reinterpret_cast<const GLubyte *>(fname)));
  // but glx.h of Solaris 10 has line 209 wrong: it is
  // extern void (*glXGetProcAddress(const GLubyte *procname))();
  // when it should be:
  // extern void (*glXGetProcAddress(const GLubyte *procname))(void);
  return reinterpret_cast<vtkOpenGLExtensionManagerFunctionPointer>(glXGetProcAddress(reinterpret_cast<const GLubyte *>(fname)));
#endif //VTK_USE_GLX_GET_PROC_ADDRESS
#ifdef VTK_USE_GLX_GET_PROC_ADDRESS_ARB
  return static_cast<vtkOpenGLExtensionManagerFunctionPointer>(glXGetProcAddress(reinterpret_cast<const GLubyte *>(fname)));
#endif //VTK_USE_GLX_GET_PROC_ADDRESS_ARB

I also tried to change in /usr/include/GL/glx.h line 209 to
extern void (*glXGetProcAddress(const GLubyte *procname))(void);
but that didnot help either.

Regards,
Gleb.



More information about the vtkusers mailing list