Dear David and Sean,<div><br></div><div>I&#39;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 -&gt; <span style="color:#460085">SetFileName</span>(filename);</p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo">StructuredDataset -&gt; <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 -&gt; </span>SetOutputScalarTypeToUnsignedChar<span style="color:#000000">();</span></p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo">Cast -&gt; <span style="color:#460085">SetInputConnection</span>(StructuredDataset-&gt;<span style="color:#460085">GetOutputPort</span>());</p>
<p style="margin:0px 0px 0px 0px;font:11.0px Menlo">Cast -&gt; <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 -&gt; <span style="color:#460085">SetInputConnection</span>(Cast-&gt;<span style="color:#460085">GetOutputPort</span>());</p></div><div><br></div><div>The last line produces the error: &quot;illegal instruction&quot;</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">&lt;<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>&gt;</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>
&gt;Is anyone using vtk 5.8 on MAC OS Lion?<br>
<br>
</div>We are.<br>
<div><br>
&gt;I&#39;m trying to, but I&#39;m getting some<br>
&gt;&quot;illegal instruction&quot; errors. More specifically when I use the class<br>
&gt;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>