[Insight-users] compilation errors with mingw

Markus Neuner neuner.markus at gmx.net
Fri Dec 10 07:04:06 EST 2010


Hi Arnaud,

Look at the cmake variables and ensure that
CMAKE_USE_WIN32_THREADS=ON
and
CMAKE_USE_WIN32_THREADS=OFF

I hope this can solve your problem.



On 08.12.2010 16:32, Gelas, Arnaud Joel Florent 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