<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'<br>
CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x53): undefined reference to `__imp__Py_NoneStruct'<br>CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x21e): undefined reference to `__imp__Py_NoneStruct'<br>
CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x243): undefined reference to `__imp__Py_NoneStruct'<br>CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x284): undefined reference to `__imp__Py_NoneStruct'<br>
CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x37c): undefined reference to `__imp__Py_NotImplementedStruct'<br>CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x8a9): undefined reference to `__imp__Py_NoneStruct'<br>
CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x14a6): undefined reference to `__imp_Py_InitModule4'<br>CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj):ITKPyBasePython.cpp:(.text+0x1ade): undefined reference to `__imp__Py_NoneStruct'<br>
c:\programs\mingw\bin/ld.exe: CMakeFiles\ITKPyBasePython.dir/objects.a(ITKPyBasePython.cpp.obj): bad reloc address 0x18 in section `.data'<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"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></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>
><br>
> I ran ITK 4.2.1 on Win7 mingw32 bits and was able to compile ITK core (after<br>
> 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>
> After that, when the compilation for<br>
> python came, it did not work because I have Python 64 bits libs.<br>
><br>
> After this mistake I install mingw64 bits and started the process all over<br>
> for 64bits end to end..<br>
<br>
Winter is coming, computers can help heat the house... ;-).<br>
<br>
><br>
> In my second try, the compilation for the ITK core stop with a failure<br>
> discussed previsouly in the list but without a solution. The issue is below:<br>
><br>
> I am running out of ideas. If i have any suggestion to move further I will<br>
> 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&atid=102435&aid=2962480&group_id=2435" target="_blank">http://sourceforge.net/tracker/?func=detail&atid=102435&aid=2962480&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>
><br>
> Regards, Doug<br>
><br>
><br>
> OUTPUT ERROR<br>
> --------------------------------------------------------<br>
> c:\programs\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/include/emmintrin.h:221:1:<br>
> error: previous declaration of 'long long int _mm_cvtsi128_si64x(__m128i)'<br>
> with 'C++' linkage<br>
> In file included from<br>
> c:\programs\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/winnt.h:1446:0,<br>
> from<br>
> c:\programs\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/windef.h:137,<br>
> from<br>
> c:\programs\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/windows.h:59,<br>
> from<br>
> C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkWindows.h:30,<br>
> from<br>
> C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkThreadSupport.h:34,<br>
> from<br>
> C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkSimpleFastMutexLock.h:32,<br>
> from<br>
> C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkLightObject.h:24,<br>
> from<br>
> C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkObject.h:31,<br>
> from<br>
> C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkVector.hxx:23,<br>
> from<br>
> C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkVector.h:304,<br>
> from<br>
> C:/Lib/ITK/ITKSRC/Modules/Core/Common/include/itkNumericTraitsVectorPixel.h:22,<br>
> from<br>
> C:\Lib\ITK\ITKSRC\Modules\Core\Common\src\itkNumericTraitsVectorPixel.cxx:18:<br>
> c:\programs\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/intrin.h:958:5:<br>
> error: conflicts with new declaration with 'C' link<br>
> ge<br>
> mingw32-make[2]: ***<br>
> [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkNumericTraitsVectorPixel.cxx.obj]<br>
> Error 1<br>
> mingw32-make[1]: *** [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/all]<br>
> Error 2<br>
> mingw32-make: *** [all] Error 2<br>
><br>
><br>
><br>
><br>
> On Tue, Oct 9, 2012 at 2:38 PM, Matt McCormick <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>><br>
> wrote:<br>
>><br>
>> On Tue, Oct 9, 2012 at 3:52 PM, douglas souza <<a href="mailto:dougnsouza@gmail.com">dougnsouza@gmail.com</a>><br>
>> wrote:<br>
>> > I will try MinGW in my virtual machine and will share the results with<br>
>> > you.<br>
>><br>
>> Great, thanks! Please also send the result to the mailing list.<br>
>><br>
>> Thanks,<br>
>> Matt<br>
>><br>
>><br>
>> ><br>
>> > regards,Doug<br>
>> ><br>
>> > On Tue, Oct 9, 2012 at 10:21 AM, Matt McCormick<br>
>> > <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Hi Doug,<br>
>> >><br>
>> >> > Is python wrap working for vs10 with ITK 4.2.1 ?<br>
>> >><br>
>> >> No, not at this time-- GCCXML needs to be updated for VS10. VS9 work<br>
>> >> is underway. MinGW may be another option, but I have yet to test it.<br>
>> >><br>
>> >> Thanks,<br>
>> >> Matt<br>
>> >><br>
>> >><br>
>> >> ><br>
>> >> > Sorry if this has been answer already.<br>
>> >> ><br>
>> >> > Doug<br>
>> >> ><br>
>> >> > On Aug 29, 2012 8:38 PM, "Matt McCormick"<br>
>> >> > <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>><br>
>> >> > wrote:<br>
>> >> >><br>
>> >> >> Hi,<br>
>> >> >><br>
>> >> >> Thanks to another outstanding ITK community member, Constantine<br>
>> >> >> Zakkaroff, we have a new Nightly Expected Python wrapping with<br>
>> >> >> Visual<br>
>> >> >> Studio 2008! It is named:<br>
>> >> >><br>
>> >> >> Win64-VS9-Release-WrapITK<br>
>> >> >><br>
>> >> >> Many thanks to Constantine.<br>
>> >> >><br>
>> >> >> As a reminder, dashboard setup instructions can be found here:<br>
>> >> >><br>
>> >> >> <a href="http://www.itk.org/Wiki/ITK/Git/Dashboard" target="_blank">http://www.itk.org/Wiki/ITK/Git/Dashboard</a><br>
>> >> >><br>
>> >> >> When making additions / changes to the Nightly submissions, please<br>
>> >> >> ping the list and myself if they should be added or removed from the<br>
>> >> >> Nightly Expected or Nightly External section.<br>
>> >> >><br>
>> >> >> Thanks,<br>
>> >> >> Matt<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>
>> >> >> Kitware offers ITK Training Courses, for more information visit:<br>
>> >> >> <a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
>> >> >><br>
>> >> >> Please keep messages on-topic and check the ITK FAQ at:<br>
>> >> >> <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-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
>> ><br>
>> ><br>
><br>
><br>
</blockquote></div><br>