Current version of VTK does not build with gcc 4.8.5
See
https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/9
Have tried the tar file download as well as various branches from the git repo. All do not build.
[ 96%] Building CXX object IO/Cesium3DTiles/CMakeFiles/IOCesium3DTiles.dir/TreeInformation.cxx.o
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx: In member function ‘void TreeInformation::Compute()’:
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:406:50: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
if (this->InputType == vtkCesium3DTilesWriter::Mesh)
.
.
.
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:593:49: note: no known conversion for argument 2 from ‘const RegionCellId’ to ‘RegionCellId&’
In file included from /usr/include/c++/4.8.2/algorithm:62:0,
from /home/Downloads/Vtk/VTK-9.2.5/ThirdParty/nlohmannjson/vtknlohmannjson/include/vtknlohmann/json.hpp:37,
from /home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.h:29,
from /home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:15:
/usr/include/c++/4.8.2/bits/stl_algo.h:2266:34: error: no match for call to ‘(TreeInformation::ComputeTileMeshTexture(vtkPolyData*, vtkImageData*)::__lambda20) (const RegionCellId&, RegionCellId&)’
while (__comp(__pivot, *__last))
^
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:593:6: note: candidates are:
[](RegionCellId& first, RegionCellId& second) {
^
In file included from /usr/include/c++/4.8.2/algorithm:62:0,
from /home/Downloads/Vtk/VTK-9.2.5/ThirdParty/nlohmannjson/vtknlohmannjson/include/vtknlohmann/json.hpp:37,
from /home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.h:29,
from /home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:15:
/usr/include/c++/4.8.2/bits/stl_algo.h:2266:34: note: bool (*)(RegionCellId&, RegionCellId&) <conversion>
while (__comp(__pivot, *__last))
^
/usr/include/c++/4.8.2/bits/stl_algo.h:2266:34: note: candidate expects 3 arguments, 3 provided
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:593:49: note: TreeInformation::ComputeTileMeshTexture(vtkPolyData*, vtkImageData*)::__lambda20
[](RegionCellId& first, RegionCellId& second) {
^
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:593:49: note: no known conversion for argument 1 from ‘const RegionCellId’ to ‘RegionCellId&’
gmake[2]: *** [IO/Cesium3DTiles/CMakeFiles/IOCesium3DTiles.dir/TreeInformation.cxx.o] Error 1
gmake[1]: *** [IO/Cesium3DTiles/CMakeFiles/IOCesium3DTiles.dir/all] Error 2
gmake: *** [all] Error 2
Edited by Mathieu Westphal (Kitware)