I’m trying to build 9.2.2 with GCC 4.8.5 where I’m taking all of the defaults except that I select a RELASE build and I set VTK_GUISupportQtQuick to NO. All selections are made with ccmake.
This is what I see:
In file included from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsAPI.h:26:0,
from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsAPI.cxx:16:
/home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsImpl.h: In constructor \u2018constexpr vtk::detail::smp::vtkSMPToolsImpl<(vtk::detail::smp::BackendType)0>::vtkSMPToolsImpl()\u2019:
/home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsImpl.h:58:28: error: use of deleted function \u2018std::atomic::atomic(const std::atomic&)\u2019
class VTKCOMMONCORE_EXPORT vtkSMPToolsImpl
^
In file included from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/vtkObjectBase.h:57:0,
from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/vtkObject.h:45,
from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsAPI.h:21,
from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsAPI.cxx:16:
/usr/include/c++/4.8.2/atomic:487:7: error: declared here
atomic(const atomic&) = delete;
^
I tried building version 9.2.5 in release mode with gcc 4.8.5 and once again ran into problems. The following is just a small sample of the messages that appear:
[ 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