Add that variable and any others like it that may need to be passed down to the VTK/Examples/CMakeLists.txt file around line 90 or so. You'll see what I mean when you get there......<div><br></div><div><br></div><div>HTH,</div>
<div>David</div><div><br><br><div class="gmail_quote">On Tue, Dec 15, 2009 at 1:17 PM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
With this talk of updating examples, I turned on BUILD_EXAMPLES and<br>
noticed that it does not work properly on Mac.<br>
<br>
I've specified CMAKE_OSX_ARCHITECTURES as 'i386' and I get link errors:<br>
<br>
ld: warning: in /Volumes/Leopard/Users/sean/kitware/VTK-clean-bin/bin/<br>
libvtkRendering.dylib, file is not of required architecture<br>
Undefined symbols:<br>
  "vtkRenderer::New()", referenced from:<br>
      _main in HierarchicalBoxPipeline.o<br>
<br>
libvtkRendering.dylib _is_ the right arch, namely i386.  I think the<br>
problem is that the examples are not being built as i386 but rather as<br>
x86_64 (the default on 10.6).<br>
<br>
But now I'm out of my element.  Could it be that the<br>
CMAKE_OSX_ARCHITECTURES is not being passed on to the Examples build<br>
phase, or something like that?<br>
<br>
Thanks,<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>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br></div>