# includes target "gdcmjpeg8" more than once in the export set

**URL:** https://discourse.itk.org/t/includes-target-gdcmjpeg8-more-than-once-in-the-export-set/4344
**Category:** Beginner Questions
**Tags:** cmake
**Created:** [August 19, 2021, 1:30pm UTC](https://discourse.itk.org/t/includes-target-gdcmjpeg8-more-than-once-in-the-export-set/4344 "2021-08-19T13:30:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![longjiang321](https://discourse.itk.org/user_avatar/discourse.itk.org/longjiang321/32/2223_2.png) [@longjiang321](https://discourse.itk.org/u/longjiang321)
#### Post date: [August 19, 2021, 1:30pm UTC](https://discourse.itk.org/t/includes-target-gdcmjpeg8-more-than-once-in-the-export-set/4344/1 "2021-08-19T13:30:53Z")

</div>

hi friends:  
I am trying to compile the ITK source code with cmake, the version of ITK is 5.2.1. if I enable the option BUILD\_SHARED\_LIBS, the configure is successfully but generate failed. the error as below:

 ![image](https://discourse.itk.org/uploads/default/original/2X/2/289409bf4e6eb02bd20c41c1ac6f9ad690019bc9.png)  
, if I unselect the BUILD\_SHARED\_LIBS option. both configure and generate are successfully, but there has no build target when I execute mingw32-make . this issue confuse me so much. thank your for anybody`s another in advance!!!

---

<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: [August 19, 2021, 1:56pm UTC](https://discourse.itk.org/t/includes-target-gdcmjpeg8-more-than-once-in-the-export-set/4344/2 "2021-08-19T13:56:27Z")

</div>

Which version of CMake are you using? I think there was some specific version (3.18.0? or 3.19.0?) about a year ago which had this issue.

Also, MinGW is not an officially supported platform, it has not been tested nightly for a while.

---

<div class="post-metadata">

### Author: ![longjiang321](https://discourse.itk.org/user_avatar/discourse.itk.org/longjiang321/32/2223_2.png) [@longjiang321](https://discourse.itk.org/u/longjiang321)
#### Post date: [August 19, 2021, 2:26pm UTC](https://discourse.itk.org/t/includes-target-gdcmjpeg8-more-than-once-in-the-export-set/4344/3 "2021-08-19T14:26:40Z")

</div>

thank you so much, my cmake version is 3.19! after I update it to the letest version. had compile successfully!!!  
as I use the QT with ITK, so I use mingw!! any better recommend or offical tool stack??

---

<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: [August 19, 2021, 2:29pm UTC](https://discourse.itk.org/t/includes-target-gdcmjpeg8-more-than-once-in-the-export-set/4344/4 "2021-08-19T14:29:43Z")

</div>

I think even 3.19.1 or 3.19.2 would work, but latest is greatest (usually).

Visual Studio works well with Qt, as exemplified by Slicer, ITK-SNAP, MITK and countless small projects.

---

<div class="post-metadata">

### Author: ![longjiang321](https://discourse.itk.org/user_avatar/discourse.itk.org/longjiang321/32/2223_2.png) [@longjiang321](https://discourse.itk.org/u/longjiang321)
#### Post date: [August 19, 2021, 2:32pm UTC](https://discourse.itk.org/t/includes-target-gdcmjpeg8-more-than-once-in-the-export-set/4344/5 "2021-08-19T14:32:40Z")

</div>

thank you for your kindly help!! welcome to BeiJIng China!! 😀
