# Missing Library by configuration in Cmake & Sphere Example doesn't work

**URL:** https://discourse.vtk.org/t/missing-library-by-configuration-in-cmake-sphere-example-doesnt-work/5978
**Category:** Support
**Created:** [June 11, 2021, 1:39am UTC](https://discourse.vtk.org/t/missing-library-by-configuration-in-cmake-sphere-example-doesnt-work/5978 "2021-06-11T01:39:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Hassna87](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/h/7ba0ec/32.png) [@Hassna87](https://discourse.vtk.org/u/Hassna87)
#### Post date: [June 11, 2021, 1:39am UTC](https://discourse.vtk.org/t/missing-library-by-configuration-in-cmake-sphere-example-doesnt-work/5978/1 "2021-06-11T01:39:01Z")

</div>

Hello everybody,

I’m new to VTK, and I have some issues here.  
After doing the configuration in Cmake, Build\_Examples did not appear within the result of configuration:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/8/81ee82e6127abe590d1e85238db18cee4c2e1a44.png)

However, I have completed all the steps (generating, building solution file…etc) and then tried to run the Sphere example, by the configuration in cmake it shows “Skipping Sphere”

 ![image](https://discourse.vtk.org/uploads/default/original/2X/f/f8f89e8751ba2bf7db44664399106aa653a13c40.png)  
As a result, there is missing folders in bin and i’m not able to move further.

Do you have any suggestion for me here?  
Thanks 🙂

---

<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: [June 11, 2021, 11:48am UTC](https://discourse.vtk.org/t/missing-library-by-configuration-in-cmake-sphere-example-doesnt-work/5978/2 "2021-06-11T11:48:09Z")

</div>

The flag is called `VTK_BUILD_EXAMPLES`. Note that the examples are actually performed as tests, so you’ll need to run the test for the example to have it built and tested.

---

<div class="post-metadata">

### Author: ![Hassna87](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/h/7ba0ec/32.png) [@Hassna87](https://discourse.vtk.org/u/Hassna87)
#### Post date: [June 12, 2021, 11:32am UTC](https://discourse.vtk.org/t/missing-library-by-configuration-in-cmake-sphere-example-doesnt-work/5978/3 "2021-06-12T11:32:53Z")

</div>

Thanks a lot for your reply,  
Could you please clarify how should I run the test?  
I have created a .cxx file and a text file “CMakeLists” both in a source folder, and the in cmake I have made the configuration process.  
I would be grateful when you can tell me the steps in details 🙈

many Thanks 😊

---

<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: [June 13, 2021, 12:53am UTC](https://discourse.vtk.org/t/missing-library-by-configuration-in-cmake-sphere-example-doesnt-work/5978/4 "2021-06-13T00:53:26Z")

</div>

You’ll need to build VTK and then run the tests via `ctest -R Example`. Instructions for building VTK are [here](https://gitlab.kitware.com/vtk/vtk/blob/master/Documentation/dev/build.md).
