[vtkusers] installing vtk cvs version. tcl works, cpp does not!
Brad King
brad.king at kitware.com
Wed Oct 13 07:08:28 EDT 2004
Brian Lading wrote:
> Hello there!
>
> I have just installed the cvs version of VTK (a few days old).
> Everything compiles and 'makes' ok. But when I do a testing of the
> examples, eg Medical1.xxx I have no problems with the tcl and the python
> scripts BUT the cpp programs all crashes with a segmentation fault!
>
> The cpp programs compiles and links, and it is possible to instantiate
> objects, but its NOT possible to use the objects!, eg for Medical1.cxx:
>
> vtkRenderer *aRenderer = vtkRenderer::New();
> vtkRenderWindow *renWin = vtkRenderWindow::New();
> renWin->AddRenderer(aRenderer);
> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
> iren->SetRenderWindow(renWin);
>
> vtkVolume16Reader *v16 = vtkVolume16Reader::New();
> /* until this point everything is ok! */
> v16->SetDataDimensions (64,64);
> --- > Segmentation fault
I cannot duplicate this problem with a CVS version from Monday.
However, I did have to modify the example to get it to compile because
the CVS version is undergoing heavy changes right now. I suggest you
checkout the "VTK-4-4" branch and use that until the next release.
-Brad
More information about the vtkusers
mailing list