[Paraview] Undefined glXGetProcAddressARB

Kent Eschenberg eschenbe at psc.edu
Fri Jan 5 11:49:58 EST 2007


The compile of file VTK/Rendering/vtkOpenGLExtensionManager.cxx fails at line 195 because glXGetProcAddressARB is undefined. A search of CMakeCache.txt for "PROC_ADDRESS" finds

======
VTK_GLX_GET_PROC_ADDRESS_ARB_PROTOTYPE_EXISTS:INTERNAL=TRUE

//Already set VTK_GLX_GET_PROC_ADDRESS_ARB_PROTOTYPE_EXISTS

VTK_GLX_GET_PROC_ADDRESS_ARB_PROTOTYPE_EXISTS_TESTED:INTERNAL=1

VTK_USE_GLX_GET_PROC_ADDRESS_ARB:INTERNAL=1
======

The top of the cxx file mentioned above includes

======
#ifdef VTK_DEFINE_GLX_GET_PROC_ADDRESS_PROTOTYPE
extern "C" vtkglX::__GLXextFuncPtr glXGetProcAddressARB(const GLubyte *);
#endif //VTK_DEFINE_GLX_GET_PROC_ADDRESS_PROTOTYPE
======

and, later, line 195 is inside another ifdef:

======
#ifdef VTK_USE_GLX_GET_PROC_ADDRESS_ARB
  return glXGetProcAddressARB((const GLubyte *)fname);
#endif //VTK_USE_GLX_GET_PROC_ADDRESS_ARB
======

Therefore it looks like cmake set VTK_USE_GLX_GET_PROC_ADDRESS_ARB but not VTK_DEFINE_GLX_GET_PROC_ADDRESS_PROTOTYPE. A few details:

ParaView 2.4.4
Mesa 6.5.2
Pentium 4
gcc 4.1.1
Linux Fedora Core 5

The Mesa includes and libraries include glXGetProcAddressARB.

I could of course change the VTK source code to always define that routine but would like to instead coax cmake to do the right thing. TIA!

Kent
Pittsburgh Supercomputing Center



More information about the ParaView mailing list