[Insight-users] Automatic Junction Detection IJ 324, compile errors

Luis Ibanez luis.ibanez at kitware.com
Tue Mar 24 17:32:30 EDT 2009


Hi Oleksandr

Try replacing

             TInputImage::IndexType::IndexValueType

with

    typename TInputImage::IndexType::IndexValueType

It may be that the authors developed the code using one of
the Visual Studio compilers that have poor support for
the "typename" keyword.


    Let us know what you find


       Thanks


          Luis


-------------------------
Oleksandr Dzyubak wrote:
> 
> Dear ITKers,
> 
> I just downloaded Automatic Junction Detection (IJ Paper Id: 324)
> and tried to compile it on Linux Debian with gcc version 4.3.2 (Debian 
> 4.3.2-1.1).
> 
> Besides "itkJunctionDetectionFilter.h:4:35: error: 
> itkImagetoImageFilter.h: No such file or directory"
> which easy to correct, I got multiple errors like below.
> 
> ************** Errors begin ****
> 
> itkJunctionDetectionFilter.txx: In member function ‘void 
> itk::JunctionDetectionFilter<TInputImage>::GenerateData()’:
> /mnt/Public/Programs/ITK_Test/Skeletons/Automatic_Junction_Detection/Src/itkJunctionDetectionFilter.txx:69: 
> error: type/value mismatch at argument 1 in template parameter list for 
> ‘template<class T, unsigned int NVectorDimension> class itk::Vector’
> /mnt/Public/Programs/ITK_Test/Skeletons/Automatic_Junction_Detection/Src/itkJunctionDetectionFilter.txx:69: 
> error: expected a type, got ‘TInputImage::IndexType::IndexValueType’
> /mnt/Public/Programs/ITK_Test/Skeletons/Automatic_Junction_Detection/Src/itkJunctionDetectionFilter.txx:69: 
> error: invalid type in declaration before ‘;’ token
> 
> .........
> etc.
> ............
> 
> make[2]: *** 
> [CMakeFiles/itkJunctionDetectionFilter2DTest.dir/itkJunctionDetectionFilter2DTest.o] 
> Error 1
> make[1]: *** [CMakeFiles/itkJunctionDetectionFilter2DTest.dir/all] Error 2
> make: *** [all] Error 2
> 
> ************** Errors end ****
> 
> Any ideas how to fix that?
> 
> Thanks,
> Alex
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> 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
> 


More information about the Insight-users mailing list