<div class="gmail_quote">On Tue, Jan 11, 2011 at 10:38 AM, ianl <span dir="ltr"><<a href="mailto:ilindsay@insigniamedical.co.uk">ilindsay@insigniamedical.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Real newbie question - I am really just starting out with VTK and am starting<br>
to play around a bit further than the examples. I am working on Windows with<br>
Visual Studio 2010, and I have built everything using CMake successfully and<br>
the examples compile and run fine.<br>
<br>
My question is quite simple really - I'm surprised I haven't found any info<br>
after lots of searching, so I am assuming I have missed something obvious.<br>
Where would I find out which .lib to link against for a given class? For<br>
example, if I wanted to use vtkImplicitPlaneWidget, how would I find out<br>
which .lib to link against. This info doesn't seem to be present in the<br>
DOxygen generated help pages (which I guess is expected as they are cross<br>
platform and generated from the source code). Any help would be greatly<br>
appreciated.<br></blockquote><div><br></div><div>I agree - this information should certainly be added to the Doxygen. The next best thing is to look at which directory the files for the class are in. E.g.</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote">
<br></div><div class="gmail_quote">[doriad@localhost VTK]$ find . -name vtkImplicitPlaneWidget*</div><div class="gmail_quote">./Widgets/vtkImplicitPlaneWidget2.cxx</div><div class="gmail_quote">./Widgets/vtkImplicitPlaneWidget.cxx</div>
<div class="gmail_quote">./Widgets/vtkImplicitPlaneWidget2.h</div><div class="gmail_quote">./Widgets/vtkImplicitPlaneWidget.h</div><div><br></div><div>indicates that you should link to vtkWidgets.</div><div><br></div><div>
Also, on the wiki examples:</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx">http://www.vtk.org/Wiki/VTK/Examples/Cxx</a></div><div><br></div>
<div>each example comes with a CMakeLists.txt file. You can see which libraries are needed for the example in the <span class="Apple-style-span" style="font-family: monospace; font-size: 10px; color: rgb(31, 63, 129); line-height: 14px; white-space: pre; ">TARGET_LINK_LIBRARIES line.</span></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>David</div></div>