[vtk-developers] QVTKWidget.h errors

jupiter jupiter.hce at gmail.com
Thu Nov 5 22:36:22 EST 2015


Hi,

I am building FSL where the FSL VTK API apparently based on old version of
VTK where the SetInput() is used. I don't want to touch the FSL VTK API
files, so I built the VTK 5.10.1 with gcc  version 4.4.7 and qt version
4.6.2,  then I was building the FSL based on VTK version 5.10.1 and
QVTKWidget.h
seems broken. Does VTK 5.10.1 need a specific version of gcc or qt? Please
advise how to fix it.

FSL/fsl5.0.8/src/fslview/src/fslview/vtkwidget.cpp:75:
/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:141: error: ISO C++
forbids declaration of ‘QPaintEngine’ with no type
/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:141: error:
‘QPaintEngine’ declared as a ‘virtual’ field
/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:141: error: expected
‘;’ before ‘*’ token
/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:158: error: expected
primary-expression before ‘void’
/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:158: error: ISO C++
forbids declaration of ‘Q_SIGNALS’ with no type
/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:158: error: expected
‘;’ before ‘void’
/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:169: error: expected
‘:’ before ‘Q_SLOTS’
/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:176: error: expected
primary-expression before ‘void’
/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:176: error: ISO C++
forbids declaration of ‘Q_SLOTS’ with no type
/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:176: error: expected
‘;’ before ‘void’

Thank you.

Kind regards,

- j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20151106/e26edd21/attachment-0001.html>


More information about the vtk-developers mailing list