[Insight-users] Compiling error ITK 3.0/MinGW 5.1.3/Msys 1.0.11

Floca, Ralf Ralf.Floca at med.uni-heidelberg.de
Fri Jan 19 07:45:44 EST 2007


Hello

I am facing a problem concerning the compilation of itk with gcc under
windows.
I have developed my application with Visual Studio so far. Here
everything (itk and my application) works fine so far.
Now I want to use gcc simultaneous to ensure that my work is really
platform independent (or at least independent from VS) as planned.

I have installed:

- MinGW 5.1.3
- Msys 1.0.11
- gcc 3.4.2 (mingw special)
- make 3.79.1
- ITK 3.0
- cmake 2.4 - patch 6

I've used cmake to build a Msys makefile for itk.

Settings:
  source path: C:\DATEN\Development\Insight\ITK
  binary path: C:\DATEN\Development\Insight\ITK-msys
  Build_Examples: 	off
  Build_Shared_Libs: 	off
  Build_Testing: 		off
  Cmake_Build_Type: 	Release
  Cmake_Install_Prefix: C:\DATEN\Development\Insight\ITK-msys

When I start compiling using "make all", I'v got a compiler error:
  
In file included from
c:/DATEN/Development/Insight/ITK-mingw/Utilities/itkjpeg/8/jpeglib.h:26,
from
c:/DATEN/Development/Insight/ITK/Utilities/itktiff/tif_jpeg.c:74:
c:/DATEN/Development/Insight/ITK-mingw/Utilities/itkjpeg/8/jmorecfg.h:28
1: error:
conflicting types for 'boolean'
c:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/rpcn
dr.h:52: error:
previous declaration of 'boolean' was here
make[2]: *** [Utilities/itktiff/CMakeFiles/itktiff.dir/tif_jpeg.obj]
Error 1
make[1]: *** [Utilities/itktiff/CMakeFiles/itktiff.dir/all] Error 2
make: *** [all] Error 2


Has anybody got some experience with getting ITK compiled via MinGW/msys
and could give me a tipp what I have done wrong.
I searched the internet and the mailinglist for any clue that could help
me. But I wasn't lucky yet.

Regards,

Ralf o Floca

---------------------------------------------------------------------
Ralf Floca
University of Heidelberg                           
Institute for Medical Biometry and Informatics
Department of Medical Informatics
Im Neuenheimer Feld 400            
D-69120 Heidelberg, Germany             Tel. : +49 (0)6221 56-7484  
http://www.med.uni-heidelberg.de/mi     Fax  :               -4997    
ralf.floca at med.uni-heidelberg.de        Sekr.:               -7483
---------------------------------------------------------------------

 


More information about the Insight-users mailing list