# Advice on building paraview (superbuild??) for OpenFOAM runTimePostProcessing

**URL:** https://discourse.paraview.org/t/advice-on-building-paraview-superbuild-for-openfoam-runtimepostprocessing/8707
**Category:** ParaView Support
**Created:** [December 28, 2021, 5:08pm UTC](https://discourse.paraview.org/t/advice-on-building-paraview-superbuild-for-openfoam-runtimepostprocessing/8707 "2021-12-28T17:08:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![aerogt3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/3bc359/32.png) [@aerogt3](https://discourse.paraview.org/u/aerogt3)
#### Post date: [December 28, 2021, 5:08pm UTC](https://discourse.paraview.org/t/advice-on-building-paraview-superbuild-for-openfoam-runtimepostprocessing/8707/1 "2021-12-28T17:08:55Z")

</div>

Hello,

Recently I’ve been trying to use the runTimePostProcessing in OpenFOAM, and I cannot get any working paraview build out of the OpenFOAM packages. LLVM fails to build, so then no mesa/VTK/pv.

I’ve been using the superbuild for several years; I’m always able to get a working build, x86, ARM, graphics card/headless - great tool! So I tried build the OpenFOAM visualization module using an existing paraview superbuild:

```auto
export ParaView_DIR=/data/paraview/sb_5.7.0
/data/OpenFOAM/OpenFOAM-v2112/modules/visualization/Allwmake

```

But I just get the errors at the end of this post. I am not quite sure what “remotingCore” is, and I can’t figure out any flags I could use to build this component?

Any general advice on how best to get runTimePostProcessing working? Am I crazy trying to use an external superbuild for this? Superbuild options (graphic-less ARM64) are below for reference:

> cmake -D CMAKE\_INSTALL\_PREFIX=/data/paraview/$pvVer  
> -Dmesa\_USE\_SWR=OFF  
> -DENABLE\_llvm=ON  
> -DENABLE\_pythondateutil=ON  
> -DENABLE\_pythonsix=OFF  
> -DENABLE\_numpy=OFF  
> -DENABLE\_paraview=ON  
> -DENABLE\_qt5=OFF  
> -DENABLE\_python3=ON  
> -DENABLE\_python=OFF  
> -DENABLE\_osmesa=ON  
> -DENABLE\_mpi=ON  
> -DUSE\_SYSTEM\_python3=ON  
> -DUSE\_SYSTEM\_mpi=ON ./paraview-superbuild/

```auto

CMake Error at CMakeLists.txt:66 (find_package):
  Found package configuration file:

    /data/paraview/5.7.0/lib/cmake/paraview-5.7/paraview-config.cmake

  but it set ParaView_FOUND to FALSE so package "ParaView" is considered to
  be NOT FOUND. Reason given by package:

  Could not find the ParaView package with the following required components:
  RemotingCore.

```

---

<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: [December 29, 2021, 10:53am UTC](https://discourse.paraview.org/t/advice-on-building-paraview-superbuild-for-openfoam-runtimepostprocessing/8707/2 "2021-12-29T10:53:25Z")

</div>

Just download our binary release from : [https://www.paraview.org/download/](https://www.paraview.org/download/)

---

<div class="post-metadata">

### Author: ![aerogt3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/3bc359/32.png) [@aerogt3](https://discourse.paraview.org/u/aerogt3)
#### Post date: [December 29, 2021, 11:01am UTC](https://discourse.paraview.org/t/advice-on-building-paraview-superbuild-for-openfoam-runtimepostprocessing/8707/3 "2021-12-29T11:01:05Z")

</div>

For ARM64?

---

<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: [December 29, 2021, 11:04am UTC](https://discourse.paraview.org/t/advice-on-building-paraview-superbuild-for-openfoam-runtimepostprocessing/8707/4 "2021-12-29T11:04:10Z")

</div>

ParaView is not (officialy) compatible with ARM64.

In any case, try to follow the ParaView build guide instead of relying on external script to build ParaView:  
[https://gitlab.kitware.com/paraview/paraview/-/blob/master/Documentation/dev/build.md#linux](https://gitlab.kitware.com/paraview/paraview/-/blob/master/Documentation/dev/build.md#linux)

Do not use the superbuild unless you need specific libs that you do now want to build yourself. If you need osmesa and your distribution does not provide a package, you may want to use the superbuild in that case.

---

<div class="post-metadata">

### Author: ![aerogt3](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/3bc359/32.png) [@aerogt3](https://discourse.paraview.org/u/aerogt3)
#### Post date: [December 29, 2021, 11:19am UTC](https://discourse.paraview.org/t/advice-on-building-paraview-superbuild-for-openfoam-runtimepostprocessing/8707/5 "2021-12-29T11:19:49Z")

</div>

Thanks for the answers. The superbuild has given me working builds on ARM64 (5.7.0, 5.9.1). My issue is how to get a build that will allow for OpenFOAM’s runTimePostProcessing (I guess this is called “in situ”)

I’m trying to build the “CATALYST\_RENDERING” edition, but I get contradictory errors. VTK is missing IOFFMPEG, but if I build FFMPEG, catalyst is incompatible with IO support. Perhaps a bug, but my guess is I am simply unaware of some flags I should be setting?

```auto
CMake Error at /data/pvsuper/sb_5.10.0/install/lib/cmake/paraview-5.10/paraview-config.cmake:169 (find_package):
  Found package configuration file:

    /data/pvsuper/sb_5.10.0/install/lib/cmake/paraview-5.10/vtk/vtk-config.cmake

  but it set VTK_FOUND to FALSE so package "VTK" is considered to be NOT
  FOUND. Reason given by package:

  Could not find the VTK package with the following required components:
  IOFFMPEG.

```

```auto
  ParaView is configured without I/O support (via the CATALYST_RENDERING
  edition) which is incompatible with the request for FFmpeg support (via the
  `PARAVIEW_ENABLE_FFMPEG` configure option)

```

> cmake -D ENABLE\_llvm=ON -D ENABLE\_pythondateutil=ON -D ENABLE\_pythonsix=OFF -D ENABLE\_numpy=OFF -D ENABLE\_qt5=OFF -D ENABLE\_python3=ON -D ENABLE\_osmesa=ON -D ENABLE\_mpi=ON -D USE\_SYSTEM\_python3=ON -D ENABLE\_vtkm=ON -D USE\_SYSTEM\_mpi=ON -D PARAVIEW\_BUILD\_EDITION=CATALYST\_RENDERING ./paraview-superbuild/

---

<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: [December 29, 2021, 4:17pm UTC](https://discourse.paraview.org/t/advice-on-building-paraview-superbuild-for-openfoam-runtimepostprocessing/8707/6 "2021-12-29T16:17:06Z")

</div>

maybe @Francois_Mazen @nicolas.vuaille or @utkarsh.ayachit can help

---

<div class="post-metadata">

### Author: ![crohr](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/c57346/32.png) [@crohr](https://discourse.paraview.org/u/crohr)
#### Post date: [November 28, 2022, 7:49am UTC](https://discourse.paraview.org/t/advice-on-building-paraview-superbuild-for-openfoam-runtimepostprocessing/8707/7 "2022-11-28T07:49:31Z")

</div>

I know this was a year ago, but I ran into the same issue and solved it with the following for anyone else out there looking for an answer. Anyway, here is how I compiled ParaView with OpenFOAM’s make script. You could achieve pretty much the same thing using the superbuild and cmake. These are my notes from a year ago:

With OF2112 and PV5.10, need to manually enable ffmpeg in PV due to OF catalyst requiring it. Added these Cmake variables:

`PARAVIEW_ENABLE_FFMPEG=ON VTK_MODULE_ENABLE_VTK_IOFFMPEG=YES `

- Also to avoid some python symbol errors in catalyst:

`VTK_PYTHON_OPTIONAL_LINK=OFF`

To do with OF make script:

`./makeParaView -mesa -mpi -python3 -no-qt -DPARAVIEW_ENABLE_FFMPEG=ON -DVTK_MODULE_ENABLE_VTK_IOFFMPEG=YES -DVTK_PYTHON_OPTIONAL_LINK=OFF`

This was based on the following thread:

> [@undefined symbol: PyExc\_ValueError](https://discourse.paraview.org/t/undefined-symbol-pyexc-valueerror/5494/10):
>
> Had similar issue, VTK\_PYTHON\_OPTIONAL\_LINK=OFF flag solved the problem. Thank you.

I also had to add quotes to the variable in line 164 of the following file:  
./ThirdParty-v2112/platforms/linuxARM64Gcc/ParaView-5.10.0/lib/cmake/paraview-5.10/paraview-config.cmake

Separately, I don’t think 5.11.0 is compatible with OpenFOAM’s catalyst plugin.
