<div dir="ltr"><div><div>Marcus,<br><br></div>Is there a complete list of implementation modules?<br><br></div>Bill<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 2:47 PM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, May 27, 2013 at 4:54 AM, Dženan Zukić <<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>> wrote:<br>
> I am switching over to vtk6. Following a recommendation to use COMPONENTS<br>
> argument in CMakeLists causes access violation at run time. Namely,<br>
> QVTKWidget::GetRenderWindow() crashes at line win->Delete(); due to win<br>
> being null. The function is called from my main window's constructor:<br>
><br>
> vtkOpenGLRenderer *renderer = vtkOpenGLRenderer::New();<br>
> qvtkWidget->GetRenderWindow()->AddRenderer(renderer); //crash<br>
><br>
> If I don't use the components (but rather link all modules), there is no<br>
> crash. Way of invoking VTK:<br>
><br>
> #FIND_PACKAGE(VTK REQUIRED COMPONENTS vtkRenderingVolumeOpenGL<br>
> vtkGUISupportQt vtkGUISupportQtOpenGL vtkRenderingQt NO_MODULE)<br>
> FIND_PACKAGE(VTK REQUIRED COMPONENTS vtkGUISupportQtOpenGL)<br>
><br>
> I am using vtk git master. How can I resolve this crash? Or should I just<br>
> link all modules?<br>
><br>
</div></div>I added <a href="http://vtk.org/Wiki/VTK/Build_System_Migration#Common_Implementation_Modules" target="_blank">http://vtk.org/Wiki/VTK/Build_System_Migration#Common_Implementation_Modules</a><br>
to give an example where one might find the common implementation<br>
modules and use it. You could add vtkGUISupportQtOpenGL to the list of<br>
dependencies, but you are missing vtkRenderingOpenGL from your<br>
dependencies that is causing the null render window.<br>
<span class="HOEnZb"><font color="#888888"><br>
Marcus<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>