[vtkusers] upgrade vtk from vtk 5.0 to 5.8

Jothybasu Selvaraj jothybasu at gmail.com
Fri Jun 22 07:18:56 EDT 2012


vtk 5.10 is the latest one, why you need 5.8?

Jothy

On Fri, Jun 22, 2012 at 11:33 AM, Gishara Indeewarie <gish.777 at gmail.com>wrote:

> Hi all,
>
> I want to upgrade vtk version of my project from 5.0 to 5.8. When I tried
> to link vtk 5.8 I get erors as follow:
>
> C:\VTK_New\include\vtk-5.8\vtkSmartPointer.h(43) : error C2664:
> 'vtkSmartPointer<T>::CheckType' : cannot convert parameter 1 from
> 'vtkScalarBarActor *' to 'vtkScalarBarWidget *'
> 1>        with
> 1>        [
> 1>            T=vtkScalarBarWidget
> 1>        ]
> 1>        Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> 1>        .\vtk\vtkPBFEAView.cpp(313) : see reference to function template
> instantiation 'vtkSmartPointer<T>::vtkSmartPointer<vtkScalarBarActor>(const
> vtkSmartPointer<vtkScalarBarActor> &)' being compiled
> 1>        with
> 1>        [
> 1>            T=vtkScalarBarWidget
> 1>        ]
> 1>C:\VTK_New\include\vtk-5.8\vtkSmartPointer.h(60) : error C2664:
> 'vtkSmartPointer<T>::CheckType' : cannot convert parameter 1 from
> 'vtkScalarBarWidget *' to 'vtkScalarBarActor *'
> 1>        with
> 1>        [
> 1>            T=vtkScalarBarActor
> 1>        ]
> 1>        Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> 1>        .\vtk\vtkPBFEAView.cpp(1952) : see reference to function
> template instantiation 'vtkSmartPointer<T> &vtkSmartPointer<T>::operator
> =<vtkScalarBarWidget>(const vtkSmartPointer<vtkScalarBarWidget> &)' being
> compiled
> 1>        with
> 1>        [
> 1>            T=vtkScalarBarActor
> 1>        ]
>
> Can anyone tell me the reason for these errors and how to fix them.
> Thanks a lot.
>
>
> --
> Gish
>
> _______________________________________________
> 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
>
>


-- 
Jothybasu Selvaraj
PhD Student
University of Liverpool
UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120622/38a0dba5/attachment.htm>


More information about the vtkusers mailing list