# "vtkLineIntegralConvolution2D.h": No such file or directory

**URL:** https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451
**Category:** Support
**Created:** [August 23, 2021, 7:20pm UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451 "2021-08-23T19:20:48Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Tees](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/74df32/32.png) [@Tees](https://discourse.vtk.org/u/Tees)
#### Post date: [August 23, 2021, 7:20pm UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451/1 "2021-08-23T19:20:48Z")

</div>

I get the following error message if I try to include any of the \<vtkLineIntegralConvolution2D.h \<vtkImageDataLIC2D.h\>\<vtkSurfaceLICMapper.h\>\<vtkSurfaceLICInterface.h\> libraries:

Data (Include) cannot be opened: “vtkLineIntegralConvolution2D.h”: No such file or directory

I could include anything I needed until now without any problems. Is there a difference because it is a gpu implementation?

I am working with vtk version 9.0.1.

Thank you in advance!

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [August 23, 2021, 7:30pm UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451/2 "2021-08-23T19:30:31Z")

</div>

The LICOpenGL module is not built by default, and it is not in any of the VTK binary packages. To use it, it is necessary to build VTK from source with the following as part of the configuration:

```auto
VTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2=WANT

```

---

<div class="post-metadata">

### Author: ![Tees](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/74df32/32.png) [@Tees](https://discourse.vtk.org/u/Tees)
#### Post date: [August 23, 2021, 7:36pm UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451/3 "2021-08-23T19:36:19Z")

</div>

Ah perfect, ty for your fast answer I will rebuild it and try it again!

---

<div class="post-metadata">

### Author: ![Tees](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/74df32/32.png) [@Tees](https://discourse.vtk.org/u/Tees)
#### Post date: [August 23, 2021, 9:14pm UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451/4 "2021-08-23T21:14:12Z")

</div>

So I built it again and in the building process I saw the LICOpenGL entry and no error message. But it still does not find the libraries. Can I somehow check in the build folder that it was properly installed?

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [August 23, 2021, 9:39pm UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451/5 "2021-08-23T21:39:44Z")

</div>

You can check the “lib” folder in your build tree to make sure that the vtkLICOpenGL2 library is there (.so, .a, or .lib).

For your own project, the one that is trying to use the LIC classes, how is it configured to find VTK? Did you re-run its configuration after rebuilding VTK?

---

<div class="post-metadata">

### Author: ![Tees](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/74df32/32.png) [@Tees](https://discourse.vtk.org/u/Tees)
#### Post date: [August 25, 2021, 3:45pm UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451/6 "2021-08-25T15:45:36Z")

</div>

Okay I did some mistake building vtk I guess it is not in the lib folder.

cmake -GNinja -VTK\_MODULE\_ENABLE\_VTK\_RenderingLICOpenGL2=WANT …

I tried it like that.

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [August 25, 2021, 3:54pm UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451/7 "2021-08-25T15:54:50Z")

</div>

> [@Tees](#):
>
> -VTK\_MODULE\_ENABLE\_VTK\_RenderingLICOpenGL2=WANT

You have a typo, the “-D” is missing.

```auto
-DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2=WANT

```

---

<div class="post-metadata">

### Author: ![Tees](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/74df32/32.png) [@Tees](https://discourse.vtk.org/u/Tees)
#### Post date: [August 25, 2021, 3:57pm UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451/8 "2021-08-25T15:57:04Z")

</div>

Ah thanks, I will give further feedback!

---

<div class="post-metadata">

### Author: ![Tees](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/74df32/32.png) [@Tees](https://discourse.vtk.org/u/Tees)
#### Post date: [August 25, 2021, 4:25pm UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451/9 "2021-08-25T16:25:54Z")

</div>

It worked, sorry for the inconvenience and thank you again.

---

<div class="post-metadata">

### Author: ![Tees](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/74df32/32.png) [@Tees](https://discourse.vtk.org/u/Tees)
#### Post date: [August 26, 2021, 6:45am UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451/10 "2021-08-26T06:45:52Z")

</div>

I am able to build my project now, but if I try to run the .exe i get the error message that vtkLICOpenGL2-9.0d.dll is missing. I copied the dll from my build bin folder and the programm runs and I also get the LIC image. Is it because the library is shared? and I have to rebuild my vtk or do I have to change something in my cmake code to build my server with the library?

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [August 26, 2021, 12:50pm UTC](https://discourse.vtk.org/t/vtklineintegralconvolution2d-h-no-such-file-or-directory/6451/11 "2021-08-26T12:50:35Z")

</div>

Yes, all shared libraries must either be somewhere in the PATH, or in the same folder as your .exe. If you do a static build (both of VTK and of your own project), then you can build a standalone .exe that doesn’t need the VTK dlls.

I’m not sure what you mean by “build my server”. What does “server” refer to?
