[vtkusers] Re: More Questions

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue Jan 30 16:20:27 EST 2007


Anka Kochanowska wrote:
> Why don't you just install VTK binaries (you need openGL also) and try 
> to build an MSVS project for the first example in VTK/Examples/Tutorial 
> - cone?

Usually, only the binary tcl interpreter with VTK wrappers are 
available... not binary VC++ imports libs

> ronharshbarger at mmm.com wrote:
> 
>> Sorry if I am being excessively anal and dense but I am really leery of
>> installing software when I don't understand it. I bought the full set of
>> books and the CD for VTK  5.0.2 and I use the Microsoft Visual Studio dot
>> net foundation classes in C++ to do almost all of my programming which 
>> runs
>> on XP/2000 or a Windows server. When I autorun the CD, it starts the
>> installer and wants to install a bunch of things that are not in the
>> "Mastering CMake" book. When I read the readme.html on the CD, under
>> Windows it says I can install the binaries but then in the same paragraph
>> it states that if I use C++ I can't use the binaries and will need to
>> rebuild them from the source code supplied. Can't I just include the 
>> source
>> files in my build? 

The best way to do it is to build the VTK libraries separately (using
cmake and your own  build environment) and then link these libs into 
your own project.

There is an example of using VTK with MFC in the source tree here:
\VTK\Examples\GUI\Win32\vtkMFC

You can use cmake to configure your project to correctly link the VTK 
libs or just add the VTK includes directories, the lib directory, and 
the VTK libs to the linker

hth

Goodwin




More information about the vtkusers mailing list