[Insight-users] Problems building python bindings for itk

Willi surfersparadise85-itk at yahoo.com
Fri Jul 13 18:55:14 EDT 2012


Hi Matthias,

thank you very much.
You also changed in SwigInterface/CMakeLists.txt the name of swigwin to swig. This is also helpful since I had the same problem too.
The last remaining error looks like this:

------ Erstellen gestartet: Projekt: ITKAntiAliasPython, Konfiguration: Release x64 ------
Der Buildvorgang wurde am 13.07.2012 19:57:15 gestartet.
InitializeBuildStatus:
  Aktualisieren des Timestamps von "ITKAntiAliasPython.dir\Release\ITKAntiAliasPython.unsuccessfulbuild".
CustomBuild:
  Building Custom Rule C:/ITK/src/Modules/Filtering/AntiAlias/wrapping/CMakeLists.txt
  CMake does not need to re-run because C:\ITK\bin\Wrapping\Modules\ITKAntiAlias\CMakeFiles\generate.stamp is up-to-date.
  Generating itkAntiAliasBinaryImageFilter.xml
  Generating ../../Typedefs/itkAntiAliasBinaryImageFilter.idx
  Generating ../../Typedefs/itkAntiAliasBinaryImageFilter.i, ../../Typedefs/itkAntiAliasBinaryImageFilterSwigInterface.h
  Traceback (most recent call last):
    File "C:/ITK/src/Wrapping/Generators/SwigInterface/igenerator.py", line 560, in <module>
      load_mdx(f)
    File "C:/ITK/src/Wrapping/Generators/SwigInterface/igenerator.py", line 319, in load_mdx
      load_mdx(os.path.dirname(file_name)+os.sep+l.strip())
    File "C:/ITK/src/Wrapping/Generators/SwigInterface/igenerator.py", line 319, in load_mdx
      load_mdx(os.path.dirname(file_name)+os.sep+l.strip())
    File "C:/ITK/src/Wrapping/Generators/SwigInterface/igenerator.py", line 319, in load_mdx
      load_mdx(os.path.dirname(file_name)+os.sep+l.strip())
    File "C:/ITK/src/Wrapping/Generators/SwigInterface/igenerator.py", line 319, in load_mdx
      load_mdx(os.path.dirname(file_name)+os.sep+l.strip())
    File "C:/ITK/src/Wrapping/Generators/SwigInterface/igenerator.py", line 321, in load_mdx
      load_idx(os.path.dirname(file_name)+os.sep+l.strip())
    File "C:/ITK/src/Wrapping/Generators/SwigInterface/igenerator.py", line 286, in load_idx
      f = file(file_name)
  IOError: [Errno 2] No such file or directory: 'C:/ITK/bin/Wrapping/Typedefs\\ITKIOImageBaseBase.idx'
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" wurde mit dem Code 1 beendet.

but I think this is an easy one.
I am going to tackle this problem tomorrow and upload the patch.

Cheers,
Willi



>________________________________
> Von: Matthias Seise <mseise at gmail.com>
>An: surfersparadise85-itk at yahoo.com 
>CC: Insight-users at itk.org 
>Gesendet: 21:04 Donnerstag, 12.Juli 2012
>Betreff: RE: Problems building python bindings for itk
> 
>Hi Willi,
>
>I had the same problem with VS 2008 - you need to add the gccxml flag -D"_HAS_TR1=0"
>I just submitted a patch for compiling wrapITK for python 2.7, 64 bit (see http://review.source.kitware.com/#/c/6411/)
>
>Good luck!
>
>Matthias
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120713/eec263c5/attachment.htm>


More information about the Insight-users mailing list