<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Dear All</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I justĀ build vtk8.1 and tried to render a sphere using QVTKOpelnGLWidget -hope this is the recommended over QVTKWidget in vtk8.1.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I am getting this error. I am using QtCreator.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">vtkGenericOpenGLRenderWindow (00000255BB134430): GLEW could not be initialized.</span></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">I have the following in the header file of the class which renders this:</span></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">
</span></p><pre style="margin:0px"><span style="color:rgb(0,0,128)">#define</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">vtkRenderingCore_AUTOINIT</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">3</span>(<span style="color:rgb(0,0,128)">vtkInteractionStyle</span>,<span style="color:rgb(0,0,128)">vtkRenderingFreeType</span>,<span style="color:rgb(0,0,128)">vtkRenderingOpenGL2</span>)</pre>
<pre style="margin:0px"><span style="color:rgb(0,0,128)">#</span><span style="color:rgb(0,0,128)">define</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">vtkRenderingVolume_AUTOINIT</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">1</span>(<span style="color:rgb(0,0,128)">vtkRenderingVolumeOpenGL2</span>)</pre><pre style="margin:0px"><br></pre><pre style="margin:0px">Any ideas how to fix this?</pre><pre style="margin:0px"><br></pre><pre style="margin:0px">I am coming back to VTK after suing vtk 6.x.</pre><pre style="margin:0px"><br></pre><pre style="margin:0px"><br></pre><pre style="margin:0px">Regards,</pre><pre style="margin:0px">Jothy</pre>
<pre style="margin:0px"><br></pre><br><p></p><br></div></div>