Dear David and Sean,<div><br></div><div>I'm using LLVM 3.0 without any special flag.</div><div><br></div><div>My code is the following:</div><div><br></div><div><p style="margin:0px 0px 0px 0px;font:11.0px Menlo;color:#7c1fae">
vtkStructuredPointsReader<span style="color:#000000"> *StructuredDataset = </span>vtkStructuredPointsReader<span style="color:#000000">::</span><span style="color:#460085">New</span><span style="color:#000000">();</span></p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo">StructuredDataset -> <span style="color:#460085">SetFileName</span>(filename);</p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo">StructuredDataset -> <span style="color:#460085">Update</span>();</p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo;min-height:13.0px"> </p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo;color:#7c1fae">vtkImageCast<span style="color:#000000"> *Cast = </span>vtkImageCast<span style="color:#000000">::</span><span style="color:#460085">New</span><span style="color:#000000">();</span></p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo;color:#460085"><span style="color:#000000">Cast -> </span>SetOutputScalarTypeToUnsignedChar<span style="color:#000000">();</span></p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo">Cast -> <span style="color:#460085">SetInputConnection</span>(StructuredDataset-><span style="color:#460085">GetOutputPort</span>());</p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo">Cast -> <span style="color:#460085">Update</span>();</p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo;min-height:13.0px"><br></p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo;color:#7c1fae">vtkImageEuclideanDistance<span style="color:#000000"> *Transform;</span></p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo">Transform -> <span style="color:#460085">SetInputConnection</span>(Cast-><span style="color:#460085">GetOutputPort</span>());</p></div><div><br></div><div>The last line produces the error: "illegal instruction"</div>
<div><br></div><div>Thanks,<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 Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>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>
</div>We are.<br>
<div><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>
</div>Which compiler did you build with? Any special flags used?<br>
<span><font color="#888888"><br>
--<br>
____________________________________________________________<br>
Sean McBride, B. Eng <a href="mailto:sean@rogue-research.com" target="_blank">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>
</font></span></blockquote></div><br></div>