<div dir="ltr">Hi Bill,<div>I am not sure why you got the link error with your initial combination of parameters.</div><div>VTK_USE_X=ON overrides VTK_OPENGL_HAS_OSMESA=ON so the QT modules should have linked fine. They do link on my machine. Do you have a CMakeCache.txt?</div><div>In that case, there is no offscreen rendering though.</div><div><br></div><div>I did get the link error for VTK_OPENGL_HAS_OSMESA=ON and VTK_USE_X=OFF as <span style="font-size:12.8px">QVTKWidget</span> needs X. I have a merge request that excludes Qt modules if VTK_OPENGL_HAS_OSMESA=ON</div><div><br></div><div>I also got a link error for VTK_OPENGL_HAS_OSMESA=ON and VTK_USE_X=ON because some cxx files in Rendering/OpenGL used code ifdef with VTK_OPENGL_HAS_OSMESA instead of VTK_USE_OSMESA.</div><div><br></div><div>The merge request that fixes these problems is:</div><div><br></div><div><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/637">https://gitlab.kitware.com/vtk/vtk/merge_requests/637</a><br></div><div><br></div><div>All these were parameter combinations not test by our dashboards. When we wanted OSMESA we did VTK_OPENGL_HAS_OSMESA=ON and VTK_USE_X=OFF and we disabled the Qt modules.</div><div><br></div><div>Dan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 4:01 PM, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Bill,<div>I'll look into it.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Dan</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 2:43 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">More information...<br>
<br>
This build uses off screen rendering with os mesa. The system has qt installed.<br>
<br>
Originally I had these settings. Worked OK until the git bisect commit.<br>
VTK_BUILD_ALL_MODULES:BOOL=ON<br>
VTK_USE_OFFSCREEN:BOOL=ON<br>
VTK_OPENGL_HAS_OSMESA:BOOL=ON<br>
VTK_USE_X:BOOL=ON<br>
<br>
Then I changed to the following:<br>
VTK_BUILD_ALL_MODULES:BOOL=OFF<br>
VTK_USE_OFFSCREEN:BOOL=ON<br>
VTK_OPENGL_HAS_OSMESA:BOOL=ON<br>
VTK_USE_X:BOOL=OFF<br>
VTK_Group_Imaging:BOOL=ON<br>
VTK_Group_Qt:BOOL=OFF<br>
VTK_Group_Rendering:BOOL=ON<br>
VTK_Group_StandAlone:BOOL=ON<br>
VTK_Group_Views:BOOL=ON<br>
<br>
So the referenced commit is still a regression, but I can workaround it.<br>
<br>
Bill<br>
<div><div><br>
<br>
<br>
<br>
On Sat, Sep 5, 2015 at 1:11 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>> wrote:<br>
> Folks,<br>
><br>
> git bisect identified this commit<br>
> # first bad commit: [f09903e468b60c20a1e30cb665a5a72a8ab3140f] COMP:<br>
> Add logic to selectively use OpenGL or OSMesa.<br>
> <a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/427" rel="noreferrer" target="_blank">https://gitlab.kitware.com/vtk/vtk/merge_requests/427</a><br>
><br>
> causes these errors in my OSMesa build:<br>
> Linking CXX shared library ../../lib/<a href="http://libvtkGUISupportQt-6.3.so" rel="noreferrer" target="_blank">libvtkGUISupportQt-6.3.so</a><br>
> CMakeFiles/vtkGUISupportQt.dir/QVTKWidget.cxx.o: In function<br>
> `QVTKWidget::x11_setup_window()':<br>
> /home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:736:<br>
> undefined reference to `XGetWindowAttributes'<br>
> /home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:740:<br>
> undefined reference to `XCreateWindow'<br>
> /home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:746:<br>
> undefined reference to `XGetWMColormapWindows'<br>
> /home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:750:<br>
> undefined reference to `XFree'<br>
> /home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:777:<br>
> undefined reference to `XSetWMColormapWindows'<br>
> /home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:780:<br>
> undefined reference to `XFree'<br>
> /home/lorensen/ProjectsGIT/VTKGerrit/GUISupport/Qt/QVTKWidget.cxx:782:<br>
> undefined reference to `XFlush'<br>
> collect2: error: ld returned 1 exit status<br>
> make[3]: *** [lib/libvtkGUISupportQt-6.3.so.1] Error 1<br>
> make[2]: *** [GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/all] Error 2<br>
> make[1]: *** [GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/rule] Error 2<br>
> make: *** [vtkGUISupportQt] Error 2<br>
<br>
<br>
<br>
</div></div><span><font color="#888888">--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>