# Probleme with Cmake for VTK installation

**URL:** https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331
**Category:** Support
**Created:** [September 12, 2022, 7:29pm UTC](https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331 "2022-09-12T19:29:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Minigandi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/a88e4f/32.png) [@Minigandi](https://discourse.vtk.org/u/Minigandi)
#### Post date: [September 12, 2022, 7:29pm UTC](https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331/1 "2022-09-12T19:29:29Z")

</div>

Hello,

I’m trying to install VTK on my computer, and there is always this error during the configuration, and even if I create a bin folder where CMake shows the error. Building with Visual stuido does not install VTK.  
I have tried with several computers and different versions of VTK but I always get the same error that I don’t understand.  
If anyone can help me I would be very grateful.

Thanks,

Clément

 ![image](https://discourse.vtk.org/uploads/default/original/2X/4/494c78b0d4eafcadaf51a717f0965727fe5d595b.png)

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [September 12, 2022, 7:56pm UTC](https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331/2 "2022-09-12T19:56:52Z")

</div>

There is no error shown in your screenshot, only warnings.

---

<div class="post-metadata">

### Author: ![Minigandi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/a88e4f/32.png) [@Minigandi](https://discourse.vtk.org/u/Minigandi)
#### Post date: [September 12, 2022, 8:04pm UTC](https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331/3 "2022-09-12T20:04:08Z")

</div>

I am a complete beginner with cmake and vtk… but when I follow the installation instructions that’s the only difference I noticed. As when I generate and build on visual studio (without forgetting to open it as admin) no program is created I thought it could come from there.  
Do you have any idea why VTK does not install?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [September 12, 2022, 8:10pm UTC](https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331/4 "2022-09-12T20:10:45Z")

</div>

It seems you are using VTK 8.2.0 which indeed lacked documentation. The “new” one in 9.0+ has [better documentation](https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/dev/build.md).

> [@Minigandi](#):
>
> Do you have any idea why VTK does not install?

You’ll need to build VTK first. There will be an `install` target you can use to install it (which will also run the build).

---

<div class="post-metadata">

### Author: ![Minigandi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/a88e4f/32.png) [@Minigandi](https://discourse.vtk.org/u/Minigandi)
#### Post date: [September 13, 2022, 8:29pm UTC](https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331/5 "2022-09-13T20:29:50Z")

</div>

Thank you very much for your information !  
I followed the instructions in the documentation you gave me.  
During the configuration I selected TestingCore and TestingRendering. and I get the warning (second screenshot) I am not sure what to do so I restarted the configuration and did generate. I just don’t understand how to do the sentence underlined in blue (3rd Screenshot)…  
I thought I just had to open VS and build the solution created with CMake.

Im sorry i don’t really have a good level im a student and i don’t understand your last advices :  
" You’ll need to build VTK first. There will be an `install` target you can use to install it (which will also run the build)."

Screenshot 1

 ![image](https://discourse.vtk.org/uploads/default/original/2X/c/c734f9a2c6ceb8b8605f49fd52d2a6e595b4468d.png)

Screenshot 2

 ![image](https://discourse.vtk.org/uploads/default/original/2X/1/1cc7f56ba2b8d9e94f25a45a8842b8ea822c50cc.png)

Screenshot 3

 ![image](https://discourse.vtk.org/uploads/default/original/2X/d/d59a2b9de2161c66d906985d91dc3fc5e2ab8f38.png)

---

<div class="post-metadata">

### Author: ![Minigandi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/a88e4f/32.png) [@Minigandi](https://discourse.vtk.org/u/Minigandi)
#### Post date: [September 13, 2022, 8:43pm UTC](https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331/6 "2022-09-13T20:43:44Z")

</div>

> [@ben.boeckel](#):
>
> You’ll need to build VTK first. There will be an `install` target you can use to install it (which will also run the build).

with VS running as admin I managed to build all (Screenshot 1), but when I test a helloworld example I get this error…(Screenshot 2)

Screenshot 1

 ![image](https://discourse.vtk.org/uploads/default/original/2X/0/044ed7b84712b52572aad018949dd5dc31e2e29f.png)

Screenshot 2

 ![image](https://discourse.vtk.org/uploads/default/original/2X/9/990982ec5fae27508779284b017806af22a85472.png)
