# paraview build examples

**URL:** https://discourse.paraview.org/t/paraview-build-examples/2212
**Category:** ParaView Support
**Created:** [July 14, 2019, 12:32am UTC](https://discourse.paraview.org/t/paraview-build-examples/2212 "2019-07-14T00:32:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rycsxy04](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rycsxy04/32/1709_2.png) [@rycsxy04](https://discourse.paraview.org/u/rycsxy04)
#### Post date: [July 14, 2019, 12:32am UTC](https://discourse.paraview.org/t/paraview-build-examples/2212/1 "2019-07-14T00:32:47Z")

</div>

Hi,

When I try to build paraview, I configure in cmake-gui with BUILD\_EXAMPLES ON, then configure, generate,  
then ninja.

everythings seem going well, but I just can not find where the example application is built. I can’t find them in ./bin folder where paraview.exe is generated.

is this the right way to build example application?

Thanks

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 15, 2019, 9:59am UTC](https://discourse.paraview.org/t/paraview-build-examples/2212/2 "2019-07-15T09:59:57Z")

</div>

the option is `PARAVIEW_ENABLE_EXAMPLES`  
Be aware that it will take a very long time to build as all example dataset needs to be downloaded first, be patient or build individual examples instead.

The `BUILD_EXAMPLES` option should not be here and is unrelated, this is a (small) bug.  
[https://gitlab.kitware.com/paraview/paraview/issues/19183](https://gitlab.kitware.com/paraview/paraview/issues/19183)

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [July 28, 2020, 4:12pm UTC](https://discourse.paraview.org/t/paraview-build-examples/2212/3 "2020-07-28T16:12:39Z")

</div>

Did the `PARAVIEW_ENABLE_EXAMPLES` CMake option get removed? I still see the `PARAVIEW_BUILD_EXAMPLES` CMake option but that doesn’t seem to do anything in master right now.

Also, there doesn’t seem to be any dashboards that are building any of the ParaView examples. That seems to be a shortcoming too, doesn’t it? Would it be possible to have at least one dashboard building the examples so that we know that they’re working properly? The Catalyst Fortran examples don’t properly configure right now. I’m about to push a fix for that.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 31, 2020, 10:23am UTC](https://discourse.paraview.org/t/paraview-build-examples/2212/4 "2020-08-31T10:23:31Z")

</div>

not sure about this @cory.quammen @ben.boeckel

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [August 31, 2020, 10:51am UTC](https://discourse.paraview.org/t/paraview-build-examples/2212/5 "2020-08-31T10:51:26Z")

</div>

> [@Andy\_Bauer](#):
>
> I still see the `PARAVIEW_BUILD_EXAMPLES` CMake option but that doesn’t seem to do anything in master right now.

When `PARAVIEW_BUILD_EXAMPLES` is enabled, ParaView adds tests prefixed by `ParaViewExample` that build each of the examples.

> [@rycsxy04](#):
>
> I can’t find them in ./bin folder where paraview.exe is generated.

To build the examples, try running `ctest -R ParaViewExample`. You must have `PARAVIEW_BUILD_TESTING` cmake variable set to ON as well.

All examples will be built under separate directories under a directory named `Examples` in your build directory.
