Yeah, without the vtkRenderingContextOpenGL2
library, you’ll have to drop the vtkRenderingContext2D_AUTOINIT
line.
If you’re not using CMake, you’ll have to do what vtk_module_autoinit
is doing for you manually. That is described in this section.