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

JIA Pei jp4work at gmail.com
Tue Sep 27 03:22:10 EDT 2016


Thanks Bill. Thank you ...

 1) VTK is the toughest package for building I've ever met. Seriously.
Even now, I myself have NO idea how I successfully built VTK before.
I always want to enable the packages/functionalities that come with the
system, Ubuntu 16.04.1

So, is there a brief summary to clarify:
what can be enabled? and what can NOT be enabled?

2) In addition, I noticed that current python support is still 2.7.x.
What about 3.5.x ? I transformed python files to be 3.x compatible by
command "2to3“, it seems to be OK, but I'm NOT 100% sure about that.


Thank you Bill









On Mon, Sep 26, 2016 at 7:52 AM, Bill Lorensen <bill.lorensen at gmail.com>
wrote:

> 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
>



-- 

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/20160927/fd655e0f/attachment.html>


More information about the vtkusers mailing list