# Build paraview with Openturns

**URL:** https://discourse.paraview.org/t/build-paraview-with-openturns/2022
**Category:** ParaView Support
**Created:** [June 12, 2019, 10:32am UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022 "2019-06-12T10:32:19Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![piranha007](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@piranha007](https://discourse.paraview.org/u/piranha007)
#### Post date: [June 12, 2019, 10:32am UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/1 "2019-06-12T10:32:19Z")

</div>

Hi all,

I am trying to build Paraview 5.6.1 in my Linux-OS (Archlinux) with Openturns, but I have this error:

```
 CMake Error at VTK/Filters/OpenTurns/CMakeLists.txt:1 (find_package):
 By not providing "FindOpenTURNS.cmake" in CMAKE_MODULE_PATH this project
 has asked CMake to find a package configuration file provided by
 "OpenTURNS", but CMake did not find one.

 Could not find a package configuration file provided by "OpenTURNS"
 (requested version 1.8) with any of the following names:

 OpenTURNSConfig.cmake
 openturns-config.cmake

Add the installation prefix of "OpenTURNS" to CMAKE_PREFIX_PATH or set
"OpenTURNS_DIR" to a directory containing one of the above files. If
"OpenTURNS" provides a separate development package or SDK, be sure it has
been installed.

```

Did I miss something? cause the installation process mentions that I only have to turn on the Cmake option PARAVIEW\_USE\_OPENTURNS. btw, without Openturns, Paraview is built with no errors.

---

<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: [June 12, 2019, 10:35am UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/2 "2019-06-12T10:35:24Z")

</div>

ParaView is looking for OpenTURNS, did you install it on your machine ?

---

<div class="post-metadata">

### Author: ![piranha007](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@piranha007](https://discourse.paraview.org/u/piranha007)
#### Post date: [June 12, 2019, 10:38am UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/3 "2019-06-12T10:38:41Z")

</div>

Thanks Mathieu for your quick answer.  
yes, I did. I will try to reinstall it again.

---

<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: [June 12, 2019, 10:43am UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/4 "2019-06-12T10:43:09Z")

</div>

Ok, so you only need to inform ParaView where to find OpenTURNS.

On ubuntu for example, there is a file here :`/usr/local/lib/cmake/openturns/OpenTURNSConfig.cmake`

do you have this file ?

---

<div class="post-metadata">

### Author: ![piranha007](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@piranha007](https://discourse.paraview.org/u/piranha007)
#### Post date: [June 12, 2019, 10:48am UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/5 "2019-06-12T10:48:38Z")

</div>

No, I think I installed the wrong version, Paraview needs OpenTURNS 1.8, I will try to install this one.

---

<div class="post-metadata">

### Author: ![piranha007](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@piranha007](https://discourse.paraview.org/u/piranha007)
#### Post date: [June 12, 2019, 11:42am UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/6 "2019-06-12T11:42:29Z")

</div>

I installed OpenTURNS1.8, it is installed in `/home/xxxx/.local/share/openturns` and there is no cmake file called OpenTURNSConfig.cmak. it contains three folders `/doc` ‘/examples’ and ‘/validation’.

I followed the installation instructions in OpenTURNS website ([http://openturns.github.io/openturns/latest/install.html](http://openturns.github.io/openturns/latest/install.html))

```
git clone https://github.com/openturns/openturns.git
cd openturns
cmake -DCMAKE_INSTALL_PREFIX=~/.local .
make install
```

---

<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: [June 12, 2019, 11:47am UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/7 "2019-06-12T11:47:04Z")

</div>

Why are you building from sources ?

---

<div class="post-metadata">

### Author: ![piranha007](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@piranha007](https://discourse.paraview.org/u/piranha007)
#### Post date: [June 12, 2019, 11:50am UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/8 "2019-06-12T11:50:10Z")

</div>

To install older version (OpenTURNS 1.8). The pkg-manager contains only the latest version. Am I wrong ?

---

<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: [June 12, 2019, 12:16pm UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/10 "2019-06-12T12:16:36Z")

</div>

OpenTURNS is backward compatible, you can build ParaView with any version of OpenTURNS after 1.8.

---

<div class="post-metadata">

### Author: ![piranha007](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@piranha007](https://discourse.paraview.org/u/piranha007)
#### Post date: [June 12, 2019, 12:24pm UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/11 "2019-06-12T12:24:09Z")

</div>

OK, I am then confused because in `paraview5.6.1/VTK/Filters/OpenTurns/CMakeLists.txt` it is written:

```
find_package(OpenTURNS 1.8 REQUIRED) # !!!! #
# XXX(fixme)
include(${OPENTURNS_USE_FILE})

set(classes
vtkOTDensityMap
....

```

I will try to install the latest OpenTURNS, I hope that it will work.

---

<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: [June 12, 2019, 12:25pm UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/12 "2019-06-12T12:25:59Z")

</div>

from cmake doc : [https://cmake.org/cmake/help/v3.15/command/find\_package.html](https://cmake.org/cmake/help/v3.15/command/find_package.html)

> The `[version]` argument requests a version with which the package found should be compatible (format is `major[.minor[.patch[.tweak]]]` ). The `EXACT` option requests that the version be matched exactly.

---

<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: [June 12, 2019, 12:29pm UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/13 "2019-06-12T12:29:04Z")

</div>

I’ve updated my blog post with infos regarding the version of OpenTURNS.

---

<div class="post-metadata">

### Author: ![piranha007](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@piranha007](https://discourse.paraview.org/u/piranha007)
#### Post date: [June 12, 2019, 12:43pm UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/14 "2019-06-12T12:43:46Z")

</div>

Ok, my bad, I am not familiar with cmake. Thanks.

I will try to install latest openturns then.

---

<div class="post-metadata">

### Author: ![piranha007](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@piranha007](https://discourse.paraview.org/u/piranha007)
#### Post date: [June 12, 2019, 1:34pm UTC](https://discourse.paraview.org/t/build-paraview-with-openturns/2022/15 "2019-06-12T13:34:54Z")

</div>

Thanks, OpenTURNS builded successfully. Thanks again for your help.
