<div dir="ltr"><div><br></div>Hi, all:<div><br></div><div><br></div><div>It looks like current VTK has a big change?</div><div>My WikiExamples are NOT able to build for now...</div><div>Can anybody give me a hand?<br clear="all"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>In file included from /home/VTK/VTK/Remote/WikiExamples/Cxx/Images/ImageText.cxx:5:0:<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h: In instantiation of ‘static vtkSmartPointer<T> vtkSmartPointer<T>::New() [with T = vtkFreeTypeTools]’:<br>/home/VTK/VTK/Remote/WikiExamples/Cxx/Images/ImageText.cxx:24:83:   required from here<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:117:54: error: no matching function for call to ‘vtkSmartPointer<vtkFreeTypeTools>::vtkSmartPointer(vtkObject*, vtkSmartPointerBase::NoReference)’<br>     return vtkSmartPointer<T>(T::New(), NoReference());<br>                                                      ^<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:167:3: note: candidate: vtkSmartPointer<T>::vtkSmartPointer(T*, const vtkSmartPointerBase::NoReference&) [with T = vtkFreeTypeTools] <near match><br>   vtkSmartPointer(T* r, const NoReference& n): vtkSmartPointerBase(r, n) {}<br>   ^<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:167:3: note:   conversion of argument 1 would be ill-formed:<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:117:37: error: invalid conversion from ‘vtkObject*’ to ‘vtkFreeTypeTools*’ [-fpermissive]<br>     return vtkSmartPointer<T>(T::New(), NoReference());<br>                                     ^<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:42:3: note: candidate: template<class U> vtkSmartPointer<T>::vtkSmartPointer(const vtkSmartPointer<U>&)<br>   vtkSmartPointer(const vtkSmartPointer<U>& r):<br>   ^<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:42:3: note:   template argument deduction/substitution failed:<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:117:54: note:   mismatched types ‘const vtkSmartPointer<T>’ and ‘vtkObject*’<br>     return vtkSmartPointer<T>(T::New(), NoReference());<br>                                                      ^<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:36:3: note: candidate: vtkSmartPointer<T>::vtkSmartPointer(T*) [with T = vtkFreeTypeTools]<br>   vtkSmartPointer(T* r): vtkSmartPointerBase(r) {}<br>   ^<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:36:3: note:   candidate expects 1 argument, 2 provided<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:32:3: note: candidate: vtkSmartPointer<T>::vtkSmartPointer() [with T = vtkFreeTypeTools]<br>   vtkSmartPointer() {}<br>   ^<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:32:3: note:   candidate expects 0 arguments, 2 provided<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:26:7: note: candidate: vtkSmartPointer<vtkFreeTypeTools>::vtkSmartPointer(const vtkSmartPointer<vtkFreeTypeTools>&)<br> class vtkSmartPointer: public vtkSmartPointerBase<br>       ^<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:26:7: note:   candidate expects 1 argument, 2 provided<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:26:7: note: candidate: vtkSmartPointer<vtkFreeTypeTools>::vtkSmartPointer(vtkSmartPointer<vtkFreeTypeTools>&&)<br>/home/VTK/VTK/Common/Core/vtkSmartPointer.h:26:7: note:   candidate expects 1 argument, 2 provided<br>Remote/WikiExamples/Cxx/Images/CMakeFiles/wikiImageText.dir/build.make:65: recipe for target 'Remote/WikiExamples/Cxx/Images/CMakeFiles/wikiImageText.dir/ImageText.cxx.o' failed<br>make[2]: *** [Remote/WikiExamples/Cxx/Images/CMakeFiles/wikiImageText.dir/ImageText.cxx.o] Error 1<br>make[2]: Leaving directory '/home/VTK/VTK/build'<br>CMakeFiles/Makefile2:33982: recipe for target 'Remote/WikiExamples/Cxx/Images/CMakeFiles/wikiImageText.dir/all' failed<br>make[1]: *** [Remote/WikiExamples/Cxx/Images/CMakeFiles/wikiImageText.dir/all] Error 2<br>make[1]: Leaving directory '/home/VTK/VTK/build'<br>Makefile:130: recipe for target 'all' failed<br>make: *** [all] Error 2<br><br></blockquote><div><br></div><div>Cheers</div>-- <br><div class="gmail_signature"><div dir="ltr"><div><br></div><div>Pei JIA, Ph.D.</div><div><br></div><div>Email: <a href="mailto:jp4work@gmail.com" target="_blank">jp4work@gmail.com</a></div><div>cell in Canada:    +1 778-863-5816</div><div>cell in China: +86 186-8244-3503</div><div><br></div>Welcome to Vision Open<br><a href="http://www.visionopen.com" target="_blank">http://www.visionopen.com</a></div></div>
</div></div>