[vtkusers] vtk 5.8 on OS X Lion

Matheus Viana vianamp at gmail.com
Tue Jan 10 16:01:50 EST 2012


Ow Lord! Many thanks, David.
*Matheus Viana
Computational Physics
IFSC-USP*


2012/1/10 David Gobbi <david.gobbi at gmail.com>

> The error is due to an uninitialized pointer:
>
> vtkImageEuclideanDistance *Transform;
>
> Should be:
>
> vtkImageEuclideanDistance *Transform = vtkImageEuclideanDistance::New();
>
>  - David
>
>
> On Tue, Jan 10, 2012 at 1:14 PM, Matheus Viana <vianamp at gmail.com> wrote:
> > Dear David and Sean,
> >
> > I'm using LLVM 3.0 without any special flag.
> >
> > My code is the following:
> >
> > vtkStructuredPointsReader *StructuredDataset =
> > vtkStructuredPointsReader::New();
> >
> > StructuredDataset -> SetFileName(filename);
> >
> > StructuredDataset -> Update();
> >
> >
> >
> > vtkImageCast *Cast = vtkImageCast::New();
> >
> > Cast -> SetOutputScalarTypeToUnsignedChar();
> >
> > Cast -> SetInputConnection(StructuredDataset->GetOutputPort());
> >
> > Cast -> Update();
> >
> >
> > vtkImageEuclideanDistance *Transform;
> >
> > Transform -> SetInputConnection(Cast->GetOutputPort());
> >
> >
> > The last line produces the error: "illegal instruction"
> >
> > Thanks,
> >
> > Matheus Viana
> > Computational Physics
> > IFSC-USP
> >
> >
> > 2012/1/10 Sean McBride <sean at rogue-research.com>
> >>
> >> On Tue, 10 Jan 2012 11:53:17 -0200, Matheus Viana said:
> >>
> >> >Is anyone using vtk 5.8 on MAC OS Lion?
> >>
> >> We are.
> >>
> >> >I'm trying to, but I'm getting some
> >> >"illegal instruction" errors. More specifically when I use the class
> >> >vtkImageEuclideanDistance.
> >>
> >> Which compiler did you build with?  Any special flags used?
> >>
> >> --
> >> ____________________________________________________________
> >> Sean McBride, B. Eng                 sean at rogue-research.com
> >> Rogue Research                        www.rogue-research.com
> >> Mac Software Developer              Montréal, Québec, Canada
> >>
> >>
> >
> >
> > _______________________________________________
> > 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/20120110/23c0efa5/attachment.htm>


More information about the vtkusers mailing list