<div>Matt,</div><div> </div><div>I applied the fix you told me and install mingw64 bits. Now I am stuck at the wrap itself. Here is my output for compilation using mingw64.   </div><div> </div><div>regards,Doug</div><div> </div>

<div>[ 22%] Built target swig-install<br>Linking CXX shared module ..\..\..\..\lib\_ITKPyBasePython.pyd<br>CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x33): undefined reference to `__imp__Py_NoneStruct&#39;<br>

CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x53): undefined reference to `__imp__Py_NoneStruct&#39;<br>CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x21e): undefined reference to `__imp__Py_NoneStruct&#39;<br>

CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x243): undefined reference to `__imp__Py_NoneStruct&#39;<br>CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x284): undefined reference to `__imp__Py_NoneStruct&#39;<br>

CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x37c): undefined reference to `__imp__Py_NotImplementedStruct&#39;<br>CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x8a9): undefined reference to `__imp__Py_NoneStruct&#39;<br>

CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x14a6): undefined reference to `__imp_Py_InitModule4&#39;<br>CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x1ade): undefined reference to `__imp__Py_NoneStruct&#39;<br>

c:\programs\mingw\bin/ld.exe: CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj): bad reloc address 0x18 in section `.data&#39;<br>collect2.exe: error: ld returned 1 exit status<br>mingw32-make[2]: *** [lib/_ITKPyBasePython.pyd] Error 1<br>

mingw32-make[1]: *** [Wrapping/Generators/Python/PyBase/CMakeFiles/ITKPyBasePython.dir/all] Error 2<br>mingw32-make: *** [all] Error 2<br><br></div><div class="gmail_quote">On Thu, Oct 11, 2012 at 11:45 AM, Matt McCormick <span dir="ltr">&lt;<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>&gt;</span> wrote:<br>

<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">Hi Doug,<br>
&gt;<br>
&gt; I ran ITK 4.2.1 on Win7 mingw32 bits and was able to compile ITK core (after<br>
&gt; fixing a issue with float.h include).<br>
<br>
I have encountered this issue, too.  I think the real solution is to<br>
push a fix to upstream GCC.  On my todo list.<br>
<br>
&gt; After that, when the compilation for<br>
&gt; python came, it did not work because I have Python 64 bits libs.<br>
&gt;<br>
&gt; After this mistake I install mingw64 bits and started the process all over<br>
&gt; for 64bits end to end..<br>
<br>
Winter is coming, computers can help heat the house... ;-).<br>
<br>
&gt;<br>
&gt; In my second try, the compilation for the ITK core stop with a failure<br>
&gt; discussed previsouly in the list but without a solution. The issue is below:<br>
&gt;<br>
&gt; I am running out of ideas. If i have any suggestion to move further I will<br>
&gt; test again and will share more of the results with the list.<br>
<br>
Please test and review this patch set:<br>
<br>
  <a href="http://review.source.kitware.com/#/c/7873/" target="_blank">http://review.source.kitware.com/#/c/7873/</a><br>
<br>
According to here:<br>
<br>
  <a href="http://sourceforge.net/tracker/?func=detail&amp;atid=102435&amp;aid=2962480&amp;group_id=2435" target="_blank">http://sourceforge.net/tracker/?func=detail&amp;atid=102435&amp;aid=2962480&amp;group_id=2435</a><br>


  <a href="http://sourceforge.net/projects/mingw-w64/forums/forum/723798/topic/5553218" target="_blank">http://sourceforge.net/projects/mingw-w64/forums/forum/723798/topic/5553218</a><br>
<br>
it may fix the problem.<br>
<br>
Thanks,<br>
Matt<br>
<br>
&gt;<br>
&gt; Regards, Doug<br>
&gt;<br>
&gt;<br>
&gt; OUTPUT ERROR<br>
&gt; --------------------------------------------------------<br>
&gt; c:\programs\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/include/emmintrin.h:221:1:<br>
&gt; error: previous declaration of &#39;long long int _mm_cvtsi128_si64x(__m128i)&#39;<br>
&gt; with &#39;C++&#39; linkage<br>
&gt; In file included from<br>
&gt; c:\programs\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/winnt.h:1446:0,<br>
&gt;                  from<br>
&gt; c:\programs\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/windef.h:137,<br>
&gt;                  from<br>
&gt; c:\programs\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/windows.h:59,<br>
&gt;                  from<br>
&gt; C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkWindows.h:30,<br>
&gt;                  from<br>
&gt; C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkThreadSupport.h:34,<br>
&gt;                  from<br>
&gt; C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkSimpleFastMutexLock.h:32,<br>
&gt;                  from<br>
&gt; C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkLightObject.h:24,<br>
&gt;                  from<br>
&gt; C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkObject.h:31,<br>
&gt;                  from<br>
&gt; C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkVector.hxx:23,<br>
&gt;                  from<br>
&gt; C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkVector.h:304,<br>
&gt;                  from<br>
&gt; C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkNumericTraitsVectorPixel.h:22,<br>
&gt;                  from<br>
&gt; C:\Lib\ITK\ITKSRC\Modules\Core\Common\src\itkNumericTraitsVectorPixel.cxx:18:<br>
&gt; c:\programs\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/intrin.h:958:5:<br>
&gt; error: conflicts with new declaration with &#39;C&#39; link<br>
&gt; ge<br>
&gt; mingw32-make[2]: ***<br>
&gt; [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkNumericTraitsVectorPixel.cxx.obj]<br>
&gt; Error 1<br>
&gt; mingw32-make[1]: *** [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/all]<br>
&gt; Error 2<br>
&gt; mingw32-make: *** [all] Error 2<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Oct 9, 2012 at 2:38 PM, Matt McCormick &lt;<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Oct 9, 2012 at 3:52 PM, douglas souza &lt;<a href="mailto:dougnsouza@gmail.com">dougnsouza@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; I will try MinGW in my virtual machine and will share the results with<br>
&gt;&gt; &gt; you.<br>
&gt;&gt;<br>
&gt;&gt; Great, thanks!  Please also send the result to the mailing list.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Matt<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; regards,Doug<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Tue, Oct 9, 2012 at 10:21 AM, Matt McCormick<br>
&gt;&gt; &gt; &lt;<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hi Doug,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Is python wrap working for vs10 with ITK 4.2.1 ?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; No, not at this time-- GCCXML needs to be updated for VS10.  VS9 work<br>
&gt;&gt; &gt;&gt; is underway.  MinGW may be another option, but I have yet to test it.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thanks,<br>
&gt;&gt; &gt;&gt; Matt<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Sorry if this has been answer already.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Doug<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; On Aug 29, 2012 8:38 PM, &quot;Matt McCormick&quot;<br>
&gt;&gt; &gt;&gt; &gt; &lt;<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>&gt;<br>
&gt;&gt; &gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Hi,<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Thanks to another outstanding ITK community member, Constantine<br>
&gt;&gt; &gt;&gt; &gt;&gt; Zakkaroff, we have a new Nightly Expected Python wrapping with<br>
&gt;&gt; &gt;&gt; &gt;&gt; Visual<br>
&gt;&gt; &gt;&gt; &gt;&gt; Studio 2008!  It is named:<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;   Win64-VS9-Release-WrapITK<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Many thanks to Constantine.<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; As a reminder, dashboard setup instructions can be found here:<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;   <a href="http://www.itk.org/Wiki/ITK/Git/Dashboard" target="_blank">http://www.itk.org/Wiki/ITK/Git/Dashboard</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; When making additions / changes to the Nightly submissions, please<br>
&gt;&gt; &gt;&gt; &gt;&gt; ping the list and myself if they should be added or removed from the<br>
&gt;&gt; &gt;&gt; &gt;&gt; Nightly Expected or Nightly External section.<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Thanks,<br>
&gt;&gt; &gt;&gt; &gt;&gt; Matt<br>
&gt;&gt; &gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt;&gt; &gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt;&gt; &gt;&gt; &gt;&gt; <a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt;&gt; &gt;&gt; &gt;&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt;&gt; &gt;&gt; <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</blockquote></div><br>