Can't build VTK sample project: Missing module

@limu011 Which version or VTK are you using? VTK 9.0 or VTK 9.1?

Please try removing vtkRenderingContextOpenGL2 and vtkRenderingGL2PSOpenGL2 from COMPONENTS, your project probably doesn’t need them:

find_package(VTK COMPONENTS 
  vtkCommonColor
  vtkCommonCore
  vtkFiltersSources
  vtkInteractionStyle
  vtkRenderingCore
  vtkRenderingFreeType
  vtkRenderingOpenGL2
  QUIET
)

@mwestfal This might be related to a bug in the VTK 9.0 configuration, where vtkRenderingContextOpenGL2 was accidentally left out of the default build. See !7646 for more information.