[vtkusers] Compile Bug in VTK 5.6
David Gobbi
david.gobbi at gmail.com
Wed Jul 28 13:04:20 EDT 2010
Do you mean VTK git master? There's a difference between VTK 5.6 and
the latest VTK from git.
I think that vtkTIFFReader.cxx has some old templated functions inside
of it that aren't used anymore. The right way to patch the file would
be to simply remove those functions (ReadTiledImage and
ReadScanlineImage) completely.
David
On Wed, Jul 28, 2010 at 10:23 AM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
> 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
>
>
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list