See https://discourse.vtk.org/t/use-vtk8-2-0-for-the-project-which-was-developed-based-on-vtk5-8-before/1983
for a suggestion on how to upgrade.