<div dir="ltr"><div><div><div>Hi.<br></div>I'm new with CMake trying to generate the ITK libs.<br><br></div>I've downloaded CMake version 2.8.12 and ITK 4.5.1, both, for Windows.<br><br></div>I've let only  ITK_BUILD_DEFAULT_MODULES in CMake. I press Configure and I get the following:<br>
<br>Enabled ITKZLIB, requested by ITK_BUILD_DEFAULT_MODULES.
<p style="margin:0px;text-indent:0px">Checking for appropriate format for 64 bit long:</p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">Width with l64 failed with result: 1</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">Width with l failed with result: 1</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">Width with L failed with result: 1</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">Width with q failed with result: 1</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">Width with I64 failed with result: 1</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">Width with ll failed with result: 1</span></p>
<p style="margin:0px;text-indent:0px">Checking for apropriate format for 64 bit long: not found</p>
<p style="margin:0px;text-indent:0px">Filter ZLIB is ON</p>
<p style="margin:0px;text-indent:0px">Configuring done</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Then I press Generate and get Generating is done.</p><p style="margin:0px;text-indent:0px">
<br></p>When I try to compile ITK with MinGW (version 4.8.1, GNU Make 3.82.90, built for i686-pc-mingw32) the result is:<br><br>[ 81%] Built target ITKIOTransformBase-all<br>[ 81%] Building C object Modules/ThirdParty/HDF5/src/<p>
itkhdf5/src/CMakeFiles/H5de<br>tect.dir/H5detect.c.obj<br>
In file included from c:\mingw\include\fcntl.h:37:0,<br>                 from C:\InsightToolkit-4.5.1\Modules\ThirdParty\HDF5\src\itkhdf<br>5\src\H5private.h:55,<br>                 from C:\InsightToolkit-4.5.1\Modules\ThirdParty\HDF5\src\itkhdf<br>

5\src\H5detect.c:57:<br>c:\mingw\include\io.h:301:1: error: unknown type name 'off64_t'<br> __CRT_INLINE off64_t lseek64 (int, off64_t, int);<br> ^<br>c:\mingw\include\io.h:301:36: error: unknown type name 'off64_t'<br>

 __CRT_INLINE off64_t lseek64 (int, off64_t, int);<br>                                    ^<br>c:\mingw\include\io.h:302:1: error: unknown type name 'off64_t'<br> __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {<br>

 ^<br>c:\mingw\include\io.h:302:39: error: unknown type name 'off64_t'<br> __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {<br>                                       ^<br>In file included from C:\InsightToolkit-4.5.1\Modules\ThirdParty\HDF5\src\itkhdf<br>

5\src\H5private.h:72:0,<br>                 from C:\InsightToolkit-4.5.1\Modules\ThirdParty\HDF5\src\itkhdf<br>5\src\H5detect.c:57:<br>c:\mingw\include\unistd.h:65:20: error: unknown type name 'off_t'<br> int ftruncate(int, off_t);<br>

                    ^<br>c:\mingw\include\unistd.h:67:38: error: unknown type name 'off_t'<br> __CRT_INLINE int ftruncate(int __fd, off_t __length)<br>                                      ^<br>Modules\ThirdParty\HDF5\src\itkhdf5\src\CMakeFiles\H5detect.dir\build.make:57: r<br>

ecipe for target 'Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5detect.di<br>r/H5detect.c.obj' failed<br>mingw32-make[2]: *** [Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5detec<br>t.dir/H5detect.c.obj] Error 1<br>

CMakeFiles\Makefile2:8471: recipe for target 'Modules/ThirdParty/HDF5/src/itkhdf<br>5/src/CMakeFiles/H5detect.dir/all' failed<br>mingw32-make[1]: *** [Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5detec<br>

t.dir/all] Error 2<br>Makefile:135: recipe for target 'all' failed<br>mingw32-make: *** [all] Error 2</p><p>Could anybody help me, please? Could it be something with MinGW instead of with CMake?</p><p>Thanks a lot.</p>
<p>/Francisco<br></p></div>