[Insight-users] Problems building python bindings for itk

Matt McCormick matt.mccormick at kitware.com
Thu Jul 12 11:06:41 EDT 2012


Hi Willi,

On Thu, Jul 12, 2012 at 2:37 PM, Willi <surfersparadise85-itk at yahoo.com>wrote:

> OK not entirely compiling
>
> ------ Erstellen gestartet: Projekt: ITKIOImageBaseGccXML, Konfiguration:
> Release x64 ------
> Der Buildvorgang wurde am 12.07.2012 16:23:55 gestartet.
> InitializeBuildStatus:
>
> "x64\Release\ITKIOImageBaseGccXML\ITKIOImageBaseGccXML.unsuccessfulbuild"
> wird erstellt, da "AlwaysCreate" angegeben wurde.
> CustomBuild:
>   Building Custom Rule
> C:/ITK/src/Modules/IO/ImageBase/wrapping/CMakeLists.txt
>   CMake does not need to re-run because
> C:\ITK\bin\Wrapping\Modules\ITKIOImageBase\CMakeFiles\generate.stamp is
> up-to-date.
>   Generating ITKIOImageBaseBase.xml
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:
> In member function 'typename _Myvec::const_reference
> std::_Vector_const_iterator<_Myvec>::operator*() const [with _Myvec =
> std::_Vector_val<double, std::allocator<double> >]':
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/memory:376:
>   instantiated from '_FwdIt std::_Uninit_copy(_InIt, _InIt, _FwdIt,
> _Alloc&, std::_Nonscalar_ptr_iterator_tag) [with _InIt =
> std::_Vector_const_iterator<std::_Vector_val<double, std::allocator<double>
> > >, _FwdIt = double*, _Alloc = std::allocator<double>]'
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/memory:414:
>   instantiated from '_FwdIt std::_Uninitialized_copy(_InIt, _InIt, _FwdIt,
> _Alloc&) [with _InIt = std::_Vector_const_iterator<std::_Vector_val<double,
> std::allocator<double> > >, _FwdIt = double*, _Alloc =
> std::allocator<double>]'
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:1318:
>   instantiated from 'typename std::_Vector_val<_Ty, _Ax>::_Alty::pointer
> std::vector<_Ty, _Ax>::_Ucopy(_Iter, _Iter, typename std::_Vector_val<_Ty,
> _Ax>::_Alty::pointer) [with _Iter =
> std::_Vector_const_iterator<std::_Vector_val<double, std::allocator<double>
> > >, _Ty = double, _Ax = std::allocator<double>]'
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:538:
>   instantiated from 'std::vector<_Ty, _Ax>::vector(const std::vector<_Ty,
> _Ax>&) [with _Ty = double, _Ax = std::allocator<double>]'
>   C:/ITK/src/Modules/IO/ImageBase/include/itkImageIOBase.h:148:
> instantiated from here
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:82:
> error: '__noop' was not declared in this scope
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error
> MSB6006: "cmd.exe" wurde mit dem Code 1 beendet.
>
> What can I do? I am really desperated
>

Sorry to hear you are having difficulty.  Possible courses of action:

- Setup a nightly dashboard build for VS2010 / WrapITK.  The saying "if its
not tested, its broken" applies, and without dashboard build, wrapping for
VS2010 will likely remain broken.  More details here:

  http://www.itk.org/Wiki/ITK/Git/Dashboard

- Use a different compiler; I have heard that VS2008 works better, but I
have not tried myself.  gcc 4.6 on linux works well.

- Find the source of the error yourself, and submit the fix.  More details
here:

  http://www.itk.org/Wiki/ITK/Git

- Hire someone like Kitware to fix the problem.  More details here:

  http://www.kitware.com/products/consulting.html

HTH,
Matt


>
> P.S.: Sorry for spamming
>
>   ------------------------------
> *Von:* Willi <surfersparadise85-itk at yahoo.com>
> *An:* Bill Lorensen <bill.lorensen at gmail.com>
> *CC:* "insight-users at itk.org" <insight-users at itk.org>
> *Gesendet:* 16:21 Donnerstag, 12.Juli 2012
>
> *Betreff:* Re: [Insight-users] Problems building python bindings for itk
>
> Obviously you are right: With the current Python 2.7.3 it is compiling
> fine. Its not yet finished but so far no errors.
>
> Will there be support for Python 3.x in an upcoming ITK version?
>
>   ------------------------------
> *Von:* Bill Lorensen <bill.lorensen at gmail.com>
> *An:* Willi <surfersparadise85-itk at yahoo.com>
> *CC:* "insight-users at itk.org" <insight-users at itk.org>
> *Gesendet:* 3:50 Donnerstag, 12.Juli 2012
> *Betreff:* Re: [Insight-users] Problems building python bindings for itk
>
> Maybe some else can comment, but I do not think ITK works with Python 3.
>
> On Wed, Jul 11, 2012 at 9:45 PM, Willi <surfersparadise85-itk at yahoo.com>wrote:
>
> Now using ITK v4.2 and I got rid of most of the errors but I still think
> Python 3.2 is not yet fully supported since I get errors like this:
>
> ------ Erstellen gestartet: Projekt: ITKStatisticsSwig, Konfiguration:
> Release x64 ------
> Der Buildvorgang wurde am 12.07.2012 03:24:55 gestartet.
> InitializeBuildStatus:
>   "x64\Release\ITKStatisticsSwig\ITKStatisticsSwig.unsuccessfulbuild" wird
> erstellt, da "AlwaysCreate" angegeben wurde.
> CustomBuild:
>   Building Custom Rule
> C:/ITK/src/Modules/Numerics/Statistics/wrapping/CMakeLists.txt
>   CMake does not need to re-run because
> C:\ITK\bin\Wrapping\Modules\ITKStatistics\CMakeFiles\generate.stamp is
> up-to-date.
>   Generating itkSample.xml
>   Generating itkHistogram.xml
>   Generating itkListSample.xml
>   Generating itkMembershipFunctionBase.xml
>   Generating itkDistanceMetric.xml
>   Generating itkEuclideanDistanceMetric.xml
>   Generating itkHistogramToEntropyImageFilter.xml
>   Generating itkHistogramToIntensityImageFilter.xml
>   Generating itkHistogramToLogProbabilityImageFilter.xml
>   Generating itkHistogramToProbabilityImageFilter.xml
>   Generating itkHistogramToRunLengthFeaturesFilter.xml
>   Generating itkHistogramToTextureFeaturesFilter.xml
>   Generating itkImageToHistogramFilter.xml
>   Generating itkKdTree.xml
>   Generating itkMaskedImageToHistogramFilter.xml
>   Generating itkScalarImageToCooccurrenceMatrixFilter.xml
>   Generating itkScalarImageToHistogramGenerator.xml
>   Generating itkScalarImageToRunLengthFeaturesFilter.xml
>   Generating itkScalarImageToRunLengthMatrixFilter.xml
>   Generating itkScalarImageToTextureFeaturesFilter.xml
>   Generating ../../Typedefs/itkSample.idx
>   Traceback (most recent call last):
>     File "C:/ITK/src/Wrapping/Generators/SwigInterface/idx.py", line 7, in
> <module>
>       import pygccxml, sys, cStringIO
>     File
> "C:\ITK\src\Wrapping\Generators\SwigInterface\pygccxml-1.0.0\pygccxml\__init__.py",
> line 32, in <module>
>       import pygccxml.declarations as declarations
>     File
> "C:\ITK\src\Wrapping\Generators\SwigInterface\pygccxml-1.0.0\pygccxml\declarations\__init__.py",
> line 10, in <module>
>       import compilers
>   ImportError: No module named compilers
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error
> MSB6006: "cmd.exe" wurde mit dem Code 1 beendet.
>
>
> Another strange error I got is this one and I didnt find out why:
>
>
> ------ Erstellen gestartet: Projekt: ITKIOImageBaseGccXML, Konfiguration:
> Release x64 ------
> Der Buildvorgang wurde am 12.07.2012 03:24:51 gestartet.
> InitializeBuildStatus:
>
> "x64\Release\ITKIOImageBaseGccXML\ITKIOImageBaseGccXML.unsuccessfulbuild"
> wird erstellt, da "AlwaysCreate" angegeben wurde.
> CustomBuild:
>   Building Custom Rule
> C:/ITK/src/Modules/IO/ImageBase/wrapping/CMakeLists.txt
>   CMake does not need to re-run because
> C:\ITK\bin\Wrapping\Modules\ITKIOImageBase\CMakeFiles\generate.stamp is
> up-to-date.
>   Generating ITKIOImageBaseBase.xml
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:
> In member function 'typename _Myvec::const_reference
> std::_Vector_const_iterator<_Myvec>::operator*() const [with _Myvec =
> std::_Vector_val<double, std::allocator<double> >]':
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/memory:376:
>   instantiated from '_FwdIt std::_Uninit_copy(_InIt, _InIt, _FwdIt,
> _Alloc&, std::_Nonscalar_ptr_iterator_tag) [with _InIt =
> std::_Vector_const_iterator<std::_Vector_val<double, std::allocator<double>
> > >, _FwdIt = double*, _Alloc = std::allocator<double>]'
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/memory:414:
>   instantiated from '_FwdIt std::_Uninitialized_copy(_InIt, _InIt, _FwdIt,
> _Alloc&) [with _InIt = std::_Vector_const_iterator<std::_Vector_val<double,
> std::allocator<double> > >, _FwdIt = double*, _Alloc =
> std::allocator<double>]'
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:1318:
>   instantiated from 'typename std::_Vector_val<_Ty, _Ax>::_Alty::pointer
> std::vector<_Ty, _Ax>::_Ucopy(_Iter, _Iter, typename std::_Vector_val<_Ty,
> _Ax>::_Alty::pointer) [with _Iter =
> std::_Vector_const_iterator<std::_Vector_val<double, std::allocator<double>
> > >, _Ty = double, _Ax = std::allocator<double>]'
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:538:
>   instantiated from 'std::vector<_Ty, _Ax>::vector(const std::vector<_Ty,
> _Ax>&) [with _Ty = double, _Ax = std::allocator<double>]'
>   C:/ITK/src/Modules/IO/ImageBase/include/itkImageIOBase.h:148:
> instantiated from here
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:82:
> error: '__noop' was not declared in this scope
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error
> MSB6006: "cmd.exe" wurde mit dem Code 1 beendet.
>
>
> Any help is so much appreciated.
>
> Cheers,
> Willi
>
>   ------------------------------
> *Von:* Willi <surfersparadise85-itk at yahoo.com>
> *An:* "insight-users at itk.org" <insight-users at itk.org>
> *Gesendet:* 22:08 Mittwoch, 11.Juli 2012
> *Betreff:* [Insight-users] Problems building python bindings for itk
>
> Hello all,
>
> since a couple of days I am trying to build ITK v4.1 as downloaded from
> the webpage.
> The main ITK building is working without any problems but if I want to add
> wrapping support nothing is working.
>
> I am using a Windows 7 x64 with Visual Studio 10 and want to add wrapping
> support for my installed Python version 3.2
>
> I downloaded GCCXML on my own using cvs (since it didnt work with GCCXML
> downloaded and used within the ITK building process) then made the CMake
> stuff and also built the target vcInstallPatch which I assumed will get me
> rid of the "VC10 not supported"-error that I received when using ITK and I
> receive the error:
>
> CUSTOMBUILD : error : Could not run
> C:/GCCXML/bin/bin/Release/gccxml_cc1plus.exe:
> Der Dateiname oder die Erweiterung ist zu lang
>
> "Der Dateiname oder die Erweiterung ist zu lang" == "Filename or extension
> is too long"
>
> Can you please help me. I am freakin out since I am trying to compile it
> for three days now.
>
>
> Cheers,
> Willi
>
> _____________________________________
> 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
>
>
>
> _____________________________________
> 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
>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
>
>
>
> _____________________________________
> 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
>
>
>
> _____________________________________
> 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/20120712/82c09220/attachment-0001.htm>


More information about the Insight-users mailing list