VTK Module Init error.

Are you using 8.2 or master? Oh, I see the “8.9” mention above. There should be no need to add VTK_MODULE_INIT calls manually. Instead, in your CMakeLists.txt, using vtk_module_autoinit should handle it. If you’re not using CMake, you’ll want something like:

#define vtkRenderingCore_AUTOINIT 2(vtkRenderingOpenGL2,vtkInteractionStyle)
#define vtkRenderingContext2D_AUTOINIT 1(vtkRenderingContextOpenGL2)

at the very top should work. You’ll need to link all of the mentioned libraries.