# Two questions about new module system

**URL:** https://discourse.vtk.org/t/two-questions-about-new-module-system/2864
**Category:** Support
**Created:** [March 22, 2020, 9:52am UTC](https://discourse.vtk.org/t/two-questions-about-new-module-system/2864 "2020-03-22T09:52:18Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![kerim](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kerim/32/1175_2.png) [@kerim](https://discourse.vtk.org/u/kerim)
#### Post date: [April 29, 2020, 8:47pm UTC](https://discourse.vtk.org/t/two-questions-about-new-module-system/2864/21 "2020-04-29T20:47:55Z")

</div>

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 🙂

---

<div class="post-metadata">

### Author: ![cean\_wang](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cean_wang/32/2570_2.png) [@cean\_wang](https://discourse.vtk.org/u/cean_wang)
#### Post date: [November 10, 2020, 1:26am UTC](https://discourse.vtk.org/t/two-questions-about-new-module-system/2864/22 "2020-11-10T01:26:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![kerim](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kerim/32/1175_2.png) [@kerim](https://discourse.vtk.org/u/kerim)
#### Post date: [November 10, 2020, 1:46am UTC](https://discourse.vtk.org/t/two-questions-about-new-module-system/2864/23 "2020-11-10T01:46:58Z")

</div>

Hi,

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

---

<div class="post-metadata">

### Author: ![cean\_wang](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cean_wang/32/2570_2.png) [@cean\_wang](https://discourse.vtk.org/u/cean_wang)
#### Post date: [November 10, 2020, 3:06am UTC](https://discourse.vtk.org/t/two-questions-about-new-module-system/2864/24 "2020-11-10T03:06:37Z")

</div>

> [@kerim](#):
>
> `RenderingContextOpenGL2`

Thanks.

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

[Previous page](https://discourse.vtk.org/t/two-questions-about-new-module-system/2864.md?page=1)
