OSMESA causes link errors in QVTKWidget.cxx
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Configure VTK and then set
VTK_OPENGL_HAS_OSMESA on VTK_USE_X off Module_vtkGUISupportQt on
make causes link errors in QVTKWidget.cxx as this needs X. The error is:
Linking CXX shared library ../../lib/libvtkGUISupportQt-6.3.so
CMakeFiles/vtkGUISupportQt.dir/QVTKWidget.cxx.o: In function
QVTKWidget::x11_setup_window()': /home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:736: undefined reference to
XGetWindowAttributes'
/home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:740:
undefined reference to XCreateWindow' /home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:746: undefined reference to
XGetWMColormapWindows'
/home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:750:
undefined reference to XFree' /home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:777: undefined reference to
XSetWMColormapWindows'
/home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:780:
undefined reference to XFree' /home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:782: undefined reference to
XFlush'