I’ve just rebuilt the library and with these two lines of code:
#define vtkRenderingCore_AUTOINIT 2(vtkRenderingOpenGL2,vtkInteractionStyle,vtkRenderingFreeType)
#define vtkRenderingContext2D_AUTOINIT 1(vtkRenderingContextOpenGL2)
Everything works fine
Thank you a lot
Which file you put these two lines in? The Cmakefiles.txt or your cpp code?
I put them in my .cpp file where my VTK code is
I changed the setting of RenderingContextOpenGL2 from DEFAULT to Yes and recompiled VTK, seems working now.