Configure fails without OSMesa or X11_Xt
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I'm cross-compiling VTK using mxe.cc on a linux host.
There's a native build of the vtkCompileTools target required.
If the host has no X11_Xt or OSMesa (using -DVTK_USE_X=FALSE) installed, the configure fails for the vtkRenderingOpenGL module. But this module is not required for building the compile tools.
I suggest to provide VTK_USE_OSMESA as an option (see attached patch) or have some fallback, like not providing the vtkRenderingOpenGL module. Currently, the offending lines for building the vtkCompileTools are
if(NOT X11_Xt_FOUND) message(FATAL_ERROR "X11_Xt_LIB could not be found. Required for VTK X lib.") endif()
in VTK6.0.0/Rendering/OpenGL/CMakeLists.txt line 302.