# vtkMomentInvariants.cxx build problem

**URL:** <https://discourse.vtk.org/t/vtkmomentinvariants-cxx-build-problem/8705>\
**Category:** Development\
**Created:** [June 12, 2022, 9:12pm UTC](https://discourse.vtk.org/t/vtkmomentinvariants-cxx-build-problem/8705 "2022-06-12T21:12:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Post date:** [June 12, 2022, 9:12pm UTC](https://discourse.vtk.org/t/vtkmomentinvariants-cxx-build-problem/8705/1 "2022-06-12T21:12:11Z")

</div>

Trying to build 9.1 with debug enabled and see the following:

[45%] Building CXX object Remote/MomentInvariants/MomentInvariants/CMakeFiles/MomentInvariants.dir/vtkMomentInvariants.cxx.o  
In file included from /home/rmartz/Downloads/Vtk/VTK-9.1.0/Remote/MomentInvariants/MomentInvariants/vtkMomentInvariants.cxx:62:0:  
/home/rmartz/Downloads/Vtk/VTK-9.1.0/Remote/MomentInvariants/MomentInvariants/vtkMomentInvariantData.h: In member function ‘std::list vtkMomentInvariantData::getLangbeinInvariants(unsigned int)’:  
/home/rmartz/Downloads/Vtk/VTK-9.1.0/Remote/MomentInvariants/MomentInvariants/vtkMomentInvariantData.h:106:28: error: no matching function for call to ‘std::list::erase(std::\_List\_const\_iterator&)’  
it = invariants.erase(it);

What do I do?

---

<div class="post-metadata">

**Author:** ![danlipsa](https://discourse.vtk.org/user_avatar/discourse.vtk.org/danlipsa/32/390_2.png) [@danlipsa](https://discourse.vtk.org/u/danlipsa)\
**Post date:** [June 12, 2022, 11:03pm UTC](https://discourse.vtk.org/t/vtkmomentinvariants-cxx-build-problem/8705/2 "2022-06-12T23:03:26Z")

</div>

This is a remote module that should not be built by default? Did you turn it on?  
You should be able to turn it off.

[https://vtk.org/Wiki/VTK/Remote\_Modules#Policy\_for\_Adding\_and\_Removing\_Remote\_Modules](https://vtk.org/Wiki/VTK/Remote_Modules#Policy_for_Adding_and_Removing_Remote_Modules)

Dan

---

<div class="post-metadata">

**Author:** ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Post date:** [June 13, 2022, 2:53pm UTC](https://discourse.vtk.org/t/vtkmomentinvariants-cxx-build-problem/8705/3 "2022-06-13T14:53:53Z")

</div>

I did not turn it on. When I turned it off, the build was able to complete. Thanks.
