ShapeWorks
ShapeWorks copied to clipboard
Dependencies do not build with GCC 13 (Ubuntu 24)
The versions of VTK, ITK (perhaps others too) do not build with GCC 13.
https://github.com/InsightSoftwareConsortium/ITK/issues/4607
https://gitlab.kitware.com/vtk/vtk/-/issues/18782
For reference: Running export CC="gcc-12"
and export CXX="g++-12"
before running build dependencies can be helpful
Error looks like:
/ShapeWorks/dependencies/build/vtk/IO/Image/vtkSEPReader.h:33:12: error: use of enum 'EndiannessType' without previous declaration
33 | enum class EndiannessType : std::uint8_t
| ^~~~~~~~~~~~~~
/ShapeWorks/dependencies/build/vtk/IO/Image/vtkSEPReader.h:33:27: error: expected unqualified-id before ':' token
33 | enum class EndiannessType : std::uint8_t
| ^
/ShapeWorks/dependencies/build/vtk/IO/Image/vtkSEPReader.h:103:19: error: 'int32_t' is not a member of 'std'; did you mean 'int32_t'?
103 | std::array<std::int32_t, 6> ComputeExtent() const;
| ^~~~~~~