[vtkusers] create a VTK project under Xcode on Mac Os X
Sean McBride
sean at rogue-research.com
Mon Mar 12 10:54:18 EDT 2007
On 3/10/07 8:48 AM, Francesco Pasqualini said:
>> 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?!
Xcode has a good manual, which you can access from the Help Menu in
Xcode itself. I also suggest looking at the mailing lists here:
<http://lists.apple.com/mailman/listinfo>
>> 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.
>did you intend this passage:
>"
>To make Xcode aware of VTK we need to add two source trees, as
>outlined in the SimpleCocoaVTK documentation. Open the SimpleCocoaVTK
>project in Xcode. Then go to Xcode -> Preferences and look for the
>source tree icon along the top bar. In my Xcode it is the third icon
>from the right and looks like a traffic sign. Click the icon and a
>table display will come up. Click the + icon twice and add two rows
>to the table.
>
>For the first row, set the setting name and display name to 'vtk-
>lib' (without the single quotes) and set the path to '/Users/rglover/
>Development/VTKBuild/bin' (without the single quotes). Notice I have
>my username in there (rglover), replace it with your own.
>
>For the second row, set the setting name and display name to 'vtk-
>include' (without the single quotes) and set the path to '/Users/
>rglover/Development/VTKBuild/include/VTK-5.1' (without the single
>quotes).
>
>Case is important here so make sure it is correct
>
>"
Yes, these instructions are correct.
>> 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.
>
>now, if I've some .cxx file containing example made by professor, I
>have simply to copy and paste it onto the main file of the new c++
>project created?!
>If it is so, I love you :D
Yes, that should work. At least, it should get you started. :)
--
____________________________________________________________
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