[vtkusers] vtkSmartPoint() changed? Current VTK-git won't build...

JIA Pei jp4work at gmail.com
Mon Sep 26 07:15:44 EDT 2016


Hi, all:


It looks like current VTK has a big change?
My WikiExamples are NOT able to build for now...
Can anybody give me a hand?


> In file included from
> /home/VTK/VTK/Remote/WikiExamples/Cxx/Images/ImageText.cxx:5:0:
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h: In instantiation of ‘static
> vtkSmartPointer<T> vtkSmartPointer<T>::New() [with T = vtkFreeTypeTools]’:
> /home/VTK/VTK/Remote/WikiExamples/Cxx/Images/ImageText.cxx:24:83:
> required from here
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:117:54: error: no matching
> function for call to
> ‘vtkSmartPointer<vtkFreeTypeTools>::vtkSmartPointer(vtkObject*,
> vtkSmartPointerBase::NoReference)’
>      return vtkSmartPointer<T>(T::New(), NoReference());
>                                                       ^
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:167:3: note: candidate:
> vtkSmartPointer<T>::vtkSmartPointer(T*, const
> vtkSmartPointerBase::NoReference&) [with T = vtkFreeTypeTools] <near match>
>    vtkSmartPointer(T* r, const NoReference& n): vtkSmartPointerBase(r, n)
> {}
>    ^
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:167:3: note:   conversion of
> argument 1 would be ill-formed:
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:117:37: error: invalid
> conversion from ‘vtkObject*’ to ‘vtkFreeTypeTools*’ [-fpermissive]
>      return vtkSmartPointer<T>(T::New(), NoReference());
>                                      ^
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:42:3: note: candidate:
> template<class U> vtkSmartPointer<T>::vtkSmartPointer(const
> vtkSmartPointer<U>&)
>    vtkSmartPointer(const vtkSmartPointer<U>& r):
>    ^
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:42:3: note:   template
> argument deduction/substitution failed:
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:117:54: note:   mismatched
> types ‘const vtkSmartPointer<T>’ and ‘vtkObject*’
>      return vtkSmartPointer<T>(T::New(), NoReference());
>                                                       ^
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:36:3: note: candidate:
> vtkSmartPointer<T>::vtkSmartPointer(T*) [with T = vtkFreeTypeTools]
>    vtkSmartPointer(T* r): vtkSmartPointerBase(r) {}
>    ^
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:36:3: note:   candidate
> expects 1 argument, 2 provided
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:32:3: note: candidate:
> vtkSmartPointer<T>::vtkSmartPointer() [with T = vtkFreeTypeTools]
>    vtkSmartPointer() {}
>    ^
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:32:3: note:   candidate
> expects 0 arguments, 2 provided
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:26:7: note: candidate:
> vtkSmartPointer<vtkFreeTypeTools>::vtkSmartPointer(const
> vtkSmartPointer<vtkFreeTypeTools>&)
>  class vtkSmartPointer: public vtkSmartPointerBase
>        ^
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:26:7: note:   candidate
> expects 1 argument, 2 provided
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:26:7: note: candidate:
> vtkSmartPointer<vtkFreeTypeTools>::vtkSmartPointer(vtkSmartPointer<vtkFreeTypeTools>&&)
> /home/VTK/VTK/Common/Core/vtkSmartPointer.h:26:7: note:   candidate
> expects 1 argument, 2 provided
> Remote/WikiExamples/Cxx/Images/CMakeFiles/wikiImageText.dir/build.make:65:
> recipe for target
> 'Remote/WikiExamples/Cxx/Images/CMakeFiles/wikiImageText.dir/ImageText.cxx.o'
> failed
> make[2]: ***
> [Remote/WikiExamples/Cxx/Images/CMakeFiles/wikiImageText.dir/ImageText.cxx.o]
> Error 1
> make[2]: Leaving directory '/home/VTK/VTK/build'
> CMakeFiles/Makefile2:33982: recipe for target
> 'Remote/WikiExamples/Cxx/Images/CMakeFiles/wikiImageText.dir/all' failed
> make[1]: ***
> [Remote/WikiExamples/Cxx/Images/CMakeFiles/wikiImageText.dir/all] Error 2
> make[1]: Leaving directory '/home/VTK/VTK/build'
> Makefile:130: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
Cheers
-- 

Pei JIA, Ph.D.

Email: jp4work at gmail.com
cell in Canada:    +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160926/00b8f718/attachment.html>


More information about the vtkusers mailing list