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

Francois Bertel francois.bertel at kitware.com
Sun Nov 29 15:49:25 EST 2009


Hello Gleb,

It is not clear to me what you mean by "latest VTK source". Is it the
source package for release 5.4.2? Is it the 5.4 release branch on the
CVS repository? Is the main branch (head) of the CVS repository?

Regards.

2009/11/29 Глеб Ситников <gleb_sitnikov at mail.ru>:
> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> 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



More information about the vtkusers mailing list