# How does one enable COSMOTOOLS in 5.9.1?

**URL:** https://discourse.paraview.org/t/how-does-one-enable-cosmotools-in-5-9-1/7840
**Category:** ParaView Support
**Created:** [August 19, 2021, 3:33pm UTC](https://discourse.paraview.org/t/how-does-one-enable-cosmotools-in-5-9-1/7840 "2021-08-19T15:33:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jfavre](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jfavre](https://discourse.paraview.org/u/jfavre)
#### Post date: [August 19, 2021, 3:33pm UTC](https://discourse.paraview.org/t/how-does-one-enable-cosmotools-in-5-9-1/7840/1 "2021-08-19T15:33:21Z")

</div>

Hello there  
Am having an issue compiling the COSMOTOOLS.

So, it seems that PARAVIEW\_PLUGIN\_ENABLE\_GenericIOReader is enabled by default, and that is good. It compiles OK on my first compilation. Then I configure a second time and set PARAVIEW\_ENABLE\_COSMOTOOLS=ON

and the configure fails with:

Could NOT find GenericIO (missing: GENERIC\_IO\_INCLUDE\_DIR  
GENERIC\_IO\_LIBRARIES)

this seems incongruous since it was able to compile GenericIO on the first pass, but it does not know where to find it on a second pass? 🙄

my attempt to set it  
GENERIC\_IO\_INCLUDE\_DIR=src/Plugins/GenericIOReader/Readers/LANL/GIO  
GENERIC\_IO\_LIBRARIES=build/./lib/paraview-5.9/plugins/GenericIOReader/libvtkGenericIOReader.so

let me go past the configure step, but compilation fails.

Any hint would be appreciated. TIA.

---

<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 20, 2021, 9:10am UTC](https://discourse.paraview.org/t/how-does-one-enable-cosmotools-in-5-9-1/7840/2 "2021-08-20T09:10:03Z")

</div>

I reproduce, but I’m not sure this is actually an issue. You safest bet would be to try with the superbuild and see how it is configured.

FYI @ben.boeckel

---

<div class="post-metadata">

### Author: ![jfavre](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jfavre](https://discourse.paraview.org/u/jfavre)
#### Post date: [August 20, 2021, 2:16pm UTC](https://discourse.paraview.org/t/how-does-one-enable-cosmotools-in-5-9-1/7840/3 "2021-08-20T14:16:11Z")

</div>

there’s quite a bit of footwork to do, but here is the recipe:

PARAVIEW\_PLUGIN\_ENABLE\_GenericIOReader:BOOL=OFF  
PARAVIEW\_ENABLE\_COSMOTOOLS:BOOL=ON

you must compile a version of GenericIO outside of ParaView. The source is [here](https://www.paraview.org/files/dependencies/genericio-master-a15ffc76cfa9f9674f933e8cb5ffc97a97fd7b27.zip)

unzip genericio-master-a15ffc76cfa9f9674f933e8cb5ffc97a97fd7b27.zip  
cd genericio-master-a15ffc76cfa9f9674f933e8cb5ffc97a97fd7b27/

that version is missing installed rules and it must be patched  
the patch is [here](https://gitlab.kitware.com/paraview/paraview-superbuild/-/blob/master/projects/apple-unix/patches/genericio-add-install-rules.patch)

patch \< genericio-add-install-rules.patch  
mkdir build && cd build && ccmake .. && make install

All that is left to do is to set the GenericIO\_DIR to where you installed genericio and recompile ParaView.

## hint

And alternative is to use the superbuild if you can.
