# Error in ITK compilation with wingw32-make

**URL:** https://discourse.itk.org/t/error-in-itk-compilation-with-wingw32-make/1122
**Category:** Beginner Questions
**Tags:** dicom
**Created:** [July 16, 2018, 6:21pm UTC](https://discourse.itk.org/t/error-in-itk-compilation-with-wingw32-make/1122 "2018-07-16T18:21:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Armando](https://discourse.itk.org/user_avatar/discourse.itk.org/armando/32/449_2.png) [@Armando](https://discourse.itk.org/u/Armando)
#### Post date: [July 16, 2018, 6:21pm UTC](https://discourse.itk.org/t/error-in-itk-compilation-with-wingw32-make/1122/1 "2018-07-16T18:21:26Z")

</div>

Hi.

I want to create an application to read and process DICOM image files.  
I want to use ITK + VTK + Qt.  
I have not any problem with Configure and Generate ITK with CMake.  
When I start to compile ITK bin files after generated with CMake all seems go well until 90% when stops an shows the message that you can see in attachment.

Some data:  
OS: Windows 10 Pro x64  
ITK version: 4.13.0  
CMake version: 3.9.2  
Qt version: 5.10.0 (Qt Creator 4.5.0)  
I put this ‘C:\Qt\Qt5.10.0\Tools\mingw530\_32\bin’ in the Path environment variable of the system.

I would like to use ITK in my project. My project is about Stereotactic Neurosurgery Planning System for the treatment of movement disorders (Parkinson’s disease).  
Thanks.

 ![Compiling%20with%20MinGW%20(mingw32-make)](https://discourse.itk.org/uploads/default/original/1X/e477fa516544b14eb1288b637dc8292cac949ad0.png)

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [July 16, 2018, 6:30pm UTC](https://discourse.itk.org/t/error-in-itk-compilation-with-wingw32-make/1122/2 "2018-07-16T18:30:13Z")

</div>

`mingw` is considered an exotic compiler, and while its build status is tracked it is currently [failing](https://open.cdash.org/index.php?project=Insight#!#Expected_Nightly_Exotic). In other words, ITK does not compile properly with `mingw`.

For Windows it is best to use Visual Studio 2015 or 2017, both of which are free for open source projects etc. If you must use an open source compiler, why don’t you try `clang`?

---

<div class="post-metadata">

### Author: ![Armando](https://discourse.itk.org/user_avatar/discourse.itk.org/armando/32/449_2.png) [@Armando](https://discourse.itk.org/u/Armando)
#### Post date: [July 16, 2018, 6:39pm UTC](https://discourse.itk.org/t/error-in-itk-compilation-with-wingw32-make/1122/3 "2018-07-16T18:39:47Z")

</div>

Thanks a lot DZenan Zukic, I’ve spent hours on this. I want to use ITK but I am hesitant between using Visual Studio or Qt. That’s why I tried to compile ITK using MinGW, because Qt uses it. I have never used clang. I take this opportunity to ask you if the result of the compilation of the ITK libraries using Visual Studio can be used in Qt, because with Visual Studio I compiled and did some tests and everything worked fine. Thanks again

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [July 16, 2018, 7:15pm UTC](https://discourse.itk.org/t/error-in-itk-compilation-with-wingw32-make/1122/4 "2018-07-16T19:15:17Z")

</div>

Qt can definitely be used in Visual Studio. Precompiled Qt versions use VS on Windows.

---

<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: [July 17, 2018, 6:20pm UTC](https://discourse.itk.org/t/error-in-itk-compilation-with-wingw32-make/1122/5 "2018-07-17T18:20:53Z")

</div>

Hi @Armando,

You may also be interested in [MXE](http://mxe.cc/) which ships the _mingw-w64_ compiler but also packages for the compiler like ITK, VTK, and Qt. However, it runs on Unix-like systems.

HTH,  
Matt

---

<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: [September 16, 2018, 3:18pm UTC](https://discourse.itk.org/t/error-in-itk-compilation-with-wingw32-make/1122/6 "2018-09-16T15:18:13Z")

</div>

This build issue has been addressed in ITK Git `master` and `release-4.13` branches:

> <https://github.com/InsightSoftwareConsortium/ITK/commit/da4a546906dccb126826c4e74d28733e335f49c0>
