Two questions about new module system

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 :slight_smile:

Which file you put these two lines in? The Cmakefiles.txt or your cpp code?

Hi,

I put them in my .cpp file where my VTK code is

Thanks.

I changed the setting of RenderingContextOpenGL2 from DEFAULT to Yes and recompiled VTK, seems working now.

1 Like