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

Bill Lorensen bill.lorensen at gmail.com
Mon Sep 26 10:52:52 EDT 2016


Do you have VTK_USE_SYSTEM_FREETYPE ON in your CMakeCache.txt file?

If so, set it to OFF.


On Mon, Sep 26, 2016 at 7:15 AM, JIA Pei <jp4work at gmail.com> wrote:
>
> 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
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list