Error while compiling with OSMesa (Without X)
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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.