I tried to install opencv3.4.1 with VTK on Ubuntu 16.04 LTS. I follow the guidance here. But I finally got vtk-9.0 and when running make in opencv, I got this problem. At last, I solved this problem with vtk-8.1. I think this may be the VTK-9.0 bug. By the way, are the following commands in guidance that make me get vtk9.0?
To update the code # git fetch origin # git rebase origin/master