[vtkusers] vtk + Qt = broken AF

SevPuch spuchals at gmail.com
Wed Nov 7 00:25:42 EST 2018


Hi everyone, 
I've been fighting with Qt for a week now, and am about to try to use ImGui
because it's very frustrating.

On linux, I installed Qt5 with my vtk7, configured and built vtk for Qt as
detailed on the installation site.
I've been trying various versions.
Problem is, when I make an example, let's say BorderWidget, at first it
doesn't find QVTKOpenGLWidget.h, then QVTKOpenGLWindow.h.
I found them in my terminal and added them to the cpp_properties json in
include_path.

This doesn't satisfy my compiler which now finds various errors in scripts
related to Qt and OpenGL and shows missing scripts. EVERYWHERE.

I corrected errors given in the following post (I find it very strange that
those errors exist in the official examples, is VTK a dead project floating
on abandoned servers?), but a tsunami of other errors, that I paste below
for your most intense delight. Post in question :
https://stackoverflow.com/questions/46787783/vtk-examples-not-working-qvtkopenglwidget


// ERRORS :

/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member
function ‘void
QVTKOpenGLSimpleWidget::SetRenderWindow(vtkGenericOpenGLRenderWindow*)’:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:175:54: error: no
matching function for call to
‘vtkGenericOpenGLRenderWindow::RemoveObserver(vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’
     this->RenderWindow->RemoveObserver(this->Observer);
                                                      ^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:147:8: note: candidate: void
vtkObject::RemoveObserver(vtkCommand*)
   void RemoveObserver(vtkCommand*);
        ^~~~~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:147:8: note:   no known conversion for
argument 1 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’
/usr/include/vtk-7.1/vtkObject.h:154:8: note: candidate: void
vtkObject::RemoveObserver(long unsigned int)
   void RemoveObserver(unsigned long tag);
        ^~~~~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:154:8: note:   no known conversion for
argument 1 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘long unsigned
int’
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:176:25: error:
‘class vtkGenericOpenGLRenderWindow’ has no member named
‘SetReadyForRendering’; did you mean ‘StereoRenderOn’?
     this->RenderWindow->SetReadyForRendering(false);
                         ^~~~~~~~~~~~~~~~~~~~
                         StereoRenderOn
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:191:45: error: no
matching function for call to
‘vtkGenericOpenGLRenderWindow::SetInteractor(vtkNew<QVTKInteractor>&)’
       this->RenderWindow->SetInteractor(iren);
                                             ^
In file included from /usr/include/vtk-7.1/vtkOpenGLRenderWindow.h:29:0,
                 from
/usr/include/vtk-7.1/vtkGenericOpenGLRenderWindow.h:31,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:33:
/usr/include/vtk-7.1/vtkRenderWindow.h:578:8: note: candidate: void
vtkRenderWindow::SetInteractor(vtkRenderWindowInteractor*)
   void SetInteractor(vtkRenderWindowInteractor *);
        ^~~~~~~~~~~~~
/usr/include/vtk-7.1/vtkRenderWindow.h:578:8: note:   no known conversion
for argument 1 from ‘vtkNew<QVTKInteractor>’ to ‘vtkRenderWindowInteractor*’
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:196:37: error: no
matching function for call to
‘QVTKInteractor::SetInteractorStyle(vtkNew<vtkInteractorStyleTrackballCamera>&)’
       iren->SetInteractorStyle(style);
                                     ^
In file included from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkRenderWindowInteractor.h:256:16: note: candidate:
virtual void
vtkRenderWindowInteractor::SetInteractorStyle(vtkInteractorObserver*)
   virtual void SetInteractorStyle(vtkInteractorObserver *);
                ^~~~~~~~~~~~~~~~~~
/usr/include/vtk-7.1/vtkRenderWindowInteractor.h:256:16: note:   no known
conversion for argument 1 from ‘vtkNew<vtkInteractorStyleTrackballCamera>’
to ‘vtkInteractorObserver*’
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:199:87: error: no
matching function for call to
‘vtkGenericOpenGLRenderWindow::AddObserver(vtkCommand::EventIds,
vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’
     this->RenderWindow->AddObserver(vtkCommand::WindowMakeCurrentEvent,
this->Observer);
                                                                                      
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:142:17: note: candidate: long unsigned int
vtkObject::AddObserver(long unsigned int, vtkCommand*, float)
   unsigned long AddObserver(unsigned long event, vtkCommand *,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:142:17: note:   no known conversion for
argument 2 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’
/usr/include/vtk-7.1/vtkObject.h:144:17: note: candidate: long unsigned int
vtkObject::AddObserver(const char*, vtkCommand*, float)
   unsigned long AddObserver(const char *event, vtkCommand *,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:144:17: note:   no known conversion for
argument 1 from ‘vtkCommand::EventIds’ to ‘const char*’
/usr/include/vtk-7.1/vtkObject.h:188:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void
(T::*)(), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:188:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:199:87: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::WindowMakeCurrentEvent,
this->Observer);
                                                                                      
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:198:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void
(T::*)(vtkObject*, long unsigned int, void*), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:198:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:199:87: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::WindowMakeCurrentEvent,
this->Observer);
                                                                                      
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:216:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, bool
(T::*)(vtkObject*, long unsigned int, void*), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:216:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:199:87: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::WindowMakeCurrentEvent,
this->Observer);
                                                                                      
^
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:200:85: error: no
matching function for call to
‘vtkGenericOpenGLRenderWindow::AddObserver(vtkCommand::EventIds,
vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’
     this->RenderWindow->AddObserver(vtkCommand::WindowIsCurrentEvent,
this->Observer);
                                                                                    
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:142:17: note: candidate: long unsigned int
vtkObject::AddObserver(long unsigned int, vtkCommand*, float)
   unsigned long AddObserver(unsigned long event, vtkCommand *,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:142:17: note:   no known conversion for
argument 2 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’
/usr/include/vtk-7.1/vtkObject.h:144:17: note: candidate: long unsigned int
vtkObject::AddObserver(const char*, vtkCommand*, float)
   unsigned long AddObserver(const char *event, vtkCommand *,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:144:17: note:   no known conversion for
argument 1 from ‘vtkCommand::EventIds’ to ‘const char*’
/usr/include/vtk-7.1/vtkObject.h:188:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void
(T::*)(), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:188:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:200:85: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::WindowIsCurrentEvent,
this->Observer);
                                                                                    
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:198:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void
(T::*)(vtkObject*, long unsigned int, void*), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:198:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:200:85: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::WindowIsCurrentEvent,
this->Observer);
                                                                                    
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:216:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, bool
(T::*)(vtkObject*, long unsigned int, void*), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:216:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:200:85: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::WindowIsCurrentEvent,
this->Observer);
                                                                                    
^
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:201:81: error: no
matching function for call to
‘vtkGenericOpenGLRenderWindow::AddObserver(vtkCommand::EventIds,
vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’
     this->RenderWindow->AddObserver(vtkCommand::WindowFrameEvent,
this->Observer);
                                                                                
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:142:17: note: candidate: long unsigned int
vtkObject::AddObserver(long unsigned int, vtkCommand*, float)
   unsigned long AddObserver(unsigned long event, vtkCommand *,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:142:17: note:   no known conversion for
argument 2 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’
/usr/include/vtk-7.1/vtkObject.h:144:17: note: candidate: long unsigned int
vtkObject::AddObserver(const char*, vtkCommand*, float)
   unsigned long AddObserver(const char *event, vtkCommand *,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:144:17: note:   no known conversion for
argument 1 from ‘vtkCommand::EventIds’ to ‘const char*’
/usr/include/vtk-7.1/vtkObject.h:188:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void
(T::*)(), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:188:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:201:81: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::WindowFrameEvent,
this->Observer);
                                                                                
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:198:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void
(T::*)(vtkObject*, long unsigned int, void*), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:198:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:201:81: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::WindowFrameEvent,
this->Observer);
                                                                                
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:216:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, bool
(T::*)(vtkObject*, long unsigned int, void*), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:216:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:201:81: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::WindowFrameEvent,
this->Observer);
                                                                                
^
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:202:75: error: no
matching function for call to
‘vtkGenericOpenGLRenderWindow::AddObserver(vtkCommand::EventIds,
vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’
     this->RenderWindow->AddObserver(vtkCommand::StartEvent,
this->Observer);
                                                                           ^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:142:17: note: candidate: long unsigned int
vtkObject::AddObserver(long unsigned int, vtkCommand*, float)
   unsigned long AddObserver(unsigned long event, vtkCommand *,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:142:17: note:   no known conversion for
argument 2 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’
/usr/include/vtk-7.1/vtkObject.h:144:17: note: candidate: long unsigned int
vtkObject::AddObserver(const char*, vtkCommand*, float)
   unsigned long AddObserver(const char *event, vtkCommand *,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:144:17: note:   no known conversion for
argument 1 from ‘vtkCommand::EventIds’ to ‘const char*’
/usr/include/vtk-7.1/vtkObject.h:188:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void
(T::*)(), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:188:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:202:75: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::StartEvent,
this->Observer);
                                                                           ^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:198:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void
(T::*)(vtkObject*, long unsigned int, void*), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:198:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:202:75: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::StartEvent,
this->Observer);
                                                                           ^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:216:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, bool
(T::*)(vtkObject*, long unsigned int, void*), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:216:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:202:75: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::StartEvent,
this->Observer);
                                                                           ^
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:203:79: error: no
matching function for call to
‘vtkGenericOpenGLRenderWindow::AddObserver(vtkCommand::EventIds,
vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’
     this->RenderWindow->AddObserver(vtkCommand::StartPickEvent,
this->Observer);
                                                                              
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:142:17: note: candidate: long unsigned int
vtkObject::AddObserver(long unsigned int, vtkCommand*, float)
   unsigned long AddObserver(unsigned long event, vtkCommand *,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:142:17: note:   no known conversion for
argument 2 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’
/usr/include/vtk-7.1/vtkObject.h:144:17: note: candidate: long unsigned int
vtkObject::AddObserver(const char*, vtkCommand*, float)
   unsigned long AddObserver(const char *event, vtkCommand *,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:144:17: note:   no known conversion for
argument 1 from ‘vtkCommand::EventIds’ to ‘const char*’
/usr/include/vtk-7.1/vtkObject.h:188:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void
(T::*)(), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:188:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:203:79: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::StartPickEvent,
this->Observer);
                                                                              
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:198:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void
(T::*)(vtkObject*, long unsigned int, void*), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:198:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:203:79: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::StartPickEvent,
this->Observer);
                                                                              
^
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/usr/include/vtk-7.1/vtkObject.h:216:17: note: candidate: template<class U,
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, bool
(T::*)(vtkObject*, long unsigned int, void*), float)
   unsigned long AddObserver(unsigned long event,
                 ^~~~~~~~~~~
/usr/include/vtk-7.1/vtkObject.h:216:17: note:   template argument
deduction/substitution failed:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:203:79: note:  
candidate expects 4 arguments, 2 provided
     this->RenderWindow->AddObserver(vtkCommand::StartPickEvent,
this->Observer);
                                                                              
^
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member
function ‘void QVTKOpenGLSimpleWidget::recreateFBO()’:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:357:23: error:
‘class vtkGenericOpenGLRenderWindow’ has no member named ‘SetScreenSize’;
did you mean ‘GetScreenSize’?
   this->RenderWindow->SetScreenSize(screenGeometry.width(),
screenGeometry.height());
                       ^~~~~~~~~~~~~
                       GetScreenSize
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:361:23: error:
‘class vtkGenericOpenGLRenderWindow’ has no member named
‘SetForceMaximumHardwareLineWidth’; did you mean
‘GetMaximumHardwareLineWidth’?
   this->RenderWindow->SetForceMaximumHardwareLineWidth(1);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                       GetMaximumHardwareLineWidth
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:362:23: error:
‘class vtkGenericOpenGLRenderWindow’ has no member named
‘SetReadyForRendering’; did you mean ‘StereoRenderOn’?
   this->RenderWindow->SetReadyForRendering(true);
                       ^~~~~~~~~~~~~~~~~~~~
                       StereoRenderOn
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:372:48: error:
‘class vtkGenericOpenGLRenderWindow’ has no member named ‘GetState’; did you
mean ‘PopState’?
   vtkOpenGLState *ostate = this->RenderWindow->GetState();
                                                ^~~~~~~~
                                                PopState
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member
function ‘void QVTKOpenGLSimpleWidget::requireRenderWindowInitialization()’:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:415:25: error:
‘class vtkGenericOpenGLRenderWindow’ has no member named
‘SetReadyForRendering’; did you mean ‘StereoRenderOn’?
     this->RenderWindow->SetReadyForRendering(false);
                         ^~~~~~~~~~~~~~~~~~~~
                         StereoRenderOn
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member
function ‘virtual void QVTKOpenGLSimpleWidget::paintGL()’:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:440:51: error:
‘class vtkGenericOpenGLRenderWindow’ has no member named
‘GetDefaultFrameBufferId’; did you mean ‘NumberOfFrameBuffers’?
     || this->FBO->handle() !=
this->RenderWindow->GetDefaultFrameBufferId())
                                                   ^~~~~~~~~~~~~~~~~~~~~~~
                                                   NumberOfFrameBuffers
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:473:50: error:
‘class vtkGenericOpenGLRenderWindow’ has no member named ‘GetState’; did you
mean ‘PopState’?
     vtkOpenGLState *ostate = this->RenderWindow->GetState();
                                                  ^~~~~~~~
                                                  PopState
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member
function ‘virtual void QVTKOpenGLSimpleWidget::cleanupContext()’:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:525:25: error:
‘class vtkGenericOpenGLRenderWindow’ has no member named
‘SetReadyForRendering’; did you mean ‘StereoRenderOn’?
     this->RenderWindow->SetReadyForRendering(false);
                         ^~~~~~~~~~~~~~~~~~~~
                         StereoRenderOn
In file included from
/usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43:0,
                 from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43,
                 from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qopenglwidget.h:43,
                 from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/QOpenGLWidget:1,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:110,
                 from /home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member
function ‘virtual bool QVTKOpenGLSimpleWidget::renderVTK()’:
/home/sev/vtkTest/Fall
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:579:55: error:
‘class vtkGenericOpenGLRenderWindow’ has no member named
‘GetDefaultFrameBufferId’; did you mean ‘NumberOfFrameBuffers’?
   Q_ASSERT(this->FBO->handle() ==
this->RenderWindow->GetDefaultFrameBufferId());
                                                       ^
CMakeFiles/BorderWidgetQt.dir/build.make:210: recipe for target
'CMakeFiles/BorderWidgetQt.dir/QVTKOpenGLSimpleWidget.cxx.o' failed
make[2]: *** [CMakeFiles/BorderWidgetQt.dir/QVTKOpenGLSimpleWidget.cxx.o]
Error 1
CMakeFiles/Makefile2:67: recipe for target
'CMakeFiles/BorderWidgetQt.dir/all' failed
make[1]: *** [CMakeFiles/BorderWidgetQt.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2




--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list