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

sebastien.brisard at ifsttar.fr sebastien.brisard at ifsttar.fr
Tue Sep 24 03:57:00 EDT 2013


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 



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


More information about the Insight-users mailing list