# how to enable hdf5cpp in superbuild?

**URL:** https://discourse.paraview.org/t/how-to-enable-hdf5cpp-in-superbuild/9025
**Category:** Development
**Created:** [February 21, 2022, 12:51pm UTC](https://discourse.paraview.org/t/how-to-enable-hdf5cpp-in-superbuild/9025 "2022-02-21T12:51:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Fabian](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/f6c823/32.png) [@Fabian](https://discourse.paraview.org/u/Fabian)
#### Post date: [February 21, 2022, 12:51pm UTC](https://discourse.paraview.org/t/how-to-enable-hdf5cpp-in-superbuild/9025/1 "2022-02-21T12:51:43Z")

</div>

For my plugin I need hdf5cpp. In hdf5.cmake are the lines

```auto
...
DEPENDS_OPTIONAL hdf5cpp
...
-DHDF5_BUILD_CPP_LIB:BOOL=${hdf5cpp_enabled}

```

How can I enable hdf5cpp?

Thanks

---

<div class="post-metadata">

### Author: ![aron.helser](https://discourse.paraview.org/user_avatar/discourse.paraview.org/aron.helser/32/13_2.png) [@aron.helser](https://discourse.paraview.org/u/aron.helser)
#### Post date: [February 21, 2022, 1:23pm UTC](https://discourse.paraview.org/t/how-to-enable-hdf5cpp-in-superbuild/9025/2 "2022-02-21T13:23:39Z")

</div>

Hi!  
You can add `hdf5cpp` as a dependency to your plugin. This will cause hdf5 to be built with the CPP wrapper, and added as a dependency to your plugin.

If you look at `hdf5cpp.cmake` you will see it is a dummy target which sets the `hdf5cpp_enabled` variable and depends on `hdf5`.

HTH,  
Aron

---

<div class="post-metadata">

### Author: ![Fabian](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/f6c823/32.png) [@Fabian](https://discourse.paraview.org/u/Fabian)
#### Post date: [February 21, 2022, 3:23pm UTC](https://discourse.paraview.org/t/how-to-enable-hdf5cpp-in-superbuild/9025/3 "2022-02-21T15:23:54Z")

</div>

Thanks for the reply. Up to know (at least 5.4) I built the plugin externally, I’ll try to integrate it into PV.

---

<div class="post-metadata">

### Author: ![Fabian](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/f6c823/32.png) [@Fabian](https://discourse.paraview.org/u/Fabian)
#### Post date: [March 3, 2022, 9:50pm UTC](https://discourse.paraview.org/t/how-to-enable-hdf5cpp-in-superbuild/9025/4 "2022-03-03T21:50:35Z")

</div>

I cannot get it to work. It seems, there is no ENABLE\_paraviewpluginsexternal any more?!  
I could not yet find a way to include building the plugin together with paraview.

When I try to build the plugin manually by providing ParaView\_DIR, there is the error

```auto
superbuild/paraview/build/lib/cmake/paraview-5.10/ParaViewPlugin.cmake:1064 (message):
  Failed to find the required module hdf5_cpp-static.

```

How can I tell paraview to build my plugin?  
Any help is very much appreciated!

---

<div class="post-metadata">

### Author: ![Fabian](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/f6c823/32.png) [@Fabian](https://discourse.paraview.org/u/Fabian)
#### Post date: [March 3, 2022, 10:52pm UTC](https://discourse.paraview.org/t/how-to-enable-hdf5cpp-in-superbuild/9025/5 "2022-03-03T22:52:39Z")

</div>

I solved this issue by manually changing the cmake configuration of cmake. I could manually build the plugin and load it to my built paraview.
