[vtkusers] VTK build instructions cleanup
David Doria
daviddoria at gmail.com
Wed Sep 7 15:27:37 EDT 2011
> It might be good to extend the Windows part by adding a few lines on how to
> set-up a C++ project in Visual Studio and a Java or Python Project in
> Eclipse. At least for me it was not clear right from he start where to add
> additional libraries folder etc. to the project configuration.
>
> I took the following notes during set-up on my computer:
>
> C++ x64 Project in Visual Studio:
>
> 1) Project Properties - Configuration Properties - Platform: x64
> Project Properties - Configuration Properties - C/C++ - General -
> Additional Include Directories: C:\Program Files\VTK\include
> \vtk-5.8;%(AdditionalIncludeDirectories)
> 2) Project Properties - Configuration Properties - Linker - General -
> Additional Library Directories: C:\Program Files\VTK\lib\vtk-
> 5.8;%(AdditionalLibraryDirectories)
> 3) Project Properties - Configuration Properties - Linker - Input -
> Additional Dependencies: opengl32.lib;MapReduceMPI.lib;
> mpistubs.lib;vtkalglib.lib;MapReduceMPI.li.lib;vtkCommon.lib;
> vtkDICOMParser.lib;vtkexoIIc.lib;vtkexpat.lib;vtkFiltering.lib;
> vtkfreetype.lib;vtkftgl.lib;vtkGenericFiltering.lib;vtkGeovis.lib;
> vtkGraphics.lib;vtkHybrid.lib;vtkImaging.lib;vtkInfovis.lib;
> vtkIO.lib;vtkjpeg.lib;vtklibxml2.lib;vtkmetaio.lib;vtkNetCDF.lib;
> vtkNetCDF_cxx.lib;vtkpng.lib;vtkproj4.lib;vtkRendering.lib;
> vtksqlite.lib;vtksys.lib;vtktiff.lib;vtkverdict.lib;vtkViews.lib;
> vtkVolumeRendering.lib;vtkWidgets.lib;vtkzlib.lib;
> %(AdditionalDependencies)
>
>
> Java Project in Eclipse:
>
> 1) Project Properties - Java Build Path - Libraries - Add JARs
> C:\Program Files\VTK\lib\vtk-5.8\java\vtk.jar
>
> Python Project in Eclipse + PyDev:
>
> 1) Project Properties - PyDev PYTHONPATH - External Libraries -
> Add source Folder C:\Program Files\VTK\lib\site-packages
>
> See you
> Flo
>
Hi Flo,
We strongly encourage everyone to use CMake to create their projects
so that none of that is necessary. However, if you'd like to add a
"How to include VTK in your project with CMake" page somewhere, that
might be useful for some people in rare cases.
David
More information about the vtkusers
mailing list