MantisBT - VTK
View Issue Details
0010661VTK(No Category)public2010-05-03 13:452013-04-05 19:57
Sebastien Jourdain 
François Bertel 
normalminoralways
closedfixed 
 
 
0010661: Error while compiling with OSMesa (Without X)
Even if we ask in CMake to DO NOT USE X (VTK_USE_X : OFF), at compile time we get the following error :

[ 29%] Building CXX object VTK/Rendering/CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.cxx.o
/home/kitware/Dashboard/MyTests/ParaView/VTK/Rendering/vtkOpenGLExtensionManager.cxx: In member function ‘virtual void (* vtkOpenGLExtensionManager::GetProcAddress(const char*))()’:
/home/kitware/Dashboard/MyTests/ParaView/VTK/Rendering/vtkOpenGLExtensionManager.cxx:270: error: ‘glXGetProcAddressARB’ was not declared in this scope

When we look at the cache we see that VTK_USE_GLX_GET_PROC_ADDRESS_ARB:INTERNAL=1

Therefore, I had to change it to 0 by hand to make it compile...

Pat Marion think this may be a bug in VTK/Rendering/CMakeLists.txt. It does a check if a function exists and caches the result, then it uses the cache result even if you have gone and disabled X.
VTK_USE_X : OFF
VTK_OPENGL_HAS_OSMESA : ON
VTK_USE_MANGLED_MESA : OFF
VTK_USE_OFFSCREEN : ON
OPENGL_INCLUDE_DIR :
OPENGL_gl_LIBRARY :
OPENGL_glu_LIBRARY : /home/kitware/Dashboard/Support/Mesa-7.0.4/lib/libGLU.so
OPENGL_xmesa_INCLUDE_DIR:
OSMESA_INCLUDE_DIR : /home/kitware/Dashboard/Support/Mesa-7.0.4/include
OSMESA_LIBRARY : /home/kitware/Dashboard/Support/Mesa-7.0.4/lib/libOSMesa.so
No tags attached.
Issue History
2010-05-03 13:45Sebastien JourdainNew Issue
2010-05-03 23:47François BertelStatusbacklog => tabled
2010-05-03 23:47François BertelAssigned To => François Bertel
2010-05-07 09:49François BertelNote Added: 0020641
2010-05-07 09:49François BertelStatustabled => @80@
2010-05-07 09:49François BertelResolutionopen => fixed
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 19:57Berk GeveciStatuscustomer review => closed

Notes
(0020641)
François Bertel   
2010-05-07 09:49   
Fixed with the following VTK commits:

abe8e250c1d9fe8ae0111944c5899b708e3d916e

http://vtk.org/gitweb?p=VTK.git;a=commit;h=abe8e250c1d9fe8ae0111944c5899b708e3d916e [^]

and:
87c1c587375ea5bb420e92ce25a34431d3019f96

http://vtk.org/gitweb?p=VTK.git;a=commit;h=87c1c587375ea5bb420e92ce25a34431d3019f96 [^]