[vtk-developers] VTK Examples don't build properly on Mac, CMAKE_OSX_ARCHITECTURES issue

David Cole david.cole at kitware.com
Tue Dec 15 13:30:01 EST 2009


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......


HTH,
David


On Tue, Dec 15, 2009 at 1:17 PM, Sean McBride <sean at rogue-research.com>wrote:

> Hi all,
>
> With this talk of updating examples, I turned on BUILD_EXAMPLES and
> noticed that it does not work properly on Mac.
>
> I've specified CMAKE_OSX_ARCHITECTURES as 'i386' and I get link errors:
>
> ld: warning: in /Volumes/Leopard/Users/sean/kitware/VTK-clean-bin/bin/
> libvtkRendering.dylib, file is not of required architecture
> Undefined symbols:
>  "vtkRenderer::New()", referenced from:
>      _main in HierarchicalBoxPipeline.o
>
> libvtkRendering.dylib _is_ the right arch, namely i386.  I think the
> problem is that the examples are not being built as i386 but rather as
> x86_64 (the default on 10.6).
>
> But now I'm out of my element.  Could it be that the
> CMAKE_OSX_ARCHITECTURES is not being passed on to the Examples build
> phase, or something like that?
>
> Thanks,
>
> --
> ____________________________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20091215/520aa9be/attachment.html>


More information about the vtk-developers mailing list