<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I am building FSL where the FSL VTK API apparently based on old version of VTK where the<span class="" id="Replacement_of_SetInput.28.29_with_SetInputData.28.29_and_SetInputConnection.28.29"> 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 </span><span class="" id="Replacement_of_SetInput.28.29_with_SetInputData.28.29_and_SetInputConnection.28.29"><span class="" id="Replacement_of_SetInput.28.29_with_SetInputData.28.29_and_SetInputConnection.28.29">QVTKWidget.h seems broken. Does VTK 5.10.1 need a specific version of gcc or qt? Please advise how to fix it.</span><br><br>FSL/fsl5.0.8/src/fslview/src/fslview/vtkwidget.cpp:75:<br>/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:141: error: ISO C++ forbids declaration of ‘QPaintEngine’ with no type<br>/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:141: error: ‘QPaintEngine’ declared as a ‘virtual’ field<br>/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:141: error: expected ‘;’ before ‘*’ token<br>/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:158: error: expected primary-expression before ‘void’<br>/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:158: error: ISO C++ forbids declaration of ‘Q_SIGNALS’ with no type<br>/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:158: error: expected ‘;’ before ‘void’<br>/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:169: error: expected ‘:’ before ‘Q_SLOTS’<br>/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:176: error: expected primary-expression before ‘void’<br>/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:176: error: ISO C++ forbids declaration of ‘Q_SLOTS’ with no type<br>/usr/local/vtk/5.10.1/include/vtk-5.10/QVTKWidget.h:176: error: expected ‘;’ before ‘void’<br><br></span></div><span class="" id="Replacement_of_SetInput.28.29_with_SetInputData.28.29_and_SetInputConnection.28.29">Thank you.<br><br></span></div><span class="" id="Replacement_of_SetInput.28.29_with_SetInputData.28.29_and_SetInputConnection.28.29">Kind regards,<br><br></span></div><span class="" id="Replacement_of_SetInput.28.29_with_SetInputData.28.29_and_SetInputConnection.28.29">- j<br></span></div>