[CMake] CMake Configure error: Width with l64 failed with result: 1

Francisco Lopez de la Franca franciscolopezdelafranca at gmail.com
Fri Apr 11 07:22:08 EDT 2014


Hi.
I'm new with CMake trying to generate the ITK libs.

I've downloaded CMake version 2.8.12 and ITK 4.5.1, both, for Windows.

I've let only  ITK_BUILD_DEFAULT_MODULES in CMake. I press Configure and I
get the following:

Enabled ITKZLIB, requested by ITK_BUILD_DEFAULT_MODULES.

Checking for appropriate format for 64 bit long:

Width with l64 failed with result: 1

Width with l failed with result: 1

Width with L failed with result: 1

Width with q failed with result: 1

Width with I64 failed with result: 1

Width with ll failed with result: 1

Checking for apropriate format for 64 bit long: not found

Filter ZLIB is ON

Configuring done


Then I press Generate and get Generating is done.


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:

[ 81%] Built target ITKIOTransformBase-all
[ 81%] Building C object Modules/ThirdParty/HDF5/src/

itkhdf5/src/CMakeFiles/H5de
tect.dir/H5detect.c.obj
In file included from c:\mingw\include\fcntl.h:37:0,
                 from
C:\InsightToolkit-4.5.1\Modules\ThirdParty\HDF5\src\itkhdf
5\src\H5private.h:55,
                 from
C:\InsightToolkit-4.5.1\Modules\ThirdParty\HDF5\src\itkhdf
5\src\H5detect.c:57:
c:\mingw\include\io.h:301:1: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int, off64_t, int);
 ^
c:\mingw\include\io.h:301:36: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int, off64_t, int);
                                    ^
c:\mingw\include\io.h:302:1: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
 ^
c:\mingw\include\io.h:302:39: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
                                       ^
In file included from
C:\InsightToolkit-4.5.1\Modules\ThirdParty\HDF5\src\itkhdf
5\src\H5private.h:72:0,
                 from
C:\InsightToolkit-4.5.1\Modules\ThirdParty\HDF5\src\itkhdf
5\src\H5detect.c:57:
c:\mingw\include\unistd.h:65:20: error: unknown type name 'off_t'
 int ftruncate(int, off_t);
                    ^
c:\mingw\include\unistd.h:67:38: error: unknown type name 'off_t'
 __CRT_INLINE int ftruncate(int __fd, off_t __length)
                                      ^
Modules\ThirdParty\HDF5\src\itkhdf5\src\CMakeFiles\H5detect.dir\build.make:57:
r
ecipe for target
'Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5detect.di
r/H5detect.c.obj' failed
mingw32-make[2]: ***
[Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5detec
t.dir/H5detect.c.obj] Error 1
CMakeFiles\Makefile2:8471: recipe for target
'Modules/ThirdParty/HDF5/src/itkhdf
5/src/CMakeFiles/H5detect.dir/all' failed
mingw32-make[1]: ***
[Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5detec
t.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Could anybody help me, please? Could it be something with MinGW instead of
with CMake?

Thanks a lot.

/Francisco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140411/06fcabf8/attachment-0001.html>


More information about the CMake mailing list