[vtkusers] QVTK Examples -- Segmentation Fault

David Doria daviddoria at gmail.com
Mon Dec 10 08:09:13 EST 2012


>> I'm going off the QVTK RenderWindowUISingleInheritance example on the VTK
>> page, as followed by this link
>>
>>
>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUISingleInheritance
>>
>> I've built it exactly as it is, the only things changed are in the
>> CMakeLists.txt file, where in the line
>>
>> TARGET_LINK_LIBRARIES( RenderWindowUI ${VTK_LIBRARIES} )
>>
>> I've changed it to
>>
>> TARGET_LINK_LIBRARIES( RenderWindowUISingleInheritance ${VTK_LIBRARIES}
>> ${QT_LIBRARIES} QVTK)
>>
>> So that it would compile. Except now, upon running the application, I get
>> a segmentation fault. I have no idea what's going on, this is my first
>> introduction to VTK. Any ideas?

Welcome to VTK!

Which version of VTK are you using?

I would suggest starting with a non-Qt example, like this one:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere

If it runs fine for you, then we'll know that there is no problem with
your VTK install.

David



More information about the vtkusers mailing list