Re: [Insight-users] Compiling ITK 3.2.0 wiht MinGW 5.1.3

Tomáš Kazmar Tomash.Kazmar at seznam.cz
Sat Jun 16 09:23:41 EDT 2007


Hi Lars,

  it seems like cmake does not detect your platform provides definition of
boolean, I think you could correct it by definining HAVE_BOOLEAN yourself,
as it is advised in jmorecfg.h:220.

Regards,
Tomas 

# Can someone help me with the following problem? Im trying to
# compile ITK with MinGW, however I get an error:
# 
# In file included from C:/Insight/Binaries/Utilities/itkjpeg/8/jpeglib.h:26,
#                  from
# C:\Insight\InsightToolkit-3.2.0\Utilities\itktiff\tif_jpeg.c:74:
# C:/Insight/Binaries/Utilities/itkjpeg/8/jmorecfg.h:281: error: conflicting types
#  for 'boolean'
# C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/rpcndr.h:52: error:
# previous 
# declaration of 'boolean' was here
# mingw32-make[2]: *** [Utilities/itktiff/CMakeFiles/itktiff.dir/tif_jpeg.obj]
# Error 1
# mingw32-make[1]: *** [Utilities/itktiff/CMakeFiles/itktiff.dir/all] Error 2
# mingw32-make: *** [all] Error 2
# 
# Any help would be appreciated.
# regards,
# Lars


More information about the Insight-users mailing list