[Insight-users] compilation errors with mingw

Luis Ibanez luis.ibanez at kitware.com
Fri Dec 10 05:41:10 EST 2010


Hi Arnaud,

This may help:
http://www.mitk.org/wiki/MinGW%20Instructions

Are you using the Windows CMake ?
or the CMake that comes with MinGW ?


   Regards,


       Luis


------------------------------
On Wed, Dec 8, 2010 at 10:32 AM, Gelas, Arnaud Joel Florent
<Arnaud_Gelas at hms.harvard.edu> wrote:
> Hi all,
>
> I am trying to compile ITK with mingw and I get the following errors:
>
> [ 46%] Building CXX object Code/Common/CMakeFiles/ITKCommon.dir/itkConditionVari
> able.cxx.obj
> C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx: In member function 'void itk:
> :ConditionVariable::Wait(itk::SimpleMutexLock*)':
> C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:132: error: invalid conversion
>  from 'int' to 'void*'
> C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:132: error:   initializing arg
> ument 1 of 'DWORD SignalObjectAndWait(void*, void*, DWORD, BOOL)'
> C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:153: error: invalid conversion
>  from 'int' to 'void*'
> C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:153: error:   initializing arg
> ument 2 of 'DWORD SignalObjectAndWait(void*, void*, DWORD, BOOL)'
> C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:159: error: invalid conversion
>  from 'int' to 'void*'
> C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:159: error:   initializing arg
> ument 1 of 'DWORD WaitForSingleObject(void*, DWORD)'
> mingw32-make[2]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkConditionVariable.
> cxx.obj] Error 1
> mingw32-make[1]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2
> mingw32-make: *** [all] Error 2
>
>
> Do I need to change anything while configuring with CMake or is it a real compilation error?
>
> Thanks,
> Arnaud
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.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