# paraview superbuild issue - attribute cannot be used here: vtk::filepath

**URL:** <https://discourse.paraview.org/t/paraview-superbuild-issue-attribute-cannot-be-used-here-vtk-filepath/11760>\
**Category:** ParaView Support\
**Created:** [March 29, 2023, 7:59pm UTC](https://discourse.paraview.org/t/paraview-superbuild-issue-attribute-cannot-be-used-here-vtk-filepath/11760 "2023-03-29T19:59:40Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![dgobbi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dgobbi/32/11302_2.png) [@dgobbi](https://discourse.paraview.org/u/dgobbi)\
**Post date:** [March 31, 2023, 6:31pm UTC](https://discourse.paraview.org/t/paraview-superbuild-issue-attribute-cannot-be-used-here-vtk-filepath/11760/21 "2023-03-31T18:31:33Z")

</div>

Making a library static is straightforward. For example,

```plaintext
vtk_module_add_module("${ns}::WrappingTools"
  SOURCES ${sources}
  HEADERS ${headers}
  FORCE_STATIC)

```

You might also have to change the module header file so that `VTKWRAPPINGTOOLS_EXPORT` always has an empty definition.

As for why wrapping tools are available, let’s say you wanted to build Paraview against an external VTK. Obviously Paraview would need VTK’s wrapping tools to wrap its own classes. And Paraview even has its own wrapping tool (vtkWrapClientServer) that links to libvtkWrappingTools.

The parser has grown organically over the past 25 years, its code has become quite a jungle. If you know anyone who wants to do their own wrapping of VTK’s API, I have some example code: [GitHub - dgobbi/WrapVTK: VTK external wrapper framework](https://github.com/dgobbi/WrapVTK)

[Previous page](https://discourse.paraview.org/t/paraview-superbuild-issue-attribute-cannot-be-used-here-vtk-filepath/11760.md?page=1)
