# Good practice for building Catalyst

**URL:** https://discourse.paraview.org/t/good-practice-for-building-catalyst/1393
**Category:** In Situ Support
**Created:** [March 5, 2019, 4:52pm UTC](https://discourse.paraview.org/t/good-practice-for-building-catalyst/1393 "2019-03-05T16:52:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bastian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bastian/32/7513_2.png) [@bastian](https://discourse.paraview.org/u/bastian)
#### Post date: [March 5, 2019, 4:52pm UTC](https://discourse.paraview.org/t/good-practice-for-building-catalyst/1393/1 "2019-03-05T16:52:57Z")

</div>

I’m intending to integrate Catalyst-based analysis into the CFD code I use so I figured I would for now build and use a feature-rich Catalyst until I have figured out what parts of Catalyst I actually need in production.

Following [this](https://www.paraview.org/Wiki/Build_Directions) guide, here’s what I did:

1. downloaded [Catalyst-v5.5.2-Base-Enable-Python-Essentials-Extras-Rendering-Base.tar.gz](https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.5&type=catalyst&os=Sources&downloadFile=Catalyst-v5.5.2-Base-Enable-Python-Essentials-Extras-Rendering-Base.tar.gz)
2. extracted the tarball to a temporary directory (`<source_dir>`)
3. inside my empty build directory I executed `<source_dir>/cmake.sh <source_dir>`
4. `make`

I received no error messages and I was able to compile and run the example in `ParaView_5.5.2/Examples/Catalyst/Fortran90FullExample/` (after figuring out how to).  
When executing the example, the following messages are printed out, but at the same time, `slice_10.pvtp` is created so I’m happy it’s working:

```auto
Error: Cannot import vtkPVServerManagerDefault
Error: Cannot import vtkPVAnimation

```

**Here’s my concern:** When trying to compile my code equipped with the coprocessor stuff, cmake fails, complaining:

```nohighlight
CMake Error at /soft/Catalyst-v5.5.2-Base-Enable-Python-Essentials-Extras-Rendering-Base/VTK/VTKConfig.cmake:114 (include):
  include could not find load file:

    /tmp/Catalyst-v5.5.2-Base-Enable-Python-Essentials-Extras-Rendering-Base/VTK/CMake/vtkModuleAPI.cmake
Call Stack (most recent call first):
  /soft/Catalyst-v5.5.2-Base-Enable-Python-Essentials-Extras-Rendering-Base/ParaViewConfig.cmake:66 (include)
  CMakeLists.txt:7 (find_package)

CMake Error at /soft/Catalyst-v5.5.2-Base-Enable-Python-Essentials-Extras-Rendering-Base/VTK/VTKConfig.cmake:130 (vtk_module_config):
  Unknown CMake command "vtk_module_config".
Call Stack (most recent call first):
  /soft/Catalyst-v5.5.2-Base-Enable-Python-Essentials-Extras-Rendering-Base/ParaViewConfig.cmake:66 (include)
  CMakeLists.txt:7 (find_package)

```

So, apparently, `VTK/VTKConfig.cmake` needs files from the source directory, which I did not keep.  
Is this intended to be that way or did I do anything wrong?

If the former is the case, the build instructions should say that one needs to keep the source directory.

---

<div class="post-metadata">

### Author: ![olesenm](https://discourse.paraview.org/user_avatar/discourse.paraview.org/olesenm/32/17416_2.png) [@olesenm](https://discourse.paraview.org/u/olesenm)
#### Post date: [March 12, 2019, 10:17am UTC](https://discourse.paraview.org/t/good-practice-for-building-catalyst/1393/2 "2019-03-12T10:17:36Z")

</div>

For the lazy, you can have a feature-rich catalyst by just using the ParaView files directly. I.e. compile ParaView with development headers and just use them for catalyst.

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [March 12, 2019, 1:04pm UTC](https://discourse.paraview.org/t/good-practice-for-building-catalyst/1393/3 "2019-03-12T13:04:19Z")

</div>

Hi Bastian,

Concerning these messages:

> [@bastian](#):
>
> Error: Cannot import vtkPVServerManagerDefault  
> Error: Cannot import vtkPVAnimation

You can safely ignore them, they are irrelevant. It was fixed since version 5.5.2.

For the second part: I’m not surprised that you need the sources. Building the project will not copy all necessary includes files in the build dir.
