[Insight-users] Cannot build Python wrappings under Windows 7 / MinGW

Bradley Lowekamp blowekamp at mail.nih.gov
Tue Sep 24 08:23:22 EDT 2013


Hello,

I don't think we are testing WrapITK against Python 3.3 on the dashboard.

This looks like a swig generated file. What version of swig are you using? The version ITK can build internally is 2.0.4, which may not have support for python 3+. I have had good luck with swig 2.0.9 with SimpleITK. I'd configure Wrap ITK to use this downloaded version of swig.

Brad

On Sep 24, 2013, at 3:57 AM, sebastien.brisard at ifsttar.fr wrote:

> Hi,
> I'm trying to install ITK 4.4.2 on my Windows 7 box using MinGW 32 (mingw32-base is in version 2013072200, everything up-to-date).
> I've come accross quite a few compilation errors, which I managed to overcome, but I am now stuck with the Python bindings (target ITKPyBasePython). I have installed the CPython 3.3 official binaries.
> Indeed, I get the following error message
> c:\src\InsightToolkit-4.4.2\build>mingw32-make ITKPyBasePython
> [  0%] Built target ITKPyBaseGccXML
> [  0%] Built target ITKPyBaseIdx
> [  0%] Built target ITKPyBaseSwig
> [100%] Built target swig
> Scanning dependencies of target ITKPyBasePython
> [100%] Building CXX object Wrapping/Generators/Python/PyBase/CMakeFiles/ITKPyBasePython.dir/ITKPyBasePython.cpp.obj
> C:\src\InsightToolkit-4.4.2\build\Wrapping\Generators\Python\PyBase\ITKPyBasePython.cpp: In function 'PyObject* PyInit__ITKPyBasePython()':
> C:\src\InsightToolkit-4.4.2\build\Wrapping\Generators\Python\PyBase\ITKPyBasePython.cpp:3768:21: error: 'init_pyBasePython' was not declared in this scope
>    init_pyBasePython();
>                      ^
> Wrapping\Generators\Python\PyBase\CMakeFiles\ITKPyBasePython.dir\build.make:78:
> recipe for target 'Wrapping/Generators/Python/PyBase/CMakeFiles/ITKPyBasePython.dir/ITKPyBasePython.cpp.obj' failed
> mingw32-make[3]: *** [Wrapping/Generators/Python/PyBase/CMakeFiles/ITKPyBasePython.dir/ITKPyBasePython.cpp.obj] Error 1
> CMakeFiles\Makefile2:10530: recipe for target 'Wrapping/Generators/Python/PyBase/CMakeFiles/ITKPyBasePython.dir/all' failed
> mingw32-make[2]: *** [Wrapping/Generators/Python/PyBase/CMakeFiles/ITKPyBasePython.dir/all] Error 2
> CMakeFiles\Makefile2:10542: recipe for target 'Wrapping/Generators/Python/PyBase/CMakeFiles/ITKPyBasePython.dir/rule' failed
> mingw32-make[1]: *** [Wrapping/Generators/Python/PyBase/CMakeFiles/ITKPyBasePython.dir/rule] Error 2
> Makefile:2678: recipe for target 'ITKPyBasePython' failed
> mingw32-make: *** [ITKPyBasePython] Error 2
> I can't make head or tail from this error message, and would appreciate any help!
> Thanks in advance,
> 
> Sébastien Brisard
> 
> Ecole des Ponts ParisTech, IFSTTAR, UMR CNRS 8205
> Laboratoire Navier
> 6 et 8 avenue Blaise-Pascal -- Cité Descartes
> Champs-sur-Marne
> F-77455 Marne-la-Vallée cedex 2
> France
> 
> +33(0)1 64 15 37 51
> sebastien.brisard at ifsttar.fr
> 
> 
> _____________________________________
> 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://www.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-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130924/9187c38b/attachment.htm>


More information about the Insight-users mailing list