[Insight-users] Python Wrapping error, ITKIOMeta

Hadjilucas, Lucas lucas.hadjilucas05 at imperial.ac.uk
Mon Jan 28 13:13:11 EST 2013


Hi,

(Sorry if this message has been sent twice... i am not sure if the first one got through)
I am trying to compile the latest ITK from the git repository head and when enabling the ITK_WRAP_PYTHON, I get the following compilation errors:

[ 38%] Generating itkMetaImageIO.xml
[ 38%] Built target ITKIONIFTIGccXML
[ 38%] Built target ITKIONRRDGccXML
[ 38%] Built target ITKIOPNGGccXML
[ 38%] Built target ITKIOStimulateGccXML
[ 38%] Built target ITKIOVTKGccXML
[ 38%] Built target ITKTestKernelGccXML
[ 38%] Built target ITKImageComposeGccXML
[ 38%] Generating itkMeshToMeshFilter.xml
In file included from /home/scrabble/apps/itk/ITK/bin/Wrapping/Modules/ITKIOMeta/itkMetaImageIO.cxx:21:
/home/scrabble/apps/itk/ITK/Modules/IO/Meta/include/itkMetaImageIO.h:72: error: ISO C++ forbids declaration of 'MetaImage' with no type
/home/scrabble/apps/itk/ITK/Modules/IO/Meta/include/itkMetaImageIO.h:72: error: expected ';' before '*' token
/home/scrabble/apps/itk/ITK/Modules/IO/Meta/include/itkMetaImageIO.h:156: error: 'MetaImage' does not name a type
/home/scrabble/apps/itk/ITK/Modules/IO/Meta/include/itkMetaImageIO.h: In member function 'virtual void itk::MetaImageIO::SetDoublePrecision(unsigned int)':
/home/scrabble/apps/itk/ITK/Modules/IO/Meta/include/itkMetaImageIO.h:96: error: 'm_MetaImage' was not declared in this scope
/home/scrabble/apps/itk/ITK/Modules/IO/Meta/include/itkMetaImageIO.h: In member function 'virtual bool itk::MetaImageIO::CanStreamRead()':
/home/scrabble/apps/itk/ITK/Modules/IO/Meta/include/itkMetaImageIO.h:122: error: 'm_MetaImage' was not declared in this scope
make[2]: *** [Wrapping/Modules/ITKIOMeta/itkMetaImageIO.xml] Error 1
make[1]: *** [Wrapping/Modules/ITKIOMeta/CMakeFiles/ITKIOMetaGccXML.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


Any idea why this is happening ? 

Kind regards,
Lucas


More information about the Insight-users mailing list