Compilation failed: ITKDeprecatedTestDriver.exe

Dear developer,

It is failed when I try to compile the test driver of ITKDeprecated module. The error message is as follows.

C:\ITK\Modules\Compatibility\Deprecated\include\itkTreeIteratorBase.hxx(238,30): error C2039: ‘RemoveChild’: is not a member of ‘itk::TreeIteratorBase’
247>Building Custom Rule C:/ITK/Modules/Filtering/LabelMap/CMakeLists.txt
244>C:\ITK\Modules\Compatibility\Deprecated\include\itkTreeIteratorBase.hxx(239,1): error C2447: ‘{’: missing function header (old-style formal list?)

ITK version: 5.4.4
Environment: Windows 11

I have no idea to deal with it. Does anyone have any comments?

Best regards,
Rosie

What compiler are you using?

MSVC

—Original—

I can reproduce this with 28e6e22 from 5.4 branch. CMake 4.2.1, VS2026. I will look into it.

PR 5699 fixes it for me. Can you give it a try?

Yes, it’s fixed. Thanks a lot!

And by the way, some utest of ITKFEM failed in version 5.4.4.

233 - itkFEMC0HexahedralElement-NodalLoads-BCs (Failed) ITKFEM
234 - itkFEMC0HexahedralElement-NoLoads (Failed) ITKFEM
235 - itkFEMC0HexahedralElement-GravityLoad-BCs (Failed) ITKFEM
236 - itkFEMC0TetrahedralElement-NodalLoads-BCs (Failed) ITKFEM
237 - itkFEMC0TetrahedralElement-NoLoads (Failed) ITKFEM
238 - itkFEMC0TetrahedralElement-GravityLoad-BCs (Failed) ITKFEM
277 - itkImageToRectilinearFEMObjectFilter2DTest (Failed) ITKFEM
278 - itkImageToRectilinearFEMObjectFilter3DTest (Failed) ITKFEM

It’s the issue of incorrect number of parameters. I have added a patch to fix it. So just a comment marking the issue.

Moreover, the utest of MINC module failed, too. I’m not sure what’s the issue is.

Thank you again.

1 Like

That sounds like a duplicate of issue 4782, which was fixed. Why not use main branch?