[vtkusers] Compile Bug in VTK 5.6

Michael Jackson mike.jackson at bluequartz.net
Wed Jul 28 12:23:03 EDT 2010


I am getting the following compiler error for VTK 5.6

[ 57%] /Users/Shared/OpenSource/VTK/IO/vtkTIFFReader.cxx:811:19:  
error: 'EvaluateImageAt' is a protected
       member of 'vtkTIFFReader'
             self->EvaluateImageAt(image+imagepos,  
static_cast<T*>(buffer)+tilepos);
                   ^
In file included from /Users/Shared/OpenSource/VTK/IO/ 
vtkTIFFReader.cxx:15:
/Users/Shared/OpenSource/VTK/IO/vtkTIFFReader.h:116:7: note: declared  
protected here
   int EvaluateImageAt( void*, void* );
       ^
/Users/Shared/OpenSource/VTK/IO/vtkTIFFReader.cxx:829:47: error:  
'GetInternalImage' is a protected
       member of 'vtkTIFFReader'
   unsigned int isize = TIFFScanlineSize(self->GetInternalImage()- 
 >Image);
                                               ^
In file included from /Users/Shared/OpenSource/VTK/IO/ 
vtkTIFFReader.cxx:15:
/Users/Shared/OpenSource/VTK/IO/vtkTIFFReader.h:114:26: note: declared  
protected here
   vtkTIFFReaderInternal *GetInternalImage() { return this- 
 >InternalImage; }
                          ^
/Users/Shared/OpenSource/VTK/IO/vtkTIFFReader.cxx:852:21: error:  
'EvaluateImageAt' is a protected
       member of 'vtkTIFFReader'
         inc = self->EvaluateImageAt( image,
                     ^
In file included from /Users/Shared/OpenSource/VTK/IO/ 
vtkTIFFReader.cxx:15:
/Users/Shared/OpenSource/VTK/IO/vtkTIFFReader.h:116:7: note: declared  
protected here
   int EvaluateImageAt( void*, void* );
       ^

Looking at where those errors occur reveals that they are in template  
functions inside of ReadTiledImage and ReadScanlineImage in the  
vtkTIFFReader.cxx file. These functions appear never to be used  
anywhere in the code but if they _do_ get used then a compile error  
will be thrown at that point. The functions probably need to be moved  
to the vtkTIFFReader.h file instead of in the vtkTIFFReader.cxx file  
or the functions need to be removed if they are not being used at all.

  If the vtk-devs are ok with that I can submit a patch for someone to  
commit.
___________________________________________________________
Mike Jackson                      www.bluequartz.net
Principal Software Engineer       mike.jackson at bluequartz.net
BlueQuartz Software               Dayton, Ohio






More information about the vtkusers mailing list