[vtkusers] null vtkRenderWindow with CMake

David E DeMarle dave.demarle at kitware.com
Tue May 28 15:53:49 EDT 2013


kaltuel:VTK demarle$ find . -name "module.cmake" -print | xargs grep -i
IMPLEMENTS
./Filters/ParallelFlowPaths/module.cmake:  IMPLEMENTS
./Filters/StatisticsGnuR/module.cmake:  IMPLEMENTS
./Interaction/Style/module.cmake:  IMPLEMENTS
./IO/MPIImage/module.cmake: IMPLEMENTS
./IO/MPIParallel/module.cmake:  IMPLEMENTS
./IO/MySQL/module.cmake:  IMPLEMENTS
./IO/ParallelExodus/module.cmake:  IMPLEMENTS
./IO/PostgreSQL/module.cmake:  IMPLEMENTS
./Rendering/FreeType/module.cmake:  IMPLEMENTS
./Rendering/FreeTypeFontConfig/module.cmake:  IMPLEMENTS
./Rendering/FreeTypeOpenGL/module.cmake:  IMPLEMENTS
./Rendering/Matplotlib/module.cmake:  IMPLEMENTS
./Rendering/OpenGL/module.cmake:  IMPLEMENTS
./Rendering/VolumeOpenGL/module.cmake:  IMPLEMENTS

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Tue, May 28, 2013 at 3:51 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:

> Marcus,
>
> Is there a complete list of implementation modules?
>
> Bill
>
>
>
> On Tue, May 28, 2013 at 2:47 PM, Marcus D. Hanwell <
> marcus.hanwell at kitware.com> wrote:
>
>> On Mon, May 27, 2013 at 4:54 AM, Dženan Zukić <dzenanz at gmail.com> wrote:
>> > I am switching over to vtk6. Following a recommendation to use
>> COMPONENTS
>> > argument in CMakeLists causes access violation at run time. Namely,
>> > QVTKWidget::GetRenderWindow() crashes at line win->Delete(); due to win
>> > being null. The function is called from my main window's constructor:
>> >
>> > vtkOpenGLRenderer *renderer = vtkOpenGLRenderer::New();
>> > qvtkWidget->GetRenderWindow()->AddRenderer(renderer); //crash
>> >
>> > If I don't use the components (but rather link all modules), there is no
>> > crash. Way of invoking VTK:
>> >
>> > #FIND_PACKAGE(VTK REQUIRED COMPONENTS vtkRenderingVolumeOpenGL
>> > vtkGUISupportQt vtkGUISupportQtOpenGL vtkRenderingQt NO_MODULE)
>> > FIND_PACKAGE(VTK REQUIRED COMPONENTS vtkGUISupportQtOpenGL)
>> >
>> > I am using vtk git master. How can I resolve this crash? Or should I
>> just
>> > link all modules?
>> >
>> I added
>> http://vtk.org/Wiki/VTK/Build_System_Migration#Common_Implementation_Modules
>> to give an example where one might find the common implementation
>> modules and use it. You could add vtkGUISupportQtOpenGL to the list of
>> dependencies, but you are missing vtkRenderingOpenGL from your
>> dependencies that is causing the null render window.
>>
>> Marcus
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130528/d98af6aa/attachment.htm>


More information about the vtkusers mailing list