[vtkusers] Help with VTK on Xcode

Sean McBride sean at rogue-research.com
Wed Jul 27 15:17:44 EDT 2011


On Tue, 19 Jul 2011 16:59:26 +0100, Paulo Alexandre Neves said:

>My name is Paulo Neves, I am a PhD student at University of Beira Interior.
>
>I am trying to use VTK with Xcode 4 on Mac OS X 10.6.8. For the moment I
>only want to access the features it provides, not for extension.
>I installed VTK 5.6.1 through Macports. As expected, I get a bunch of
>include files and dylib files.
>
>I create a new project in Xcode (command line, C++) to run a simple
>example code:

A few thoughts:

1) using the 'command line' template is not the best choice because to show a window, Mac OS requires that the executable be a bundled app, not a flat executable.

2) using static libs is such easier. They just get added to your executable, no need to copy .dylibs to a special folder, or embed them in your .app

3) have you looked at the SimpleCocoaVTK example?  It's in VTK's source tree somewhere in Examples IIRC.

Cheers,

-- 
____________________________________________________________
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 vtkusers mailing list