[Insight-users] Problems compiling ITK under Cmake and mingw
robert behan
robehan at gmail.com
Tue Jan 11 17:56:28 EST 2011
Hi there,
I am currently having trouble compiling ITK using Cmake 2.8.3 with
mingw and I would appreaciate if anyone can shed light on the problem
I get the following error:
C:\Users\Robert\Documents\ITK\bin>mingw32-make
[ 1%] Built target itksysEncodeExecutable
[ 1%] Built target itksysProcessFwd9x
[ 2%] Built target itksys
[ 7%] Built target itkjpeg8
[ 13%] Built target itkjpeg12
[ 18%] Built target itkjpeg16
[ 19%] Built target itkzlib
[ 20%] Built target itkpng
[ 22%] Built target itktiff
[ 23%] Built target itkopenjpeg
[ 25%] Built target ITKMetaIO
[ 29%] Built target ITKNrrdIO
[ 30%] Built target ITKEXPAT
[ 30%] Built target ITKznz
[ 30%] Built target ITKniftiio
[ 30%] Built target ITKDICOMParser
[ 30%] Built target itkvcl
[ 51%] Built target itkv3p_netlib
[ 52%] Built target itkv3p_lsqr
[ 52%] Built target itktestlib
[ 70%] Built target itkvnl
[ 75%] Built target itkvnl_algo
[ 76%] Built target itkNetlibSlatec
[ 79%] Built target itkgdcm
[ 81%] Built target itkvnl_inst
[ 81%] Building CXX object Code/Common/CMakeFiles/ITKCommon.dir/itkConditionVa
able.obj
C:\Users\Robert\Documents\ITK\InsightToolkit-3.20.0\Code\Common\itkConditionVari
able.cxx: In member function 'void itk::ConditionVariable::Wait(itk::SimpleMutex
Lock*)':
C:\Users\Robert\Documents\ITK\InsightToolkit-3.20.0\Code\Common\itkConditionVari
able.cxx:132:76: error: invalid conversion from 'itk::MutexType' to 'void*'
C:\Users\Robert\Documents\ITK\InsightToolkit-3.20.0\Code\Common\itkConditionVari
able.cxx:132:76: error: initializing argument 1 of 'DWORD SignalObjectAndWait(
void*, void*, DWORD, BOOL)'
C:\Users\Robert\Documents\ITK\InsightToolkit-3.20.0\Code\Common\itkConditionVari
able.cxx:153:77: error: invalid conversion from 'itk::MutexType' to 'void*'
C:\Users\Robert\Documents\ITK\InsightToolkit-3.20.0\Code\Common\itkConditionVari
able.cxx:153:77: error: initializing argument 2 of 'DWORD SignalObjectAndWait(
void*, void*, DWORD, BOOL)'
C:\Users\Robert\Documents\ITK\InsightToolkit-3.20.0\Code\Common\itkConditionVari
able.cxx:159:58: error: invalid conversion from 'itk::MutexType' to 'void*'
C:\Users\Robert\Documents\ITK\InsightToolkit-3.20.0\Code\Common\itkConditionVari
able.cxx:159:58: error: initializing argument 1 of 'DWORD WaitForSingleObject(
void*, DWORD)'
mingw32-make[2]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkConditionVariable.
obj] Error 1
mingw32-make[1]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2
mingw32-make: *** [all] Error 2
I have read some of the previous threads on ITK build problems.
Previous posts have indicated that activating pthreads or having
multiple instances of make on the system can cause problems. I dont
think its either of these issues so if anyone has any suggestions I
would be grateful,
Cheers,
Robert
More information about the Insight-users
mailing list