<div dir="ltr"><div dir="ltr">Hi SevPuch, <br></div><div dir="ltr"><br></div><div>Thanks for reaching out. We should be able to help you.<br></div><div><br></div><div>To reproduce your issue and better guide you, could you share a CMakeLists.txt, few sources file along with the command you user to configure the project ?</div><div><br></div><div>Jc<br></div><div><br></div><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Nov 7, 2018 at 11:45 AM SevPuch <<a href="mailto:spuchals@gmail.com">spuchals@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi everyone, <br>
I've been fighting with Qt for a week now, and am about to try to use ImGui<br>
because it's very frustrating.<br>
<br>
On linux, I installed Qt5 with my vtk7, configured and built vtk for Qt as<br>
detailed on the installation site.<br>
I've been trying various versions.<br>
Problem is, when I make an example, let's say BorderWidget, at first it<br>
doesn't find QVTKOpenGLWidget.h, then QVTKOpenGLWindow.h.<br>
I found them in my terminal and added them to the cpp_properties json in<br>
include_path.<br>
<br>
This doesn't satisfy my compiler which now finds various errors in scripts<br>
related to Qt and OpenGL and shows missing scripts. EVERYWHERE.<br>
<br>
I corrected errors given in the following post (I find it very strange that<br>
those errors exist in the official examples, is VTK a dead project floating<br>
on abandoned servers?), but a tsunami of other errors, that I paste below<br>
for your most intense delight. Post in question :<br>
<a href="https://stackoverflow.com/questions/46787783/vtk-examples-not-working-qvtkopenglwidget" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/46787783/vtk-examples-not-working-qvtkopenglwidget</a><br>
<br>
<br>
// ERRORS :<br>
<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member<br>
function ‘void<br>
QVTKOpenGLSimpleWidget::SetRenderWindow(vtkGenericOpenGLRenderWindow*)’:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:175:54: error: no<br>
matching function for call to<br>
‘vtkGenericOpenGLRenderWindow::RemoveObserver(vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’<br>
     this->RenderWindow->RemoveObserver(this->Observer);<br>
                                                      ^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:147:8: note: candidate: void<br>
vtkObject::RemoveObserver(vtkCommand*)<br>
   void RemoveObserver(vtkCommand*);<br>
        ^~~~~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:147:8: note:   no known conversion for<br>
argument 1 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’<br>
/usr/include/vtk-7.1/vtkObject.h:154:8: note: candidate: void<br>
vtkObject::RemoveObserver(long unsigned int)<br>
   void RemoveObserver(unsigned long tag);<br>
        ^~~~~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:154:8: note:   no known conversion for<br>
argument 1 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘long unsigned<br>
int’<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:176:25: error:<br>
‘class vtkGenericOpenGLRenderWindow’ has no member named<br>
‘SetReadyForRendering’; did you mean ‘StereoRenderOn’?<br>
     this->RenderWindow->SetReadyForRendering(false);<br>
                         ^~~~~~~~~~~~~~~~~~~~<br>
                         StereoRenderOn<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:191:45: error: no<br>
matching function for call to<br>
‘vtkGenericOpenGLRenderWindow::SetInteractor(vtkNew<QVTKInteractor>&)’<br>
       this->RenderWindow->SetInteractor(iren);<br>
                                             ^<br>
In file included from /usr/include/vtk-7.1/vtkOpenGLRenderWindow.h:29:0,<br>
                 from<br>
/usr/include/vtk-7.1/vtkGenericOpenGLRenderWindow.h:31,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:33:<br>
/usr/include/vtk-7.1/vtkRenderWindow.h:578:8: note: candidate: void<br>
vtkRenderWindow::SetInteractor(vtkRenderWindowInteractor*)<br>
   void SetInteractor(vtkRenderWindowInteractor *);<br>
        ^~~~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkRenderWindow.h:578:8: note:   no known conversion<br>
for argument 1 from ‘vtkNew<QVTKInteractor>’ to ‘vtkRenderWindowInteractor*’<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:196:37: error: no<br>
matching function for call to<br>
‘QVTKInteractor::SetInteractorStyle(vtkNew<vtkInteractorStyleTrackballCamera>&)’<br>
       iren->SetInteractorStyle(style);<br>
                                     ^<br>
In file included from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkRenderWindowInteractor.h:256:16: note: candidate:<br>
virtual void<br>
vtkRenderWindowInteractor::SetInteractorStyle(vtkInteractorObserver*)<br>
   virtual void SetInteractorStyle(vtkInteractorObserver *);<br>
                ^~~~~~~~~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkRenderWindowInteractor.h:256:16: note:   no known<br>
conversion for argument 1 from ‘vtkNew<vtkInteractorStyleTrackballCamera>’<br>
to ‘vtkInteractorObserver*’<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:199:87: error: no<br>
matching function for call to<br>
‘vtkGenericOpenGLRenderWindow::AddObserver(vtkCommand::EventIds,<br>
vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowMakeCurrentEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:142:17: note: candidate: long unsigned int<br>
vtkObject::AddObserver(long unsigned int, vtkCommand*, float)<br>
   unsigned long AddObserver(unsigned long event, vtkCommand *,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:142:17: note:   no known conversion for<br>
argument 2 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’<br>
/usr/include/vtk-7.1/vtkObject.h:144:17: note: candidate: long unsigned int<br>
vtkObject::AddObserver(const char*, vtkCommand*, float)<br>
   unsigned long AddObserver(const char *event, vtkCommand *,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:144:17: note:   no known conversion for<br>
argument 1 from ‘vtkCommand::EventIds’ to ‘const char*’<br>
/usr/include/vtk-7.1/vtkObject.h:188:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void<br>
(T::*)(), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:188:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:199:87: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowMakeCurrentEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:198:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void<br>
(T::*)(vtkObject*, long unsigned int, void*), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:198:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:199:87: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowMakeCurrentEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:216:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, bool<br>
(T::*)(vtkObject*, long unsigned int, void*), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:216:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:199:87: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowMakeCurrentEvent,<br>
this->Observer);<br>
<br>
^<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:200:85: error: no<br>
matching function for call to<br>
‘vtkGenericOpenGLRenderWindow::AddObserver(vtkCommand::EventIds,<br>
vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowIsCurrentEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:142:17: note: candidate: long unsigned int<br>
vtkObject::AddObserver(long unsigned int, vtkCommand*, float)<br>
   unsigned long AddObserver(unsigned long event, vtkCommand *,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:142:17: note:   no known conversion for<br>
argument 2 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’<br>
/usr/include/vtk-7.1/vtkObject.h:144:17: note: candidate: long unsigned int<br>
vtkObject::AddObserver(const char*, vtkCommand*, float)<br>
   unsigned long AddObserver(const char *event, vtkCommand *,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:144:17: note:   no known conversion for<br>
argument 1 from ‘vtkCommand::EventIds’ to ‘const char*’<br>
/usr/include/vtk-7.1/vtkObject.h:188:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void<br>
(T::*)(), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:188:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:200:85: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowIsCurrentEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:198:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void<br>
(T::*)(vtkObject*, long unsigned int, void*), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:198:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:200:85: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowIsCurrentEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:216:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, bool<br>
(T::*)(vtkObject*, long unsigned int, void*), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:216:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:200:85: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowIsCurrentEvent,<br>
this->Observer);<br>
<br>
^<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:201:81: error: no<br>
matching function for call to<br>
‘vtkGenericOpenGLRenderWindow::AddObserver(vtkCommand::EventIds,<br>
vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowFrameEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:142:17: note: candidate: long unsigned int<br>
vtkObject::AddObserver(long unsigned int, vtkCommand*, float)<br>
   unsigned long AddObserver(unsigned long event, vtkCommand *,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:142:17: note:   no known conversion for<br>
argument 2 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’<br>
/usr/include/vtk-7.1/vtkObject.h:144:17: note: candidate: long unsigned int<br>
vtkObject::AddObserver(const char*, vtkCommand*, float)<br>
   unsigned long AddObserver(const char *event, vtkCommand *,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:144:17: note:   no known conversion for<br>
argument 1 from ‘vtkCommand::EventIds’ to ‘const char*’<br>
/usr/include/vtk-7.1/vtkObject.h:188:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void<br>
(T::*)(), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:188:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:201:81: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowFrameEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:198:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void<br>
(T::*)(vtkObject*, long unsigned int, void*), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:198:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:201:81: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowFrameEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:216:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, bool<br>
(T::*)(vtkObject*, long unsigned int, void*), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:216:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:201:81: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::WindowFrameEvent,<br>
this->Observer);<br>
<br>
^<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:202:75: error: no<br>
matching function for call to<br>
‘vtkGenericOpenGLRenderWindow::AddObserver(vtkCommand::EventIds,<br>
vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’<br>
     this->RenderWindow->AddObserver(vtkCommand::StartEvent,<br>
this->Observer);<br>
                                                                           ^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:142:17: note: candidate: long unsigned int<br>
vtkObject::AddObserver(long unsigned int, vtkCommand*, float)<br>
   unsigned long AddObserver(unsigned long event, vtkCommand *,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:142:17: note:   no known conversion for<br>
argument 2 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’<br>
/usr/include/vtk-7.1/vtkObject.h:144:17: note: candidate: long unsigned int<br>
vtkObject::AddObserver(const char*, vtkCommand*, float)<br>
   unsigned long AddObserver(const char *event, vtkCommand *,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:144:17: note:   no known conversion for<br>
argument 1 from ‘vtkCommand::EventIds’ to ‘const char*’<br>
/usr/include/vtk-7.1/vtkObject.h:188:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void<br>
(T::*)(), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:188:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:202:75: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::StartEvent,<br>
this->Observer);<br>
                                                                           ^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:198:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void<br>
(T::*)(vtkObject*, long unsigned int, void*), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:198:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:202:75: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::StartEvent,<br>
this->Observer);<br>
                                                                           ^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:216:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, bool<br>
(T::*)(vtkObject*, long unsigned int, void*), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:216:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:202:75: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::StartEvent,<br>
this->Observer);<br>
                                                                           ^<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:203:79: error: no<br>
matching function for call to<br>
‘vtkGenericOpenGLRenderWindow::AddObserver(vtkCommand::EventIds,<br>
vtkNew<QVTKOpenGLSimpleWidgetObserver>&)’<br>
     this->RenderWindow->AddObserver(vtkCommand::StartPickEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:142:17: note: candidate: long unsigned int<br>
vtkObject::AddObserver(long unsigned int, vtkCommand*, float)<br>
   unsigned long AddObserver(unsigned long event, vtkCommand *,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:142:17: note:   no known conversion for<br>
argument 2 from ‘vtkNew<QVTKOpenGLSimpleWidgetObserver>’ to ‘vtkCommand*’<br>
/usr/include/vtk-7.1/vtkObject.h:144:17: note: candidate: long unsigned int<br>
vtkObject::AddObserver(const char*, vtkCommand*, float)<br>
   unsigned long AddObserver(const char *event, vtkCommand *,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:144:17: note:   no known conversion for<br>
argument 1 from ‘vtkCommand::EventIds’ to ‘const char*’<br>
/usr/include/vtk-7.1/vtkObject.h:188:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void<br>
(T::*)(), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:188:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:203:79: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::StartPickEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:198:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, void<br>
(T::*)(vtkObject*, long unsigned int, void*), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:198:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:203:79: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::StartPickEvent,<br>
this->Observer);<br>
<br>
^<br>
In file included from /usr/include/vtk-7.1/vtkRenderWindowInteractor.h:49:0,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKInteractor.h:32,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:112,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/usr/include/vtk-7.1/vtkObject.h:216:17: note: candidate: template<class U,<br>
class T> long unsigned int vtkObject::AddObserver(long unsigned int, U, bool<br>
(T::*)(vtkObject*, long unsigned int, void*), float)<br>
   unsigned long AddObserver(unsigned long event,<br>
                 ^~~~~~~~~~~<br>
/usr/include/vtk-7.1/vtkObject.h:216:17: note:   template argument<br>
deduction/substitution failed:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:203:79: note:  <br>
candidate expects 4 arguments, 2 provided<br>
     this->RenderWindow->AddObserver(vtkCommand::StartPickEvent,<br>
this->Observer);<br>
<br>
^<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member<br>
function ‘void QVTKOpenGLSimpleWidget::recreateFBO()’:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:357:23: error:<br>
‘class vtkGenericOpenGLRenderWindow’ has no member named ‘SetScreenSize’;<br>
did you mean ‘GetScreenSize’?<br>
   this->RenderWindow->SetScreenSize(screenGeometry.width(),<br>
screenGeometry.height());<br>
                       ^~~~~~~~~~~~~<br>
                       GetScreenSize<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:361:23: error:<br>
‘class vtkGenericOpenGLRenderWindow’ has no member named<br>
‘SetForceMaximumHardwareLineWidth’; did you mean<br>
‘GetMaximumHardwareLineWidth’?<br>
   this->RenderWindow->SetForceMaximumHardwareLineWidth(1);<br>
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
                       GetMaximumHardwareLineWidth<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:362:23: error:<br>
‘class vtkGenericOpenGLRenderWindow’ has no member named<br>
‘SetReadyForRendering’; did you mean ‘StereoRenderOn’?<br>
   this->RenderWindow->SetReadyForRendering(true);<br>
                       ^~~~~~~~~~~~~~~~~~~~<br>
                       StereoRenderOn<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:372:48: error:<br>
‘class vtkGenericOpenGLRenderWindow’ has no member named ‘GetState’; did you<br>
mean ‘PopState’?<br>
   vtkOpenGLState *ostate = this->RenderWindow->GetState();<br>
                                                ^~~~~~~~<br>
                                                PopState<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member<br>
function ‘void QVTKOpenGLSimpleWidget::requireRenderWindowInitialization()’:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:415:25: error:<br>
‘class vtkGenericOpenGLRenderWindow’ has no member named<br>
‘SetReadyForRendering’; did you mean ‘StereoRenderOn’?<br>
     this->RenderWindow->SetReadyForRendering(false);<br>
                         ^~~~~~~~~~~~~~~~~~~~<br>
                         StereoRenderOn<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member<br>
function ‘virtual void QVTKOpenGLSimpleWidget::paintGL()’:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:440:51: error:<br>
‘class vtkGenericOpenGLRenderWindow’ has no member named<br>
‘GetDefaultFrameBufferId’; did you mean ‘NumberOfFrameBuffers’?<br>
     || this->FBO->handle() !=<br>
this->RenderWindow->GetDefaultFrameBufferId())<br>
                                                   ^~~~~~~~~~~~~~~~~~~~~~~<br>
                                                   NumberOfFrameBuffers<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:473:50: error:<br>
‘class vtkGenericOpenGLRenderWindow’ has no member named ‘GetState’; did you<br>
mean ‘PopState’?<br>
     vtkOpenGLState *ostate = this->RenderWindow->GetState();<br>
                                                  ^~~~~~~~<br>
                                                  PopState<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member<br>
function ‘virtual void QVTKOpenGLSimpleWidget::cleanupContext()’:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:525:25: error:<br>
‘class vtkGenericOpenGLRenderWindow’ has no member named<br>
‘SetReadyForRendering’; did you mean ‘StereoRenderOn’?<br>
     this->RenderWindow->SetReadyForRendering(false);<br>
                         ^~~~~~~~~~~~~~~~~~~~<br>
                         StereoRenderOn<br>
In file included from<br>
/usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43:0,<br>
                 from<br>
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43,<br>
                 from<br>
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qopenglwidget.h:43,<br>
                 from<br>
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/QOpenGLWidget:1,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.h:110,<br>
                 from /home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:15:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx: In member<br>
function ‘virtual bool QVTKOpenGLSimpleWidget::renderVTK()’:<br>
/home/sev/vtkTest/Fall<br>
Semester/QtTest/BorderWidgetQt/QVTKOpenGLSimpleWidget.cxx:579:55: error:<br>
‘class vtkGenericOpenGLRenderWindow’ has no member named<br>
‘GetDefaultFrameBufferId’; did you mean ‘NumberOfFrameBuffers’?<br>
   Q_ASSERT(this->FBO->handle() ==<br>
this->RenderWindow->GetDefaultFrameBufferId());<br>
                                                       ^<br>
CMakeFiles/BorderWidgetQt.dir/build.make:210: recipe for target<br>
'CMakeFiles/BorderWidgetQt.dir/QVTKOpenGLSimpleWidget.cxx.o' failed<br>
make[2]: *** [CMakeFiles/BorderWidgetQt.dir/QVTKOpenGLSimpleWidget.cxx.o]<br>
Error 1<br>
CMakeFiles/Makefile2:67: recipe for target<br>
'CMakeFiles/BorderWidgetQt.dir/all' failed<br>
make[1]: *** [CMakeFiles/BorderWidgetQt.dir/all] Error 2<br>
Makefile:83: recipe for target 'all' failed<br>
make: *** [all] Error 2<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div></div></div>