[Insight-users] The itk could not compiled with mingw

Luis Ibanez luis.ibanez at kitware.com
Fri Jul 10 11:18:37 EDT 2009


Hi 张宁,


We build ITK every Night with MinGW.


Please see the builds on:

      dash14.kitware      Win32-mingw

http://www.cdash.org/CDash/index.php?project=Insight&date=2009-07-09


Did you explicitly enabled pthreads ?


Our Nightly build *does not* use pthreads.


Please see its CMakeCache.txt file here:
http://www.cdash.org/CDash/testDetails.php?test=26927876&build=374501



     Regards,


         Luis


--------------
张宁 wrote:
> Hello! I tried to compile the latest cvs ITK with mingw with the 
> makefile generated by cmake. The compiler complained the following errors.
> [ 66%] Building CXX object 
> Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj
> In file included from 
> F:\ITK\source\Insight\Code\Common\itkConditionVariable.h:31,
>                  from F:\ITK\source\Insight\Code\Common\itkBarrier.h:21,
>                  from F:\ITK\source\Insight\Code\Common\itkBarrier.cxx:17:
> F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: conflicting 
> declaration 'typedef void*itk::MutexType'
> F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error: 
> 'itk::MutexType' has a previous declaration as `typedef struct 
> pthread_mutex_t_*itk::MutexType'
> F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: declaration 
> of `typedef void*itk::MutexType'
> F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error: conflicts 
> with previous declaration `typedef struct pthread_mutex_t_*itk::MutexType'
> F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: declaration 
> of `typedef void*itk::MutexType'
> F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error: conflicts 
> with previous declaration `typedef struct pthread_mutex_t_*itk::MutexType'
> mingw32-make[4]: *** 
> [Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj] Error 1
> mingw32-make[3]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2
> mingw32-make[2]: *** [all] Error 2
> 
> 
> ------------------------------------------------------------------------
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list