# ITKMontage double-conversion problem

**URL:** <https://discourse.itk.org/t/itkmontage-double-conversion-problem/4155>\
**Category:** Beginner Questions\
**Tags:** cmake\
**Created:** [May 25, 2021, 8:40pm UTC](https://discourse.itk.org/t/itkmontage-double-conversion-problem/4155 "2021-05-25T20:40:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lambdamoses](https://discourse.itk.org/user_avatar/discourse.itk.org/lambdamoses/32/2101_2.png) [@lambdamoses](https://discourse.itk.org/u/lambdamoses)\
**Post date:** [May 25, 2021, 8:40pm UTC](https://discourse.itk.org/t/itkmontage-double-conversion-problem/4155/1 "2021-05-25T20:40:24Z")

</div>

I built ITK 5.2, pulled from GitHub, and built ITKMontage and the examples. It did build successfully. Then I tried to run ITKMontage’s example CompleteMontage. The ITKMontage examples come with a `CMakeLists.txt`. When I tried to build the CompleteMontage example in CLion on Mac BigSur just to see the results, but it didn’t build, giving this error:

```auto
In file included from /Users/lambda/ITKMontage/examples/CompareTileConfigurations.cxx:20:
/usr/local/include/ITK-5.2/itkTileConfiguration.h:28:10: fatal error: 'double-conversion/double-conversion.h' file not found
#include "double-conversion/double-conversion.h"
         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[3]: *** [CMakeFiles/CompareTileConfigurations.dir/CompareTileConfigurations.cxx.o] Error 1
make[2]: *** [CMakeFiles/CompareTileConfigurations.dir/all] Error 2
make[1]: *** [CMakeFiles/CompareTileConfigurations.dir/rule] Error 2
make: *** [CompareTileConfigurations] Error 2

```

Then I tried to build a hello world program but with `#include "double-conversion/double-conversion.h"`, and got the same error. I did put `find_package(ITK 5.2 REQUIRED COMPONENTS Montage ITKImageIO ITKTransformIO ITKDoubleConversion)` in `CMakeLists.txt`. It seems that ITK has its own internal version of `double-conversion`. I installed `double-conversion` from Google to standard location, and this problem persists.

I’m new to cmake, so maybe I did something dumb. Or are we supposed to run examples directly in the IDE? Please help, thanks!

---

<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:** [May 25, 2021, 10:53pm UTC](https://discourse.itk.org/t/itkmontage-double-conversion-problem/4155/2 "2021-05-25T22:53:54Z")

</div>

Something similar has already occurred before:

> <https://github.com/InsightSoftwareConsortium/ITK/issues/912>
>
> \### Description
> 
> ITK-4.13.2 won't build, with \`Kerror: ^\[\[m^\[\[K../../../../-ld…ouble-conversion: No such file or directory\`
> 
> \### Steps to Reproduce
> 
> \`\`\`
> cmake --no-warn-unused-cli -C /var/tmp/portage/sci-libs/itk-4.13.2/work/itk-4.13.2\_build/gentoo\_common\_config.cmake -G Unix Makefiles -DCMAKE\_INSTALL\_PREFIX=/usr -DBUILD\_SHARED\_LIBS=ON -DITK\_USE\_SYSTEM\_DCMTK=ON -DITK\_USE\_SYSTEM\_DOUBLECONVERSION=ON -DITK\_USE\_SYSTEM\_GCCXML=ON -DITK\_USE\_SYSTEM\_HDF5=ON -DITK\_USE\_SYSTEM\_JPEG=ON -DITK\_USE\_SYSTEM\_PNG=ON -DITK\_USE\_SYSTEM\_SWIG=ON -DITK\_USE\_SYSTEM\_TIFF=ON -DITK\_USE\_SYSTEM\_ZLIB=ON -DITK\_BUILD\_DEFAULT\_MODULES=ON -DITK\_COMPUTER\_MEMORY\_SIZE=1 -DWRAP\_ITK\_JAVA=OFF -DWRAP\_ITK\_TCL=OFF -Ddouble-conversion\_INCLUDE\_DIRS=/usr/include/double-conversion -Ddouble-conversion\_LIBRARIES=-ldouble-conversion -DBUILD\_TESTING=OFF -DBUILD\_EXAMPLES=OFF -DITK\_USE\_REVIEW=OFF -DITKV3\_COMPATIBILITY=OFF -DVNL\_CONFIG\_ENABLE\_SSE2=ON -DITK\_WRAP\_PYTHON=OFF -DCMAKE\_BUILD\_TYPE=Gentoo -DCMAKE\_INSTALL\_DO\_STRIP=OFF -DCMAKE\_TOOLCHAIN\_FILE=/var/tmp/portage/sci-libs/itk-4.13.2/work/itk-4.13.2\_build/gentoo\_toolchain.cmake /var/tmp/portage/sci-libs/itk-4.13.2/work/ITK-4.13.2
> \`\`\`
> 
> \### Expected behavior
> 
> it should compile
> 
> \### Actual behavior
> 
> \[build.log\](https://github.com/InsightSoftwareConsortium/ITK/files/3194757/build.log)
> 
> 
> \### Reproducibility
> 
> always
> 
> \### Environment
> 
> Gentoo Linux
> GCC: x86\_64-pc-linux-gnu-9.1.0
> Python 2.7.16 and 3.6.8

Does any part of that discussion help you? Which version of `double-conversion` do you have installed? You don’t need to use it, you could just use the one bundled with ITK.
