[vtk-developers] OSMesa regression

Dan Lipsa dan.lipsa at kitware.com
Tue Sep 8 13:27:51 EDT 2015


Hi Bill,
I am not sure why you got the link error with your initial combination of
parameters.
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?
In that case, there is no offscreen rendering though.

I did get the link error for VTK_OPENGL_HAS_OSMESA=ON and VTK_USE_X=OFF as
QVTKWidget needs X. I have a merge request that excludes Qt modules
if VTK_OPENGL_HAS_OSMESA=ON

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.

The merge request that fixes these problems is:

https://gitlab.kitware.com/vtk/vtk/merge_requests/637

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.

Dan


On Mon, Sep 7, 2015 at 4:01 PM, Dan Lipsa <dan.lipsa at kitware.com> wrote:

> Hi Bill,
> I'll look into it.
>
> Dan
>
>
> On Mon, Sep 7, 2015 at 2:43 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>
>> More information...
>>
>> This build uses off screen rendering with os mesa. The system has qt
>> installed.
>>
>> Originally I had these settings. Worked OK until the git bisect commit.
>> VTK_BUILD_ALL_MODULES:BOOL=ON
>> VTK_USE_OFFSCREEN:BOOL=ON
>> VTK_OPENGL_HAS_OSMESA:BOOL=ON
>> VTK_USE_X:BOOL=ON
>>
>> Then I changed to the following:
>> VTK_BUILD_ALL_MODULES:BOOL=OFF
>> VTK_USE_OFFSCREEN:BOOL=ON
>> VTK_OPENGL_HAS_OSMESA:BOOL=ON
>> VTK_USE_X:BOOL=OFF
>> VTK_Group_Imaging:BOOL=ON
>> VTK_Group_Qt:BOOL=OFF
>> VTK_Group_Rendering:BOOL=ON
>> VTK_Group_StandAlone:BOOL=ON
>> VTK_Group_Views:BOOL=ON
>>
>> So the referenced commit is still a regression, but I can workaround it.
>>
>> Bill
>>
>>
>>
>>
>> On Sat, Sep 5, 2015 at 1:11 PM, Bill Lorensen <bill.lorensen at gmail.com>
>> wrote:
>> > Folks,
>> >
>> > git bisect identified this commit
>> > # first bad commit: [f09903e468b60c20a1e30cb665a5a72a8ab3140f] COMP:
>> > Add logic to selectively use OpenGL or OSMesa.
>> > https://gitlab.kitware.com/vtk/vtk/merge_requests/427
>> >
>> > causes these errors in my OSMesa build:
>> > 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'
>> > collect2: error: ld returned 1 exit status
>> > make[3]: *** [lib/libvtkGUISupportQt-6.3.so.1] Error 1
>> > make[2]: *** [GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/all] Error 2
>> > make[1]: *** [GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/rule] Error 2
>> > make: *** [vtkGUISupportQt] Error 2
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150908/a77bdbb5/attachment-0001.html>


More information about the vtk-developers mailing list