Building VTK-9.0.0 with QT-5.15.0 ("QPainterPath path"issue)
While building the source code VTK-9.0.0 using QT-5.15.0, I got this build error during "sudo make" command:
[ 99%] Built target GeovisCore [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkParallelCoordinatesHistogramRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkParallelCoordinatesRepresentation.cxx.o /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx: In member function \u2018virtual vtkVector2i vtkQtStringToImage::GetBounds(vtkTextProperty*, const vtkUnicodeString&, int)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx:105:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx: In member function \u2018virtual void vtkQtLabelRenderStrategy::ComputeLabelBounds(vtkTextProperty*, vtkUnicodeString, double*)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx:226:18: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx: In member function \u2018virtual vtkVector2i vtkQtStringToImage::GetBounds(vtkTextProperty*, const vtkStdString&, int)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx:136:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx: In member function \u2018virtual int vtkQtStringToImage::RenderString(vtkTextProperty*, const vtkUnicodeString&, int, vtkImageData*, int*)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx:181:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx: In member function \u2018virtual void vtkQtLabelRenderStrategy::RenderLabel(int*, vtkTextProperty*, vtkUnicodeString, int)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx:329:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx: In member function \u2018virtual void vtkQtLabelRenderStrategy::RenderLabel(int*, vtkTextProperty*, vtkUnicodeString)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx:441:18: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ make[2]: *** [Rendering/Qt/CMakeFiles/RenderingQt.dir/build.make:122: Rendering/Qt/CMakeFiles/RenderingQt.dir/vtkQtStringToImage.cxx.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkParallelCoordinatesView.cxx.o make[2]: *** [Rendering/Qt/CMakeFiles/RenderingQt.dir/build.make:109: Rendering/Qt/CMakeFiles/RenderingQt.dir/vtkQtLabelRenderStrategy.cxx.o] Error 1 [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedGraphRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedHierarchyRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedSurfaceRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedTreeAreaRepresentation.cxx.o make[1]: *** [CMakeFiles/Makefile2:8886: Rendering/Qt/CMakeFiles/RenderingQt.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkSCurveSpline.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTanglegramItem.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeAreaView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeHeatmapItem.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeMapView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeRingView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkViewUpdater.cxx.o [ 99%] Linking CXX shared library ../../lib64/libvtkViewsInfovis-9.0.so [ 99%] Built target ViewsInfovis make: *** [Makefile:161: all] Error 2
I tried building with QT-5.11.0 on another machine and it built okay without any issues. Is anyone facing similar issue?
BUILT SYSTEM SPECS (Both machines): NAME="CentOS Linux" VERSION="8 (Core)" ID="centos" ID_LIKE="rhel fedora" PRETTY_NAME="CentOS Linux 8 (Core)" CPE_NAME="cpe:/o:centos:centos:8"