# Failed to compile ITKGrowCut

**URL:** <https://discourse.itk.org/t/failed-to-compile-itkgrowcut/4298>\
**Category:** Beginner Questions\
**Created:** [July 28, 2021, 9:56am UTC](https://discourse.itk.org/t/failed-to-compile-itkgrowcut/4298 "2021-07-28T09:56:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhang-qiang-github](https://discourse.itk.org/user_avatar/discourse.itk.org/zhang-qiang-github/32/1183_2.png) [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Post date:** [July 28, 2021, 9:56am UTC](https://discourse.itk.org/t/failed-to-compile-itkgrowcut/4298/1 "2021-07-28T09:56:31Z")

</div>

I want to use `ITKGrowCut` in my project, but I met some trouble to compile it. The code is download fro [github](https://github.com/InsightSoftwareConsortium/ITKGrowCut).

In the first time, I successfully compile it with `Build_Testing` off. But, when I include the `itkFastGrowCut.h` in my project, a bug is reported:

```auto
1. can not open "itkPrintHelper.h"
2. missing type specifier- int assumed. Note: C++ does not support default-int

```

The second bug is located at: `ITK_DISALLOW_COPY_AND_MOVE(FastGrowCut);` (itkFastGrowCut).

Then, I turn `Build_Testing` on, and more bugs are reported when compiling it:

```auto
1. can not open `itkImageRegionIterator.h`
2. can not open `itkImageRegionIteratorWithIndex.h`
3. can not open `itkNumericTraits.h`
4. can not open `itkRegionOfInterestImageFilter.h`
5. can not open `GrowCutExport.h`
6. can not open `itkImageToImageFilter.h`
7. can not open `itkPrintHelper.h`
8. identifier 'LabPixelType` is not defined.
9. identifier `SrcPixelType` is not defined
...

```

All the above bugs is reported from GrowCut-all project.

My environment is:

win 10  
vs 2019  
cmake 3.20.4  
ITK: 4.13.3

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [August 2, 2021, 2:32pm UTC](https://discourse.itk.org/t/failed-to-compile-itkgrowcut/4298/2 "2021-08-02T14:32:08Z")

</div>

Hi @zhang-qiang-github ,

You will need to you ITK 5.

Hope this helps,  
Matt

CC @dzenanz
