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

Sean McBride sean at rogue-research.com
Tue Dec 15 13:17:19 EST 2009

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?


Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada

More information about the vtk-developers mailing list