<br>Hi ÕÅÄþ,<br><br>Thanks for letting us know that turning PTHREADS OFF<br>solved the problem you found when building ITK in MinGW.<br><br><br> Luis<br><br><br>------------------------------------------------------------------------------<br>
<div class="gmail_quote">2009/7/11 ÕÅÄþ <span dir="ltr"><<a href="mailto:zhangning1978@gmail.com">zhangning1978@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you! It could be compiled with the pthread switch set off. <br><br><div class="gmail_quote">2009/7/10 Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi ÕÅÄþ,<br>
<br>
<br>
We build ITK every Night with MinGW.<br>
<br>
<br>
Please see the builds on:<br>
<br>
dash14.kitware Win32-mingw<br>
<br>
<a href="http://www.cdash.org/CDash/index.php?project=Insight&date=2009-07-09" target="_blank">http://www.cdash.org/CDash/index.php?project=Insight&date=2009-07-09</a><br>
<br>
<br>
Did you explicitly enabled pthreads ?<br>
<br>
<br>
Our Nightly build *does not* use pthreads.<br>
<br>
<br>
Please see its CMakeCache.txt file here:<br>
<a href="http://www.cdash.org/CDash/testDetails.php?test=26927876&build=374501" target="_blank">http://www.cdash.org/CDash/testDetails.php?test=26927876&build=374501</a><br>
<br>
<br>
<br>
Regards,<br>
<br>
<br>
Luis<br>
<br>
<br>
--------------<br>
ÕÅÄþ wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
Hello! I tried to compile the latest cvs ITK with mingw with the makefile generated by cmake. The compiler complained the following errors.<br>
[ 66%] Building CXX object Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj<br>
In file included from F:\ITK\source\Insight\Code\Common\itkConditionVariable.h:31,<br>
from F:\ITK\source\Insight\Code\Common\itkBarrier.h:21,<br>
from F:\ITK\source\Insight\Code\Common\itkBarrier.cxx:17:<br>
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: conflicting declaration 'typedef void*itk::MutexType'<br>
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error: 'itk::MutexType' has a previous declaration as `typedef struct pthread_mutex_t_*itk::MutexType'<br>
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: declaration of `typedef void*itk::MutexType'<br>
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error: conflicts with previous declaration `typedef struct pthread_mutex_t_*itk::MutexType'<br>
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: declaration of `typedef void*itk::MutexType'<br>
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error: conflicts with previous declaration `typedef struct pthread_mutex_t_*itk::MutexType'<br>
mingw32-make[4]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj] Error 1<br>
mingw32-make[3]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2<br>
mingw32-make[2]: *** [all] Error 2<br>
<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote>
</blockquote></div></div></div><br>
</blockquote></div><br>