[Insight-users] question Demon Registration

Dey, Joyoni Joyoni.Dey at umassmed.edu
Wed Mar 28 14:22:27 EDT 2012


I downloaded the and installed the following
http://www.insight-journal.org/browse/publication/154

I have InsightToolkit-3.20.0 installed. cmake version 2.8.4

I am getting following error when compiling: 

Did anyone have same errors ?

thanks much for any help.

Joyoni

--------------------------
SNAPSHOT OF ERROR:


            from /home/joyoni/itk_practice/itk_registration/src/DiffeomorphicDemons-2009-06-Vercauteren-IJSource/DemonsRegistration.cxx:16:
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx: In static member function ‘static void itk::ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToGray(InputPixelType*, int, OutputPixelType*, size_t)’:
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:255:5: error: ‘ptrdiff_t’ was not declared in this scope
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:255:5: note: suggested alternatives:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:255:15: error: expected ‘;’ before ‘diff’
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:268:20: error: ‘diff’ was not declared in this scope
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx: In static member function ‘static void itk::ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToRGB(InputPixelType*, int, OutputPixelType*, size_t)’:
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:384:5: error: ‘ptrdiff_t’ was not declared in this scope
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:384:5: note: suggested alternatives:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:384:15: error: expected ‘;’ before ‘diff’
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:398:20: error: ‘diff’ was not declared in this scope
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx: In static member function ‘static void itk::ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToRGBA(InputPixelType*, int, OutputPixelType*, size_t)’:
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:522:5: error: ‘ptrdiff_t’ was not declared in this scope
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:522:5: note: suggested alternatives:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:522:15: error: expected ‘;’ before ‘diff’
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:539:20: error: ‘diff’ was not declared in this scope
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx: In static member function ‘static void itk::ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToComplex(InputPixelType*, int, OutputPixelType*, size_t)’:
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:664:3: error: ‘ptrdiff_t’ was not declared in this scope
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:664:3: note: suggested alternatives:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:664:13: error: expected ‘;’ before ‘diff’
/usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:675:20: error: ‘diff’ was not declared in this scope
make[2]: *** [CMakeFiles/DemonsRegistration.dir/DemonsRegistration.cxx.o] Error 1
make[1]: *** [CMakeFiles/DemonsRegistration.dir/all] Error 2
make: *** [all] Error 2




More information about the Insight-users mailing list