[vtkusers] Windows Installation Help

Beau Sapach beau.sapach at ualberta.ca
Sun Oct 21 18:19:03 EDT 2007


Hi Laura,

 

Did you configure VTK with CMake?  Make sure that the option
BUILD_SHARED_LIBS is ON, this may be why you have no DLL files.  After that,
you'll have to add all the appropriate directories to Visual Studio (under
Tools->Options choose "Projects" on the left and then "VC++ Directories").
For the include files I included Common, Filtering, Graphics, Hybrid,
Imaging, IO, Parallel, Patented, Rendering and Utilities as well as the root
folder of my VTK source tree and the root folder of the compiled VTK tree
(this might be the same folder depending on your CMake options).  You'll
also need to add the bin/release path to the Visual Studio "Library Files"
section.  These are all global options for visual studio and you can
probably find equivalents at a project level.  Lastly you'll need to tell
the linker which .lib files to use so under Project->Properties choose
"Linker" and then "Command Line", in the "Additional Options" text box on
the bottom right I have:

 

vtkCommon.lib vtkDICOMParser.lib vtkexpat.lib vtkFiltering.lib
vtkfreetype.lib vtkftgl.lib vtkGraphics.lib vtkHybrid.lib vtkImaging.lib
vtkIO.lib vtkjpeg.lib vtkParallel.lib vtkpng.lib vtkRendering.lib
vtktiff.lib vtkzlib.lib

 

This setup has been working for me quite well, hope this helps.


Beau

  _____  

From: vtkusers-bounces+beau.sapach=ualberta.ca at vtk.org
[mailto:vtkusers-bounces+beau.sapach=ualberta.ca at vtk.org] On Behalf Of
Renato N. Elias
Sent: Sunday, October 21, 2007 4:50 PM
To: 'Laura Josephine'
Cc: vtkusers at vtk.org
Subject: RES: [vtkusers] Windows Installation Help

 

Try updating the include (and library) directories within Visual Studio. In
VS2005 it's under the menu tools\options, "Project and Solutions"\VC++
Directories. Select "Show directories for:" Include files and insert the
path of your compiled VTK.

 

Regards

 

Renato.

 

  _____  

De: vtkusers-bounces+rnelias=nacad.ufrj.br at vtk.org
[mailto:vtkusers-bounces+rnelias=nacad.ufrj.br at vtk.org] Em nome de Laura
Josephine
Enviada em: domingo, 21 de outubro de 2007 14:51
Para: vtkusers at vtk.org
Assunto: [vtkusers] Windows Installation Help

We have built VTK using Microsoft Visual C++ 2003 and the output shows 39
successful, 0 errors, 0 warnings. The '.\bin\debug\' folder includes .lib,
.idb, and .pdb files. There are no .dll files, and when you try and run one
of the examples it says that it cannot locate the .h files that are included
in your project. How do we get the examples to run that include files such
as 'vtkSphereSource.h'? 

Thanks for any help/suggestions,

Laura & Syd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071021/923795a5/attachment.htm>


More information about the vtkusers mailing list