[vtkusers] create a VTK project under Xcode on Mac Os X

Francesco Pasqualini docfra81 at gmail.com
Sat Mar 10 02:48:21 EST 2007


Il giorno 10/mar/07, alle ore 00:04, Sean McBride ha scritto:

>> ...and finally  a couple of instruction
>>
>> make
>> sudo make install
>
> So if I understand you correctly, you have successfully built VTK,
> correct?  Where did it install to?  /usr/local/ or in your "Kitware"
> folder somewhere?  Somewhere, you should have something like:
>
> /myfolder/include/
>                  /vtk-5.1/
>                           vtkActor.h
>                           etc.
>          /lib/
>               libvtkRendering.a
>               etc.

I have successfully build VTK on my Kitware folder.

>
>> now, If I want to build some new project, named NEW, ubicate in the
>> folder /Kitware/project, I've to go to /Kitware/project/NEW and write
>> down cmake -G Xcode /Kitware/VTK.
>> this create a blank project where I can, FINALLY, put my code and be
>> happy?!
>
> If I understand right, you want to create a new Xcode project and  
> write
> new code that uses VTK, right?  If so, I suggest looking at the
> SimpleCocoaVTK example (<http://www.rogue-research.com/vtk/
> SimpleCocoaVTK.html>) and setting up 2 source trees the same way it
> does.  Then create a new C++ project in Xcode.  Next, add all the VTK
> static libraries (.a files) to your new Xcode project and reference  
> them
> relative to the source tree.  Next, just edit main.cpp and add your  
> VTK-
> related code.
>
> Do you know Xcode well, or are you new to it also?
>
> Do you know Cocoa?  Are you using it?
>

yes, there is part of the problem,  I'm completely new in Xcode, API  
under MAC OS X and all the other stuff.

I have to do a little research project for university course and I  
thought to learn all, after installed VTK... I'm a fool, now I know :D

It's possible to have a link or the name of some book to have an idea  
of this world?!

thanks a lot
Francesco




More information about the vtkusers mailing list