Ow Lord! Many thanks, David.<br clear="all"><b>Matheus Viana<br><i>Computational Physics</i><br><i>IFSC-USP</i></b><br>
<br><br><div class="gmail_quote">2012/1/10 David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The error is due to an uninitialized pointer:<br>
<br>
vtkImageEuclideanDistance *Transform;<br>
<br>
Should be:<br>
<br>
vtkImageEuclideanDistance *Transform = vtkImageEuclideanDistance::New();<br>
<br>
- David<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Tue, Jan 10, 2012 at 1:14 PM, Matheus Viana <<a href="mailto:vianamp@gmail.com">vianamp@gmail.com</a>> wrote:<br>
> Dear David and Sean,<br>
><br>
> I'm using LLVM 3.0 without any special flag.<br>
><br>
> My code is the following:<br>
><br>
> vtkStructuredPointsReader *StructuredDataset =<br>
> vtkStructuredPointsReader::New();<br>
><br>
> StructuredDataset -> SetFileName(filename);<br>
><br>
> StructuredDataset -> Update();<br>
><br>
><br>
><br>
> vtkImageCast *Cast = vtkImageCast::New();<br>
><br>
> Cast -> SetOutputScalarTypeToUnsignedChar();<br>
><br>
> Cast -> SetInputConnection(StructuredDataset->GetOutputPort());<br>
><br>
> Cast -> Update();<br>
><br>
><br>
> vtkImageEuclideanDistance *Transform;<br>
><br>
> Transform -> SetInputConnection(Cast->GetOutputPort());<br>
><br>
><br>
> The last line produces the error: "illegal instruction"<br>
><br>
> Thanks,<br>
><br>
> Matheus Viana<br>
> Computational Physics<br>
> IFSC-USP<br>
><br>
><br>
> 2012/1/10 Sean McBride <<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>><br>
>><br>
>> On Tue, 10 Jan 2012 11:53:17 -0200, Matheus Viana said:<br>
>><br>
>> >Is anyone using vtk 5.8 on MAC OS Lion?<br>
>><br>
>> We are.<br>
>><br>
>> >I'm trying to, but I'm getting some<br>
>> >"illegal instruction" errors. More specifically when I use the class<br>
>> >vtkImageEuclideanDistance.<br>
>><br>
>> Which compiler did you build with? Any special flags used?<br>
>><br>
>> --<br>
>> ____________________________________________________________<br>
>> Sean McBride, B. Eng <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
>> Rogue Research <a href="http://www.rogue-research.com" target="_blank">www.rogue-research.com</a><br>
>> Mac Software Developer Montréal, Québec, Canada<br>
>><br>
>><br>
><br>
><br>
</div></div><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<br>
> <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:<br>
> <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>
><br>
</div></div></blockquote></div><br>