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