Hi,<div><br></div><div>By looking a little more, i see that the options &quot;CMAKE_USE_WIN32_THREADS&quot; and &quot;CMAKE_USE_PTHREADS&quot; was checked in the configuration. </div><div><br></div><div>Now it&#39;s ok and compile !</div>

<div><br></div><div>Thanks</div><div><br></div><div>Vince</div><div><br><div class="gmail_quote">On Mon, Dec 28, 2009 at 18:33, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Luis,<br>
<br>
I&#39;m not sure we have a mingw build with gcc 4.4?<br>
<br>
Bill<br>
<div><div></div><div class="h5"><br>
On Mon, Dec 28, 2009 at 12:22 PM, Vincent LEFORT<br>
&lt;<a href="mailto:vincent.lefort@gmail.com">vincent.lefort@gmail.com</a>&gt; wrote:<br>
&gt; Hello, i&#39;ve the same problem. I can&#39;t compile ITK with mingw and gcc 4.4 on<br>
&gt; windows.<br>
&gt;<br>
&gt; I haven&#39;t enabled pthread (only check BUILD_EXAMPLES, BUILD_SHARED_LIBS,<br>
&gt; BUILD_TESTING with cmake-gui).<br>
&gt;<br>
&gt; Thanks for the help.<br>
&gt;<br>
&gt; Regards.<br>
&gt;<br>
&gt; Vincent<br>
&gt;<br>
&gt; ############## Error : ###############<br>
&gt;<br>
&gt; [ 45%] Building CXX object<br>
&gt; Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj<br>
&gt;<br>
&gt; In file included from<br>
&gt; E:\lib\InsightToolkit-3.16.0\Code\Common\/itkConditionVariable.h:31,<br>
&gt;                  from<br>
&gt; E:\lib\InsightToolkit-3.16.0\Code\Common\/itkBarrier.h:21,<br>
&gt;                  from<br>
&gt; E:\lib\InsightToolkit-3.16.0\Code\Common\itkBarrier.cxx:17:<br>
&gt; E:\lib\InsightToolkit-3.16.0\Code\Common\/itkMutexLock.h:50: error:<br>
&gt; conflicting declaration &#39;typedef void* itk::MutexType&#39;<br>
&gt; E:\lib\InsightToolkit-3.16.0\Code\Common\/itkMutexLock.h:46: error:<br>
&gt; &#39;itk::MutexType&#39; has a previous declaration as &#39;typedef struct<br>
&gt; pthread_mutex_t_* itk::MutexType&#39;<br>
&gt; mingw32-make[2]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj]<br>
&gt; Error 1<br>
&gt; mingw32-make[1]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2<br>
&gt; mingw32-make: *** [all] Error 2<br>
&gt;<br>
&gt; #####<br>
&gt;<br>
&gt; Hi 张宁,<br>
&gt;<br>
&gt;<br>
&gt; We build ITK every Night with MinGW.<br>
&gt;<br>
&gt;<br>
&gt; Please see the builds on:<br>
&gt;<br>
&gt;       dash14.kitware      Win32-mingw<br>
&gt;<br>
&gt; <a href="http://www.cdash.org/CDash/index.php?project=Insight&amp;date=2009-07-09" target="_blank">http://www.cdash.org/CDash/index.php?project=Insight&amp;date=2009-07-09</a><br>
&gt;<br>
&gt;<br>
&gt; Did you explicitly enabled pthreads ?<br>
&gt;<br>
&gt;<br>
&gt; Our Nightly build *does not* use pthreads.<br>
&gt;<br>
&gt;<br>
&gt; Please see its CMakeCache.txt file here:<br>
&gt; <a href="http://www.cdash.org/CDash/testDetails.php?test=26927876&amp;build=374501" target="_blank">http://www.cdash.org/CDash/testDetails.php?test=26927876&amp;build=374501</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;      Regards,<br>
&gt;<br>
&gt;<br>
&gt;          Luis<br>
&gt;<br>
&gt;<br>
&gt; --------------<br>
&gt; 张宁 wrote:<br>
&gt;&gt; Hello! I tried to compile the latest cvs ITK with mingw with the<br>
&gt;&gt; makefile generated by cmake. The compiler complained the following errors.<br>
&gt;&gt; [ 66%] Building CXX object<br>
&gt;&gt; Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj<br>
&gt;&gt; In file included from<br>
&gt;&gt; F:\ITK\source\Insight\Code\Common\itkConditionVariable.h:31,<br>
&gt;&gt;                  from F:\ITK\source\Insight\Code\Common\itkBarrier.h:21,<br>
&gt;&gt;                  from F:\ITK\source\Insight\Code\Common\itkBarrier.cxx:17:<br>
&gt;&gt; F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: conflicting<br>
&gt;&gt; declaration &#39;typedef void*itk::MutexType&#39;<br>
&gt;&gt; F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error:<br>
&gt;&gt; &#39;itk::MutexType&#39; has a previous declaration as `typedef struct<br>
&gt;&gt; pthread_mutex_t_*itk::MutexType&#39;<br>
&gt;&gt; F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: declaration<br>
&gt;&gt; of `typedef void*itk::MutexType&#39;<br>
&gt;&gt; F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error: conflicts<br>
&gt;&gt; with previous declaration `typedef struct pthread_mutex_t_*itk::MutexType&#39;<br>
&gt;&gt; F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: declaration<br>
&gt;&gt; of `typedef void*itk::MutexType&#39;<br>
&gt;&gt; F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error: conflicts<br>
&gt;&gt; with previous declaration `typedef struct pthread_mutex_t_*itk::MutexType&#39;<br>
&gt;&gt; mingw32-make[4]: ***<br>
&gt;&gt; [Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj] Error 1<br>
&gt;&gt; mingw32-make[3]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2<br>
&gt;&gt; mingw32-make[2]: *** [all] Error 2<br>
&gt;<br>
</div></div>&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br></div>